:root {
    --primary-color: #fed132;
    --secondary-color: #ffd700;
    --dark-bg: #333333;
    --light-bg: #f7f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--dark-bg);
    min-height: 40vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="white" fill-opacity="0.1"/></svg>') repeat;
    animation: slide 20s linear infinite;
    pointer-events: none;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100px);
    }
}

.min-vh-60 {
    min-height: 40vh;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Button Styles */
.btn-primary {
    background: var(--dark-bg);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #222222;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Sticky Note Styles */
.sticky-note {
    background: #FFD166;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    cursor: default;
    transform: rotate(0deg);
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
    border-radius: 4px 4px 0 0;
}

.sticky-note:nth-child(odd) {
    transform: rotate(-1deg);
}

.sticky-note:nth-child(even) {
    transform: rotate(1deg);
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.sticky-note .note-content {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    color: #2d3748;
    margin-bottom: 15px;
}

.sticky-note .note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #414750;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    margin-top: auto;
}

.note-timestamp {
    display: flex;
    align-items: center;
    gap: 5px;
}

.note-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flag-btn,
.share-btn,
.delete-btn {
    background: none;
    border: none;
    color: #2d3748;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-size: 1rem;
}

.flag-btn:hover {
    color: #ef4444;
}

.share-btn:hover {
    color: #3b82f6;
}

.delete-btn:hover {
    color: #10b981;
}

/* Color Picker Buttons */
.btn-color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-color:hover {
    transform: scale(1.1);
    border-color: #cbd5e1;
}

.btn-check:checked+.btn-color {
    border-color: var(--dark-bg);
    box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.2);
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--dark-bg);
    border-radius: 16px 16px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Loading State */
#loading-spinner {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .sticky-note {
        min-height: 150px;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Empty State */
#empty-state i {
    font-size: 4rem;
}

/* Footer */
footer a:hover {
    text-decoration: underline !important;
}