:root {
    --color-primary-bg: #F8FAFC;
    --color-secondary-bg: #F1F5F9;
    --color-white: #FFFFFF;
    --color-mailand-green: #4A5C3F;
    --color-mailand-green-light: #5a7050;
    --color-mailand-gold: #B08D2D;
    --color-mailand-gold-light: #D4B84A;
    --color-mailand-light-gold: #F5EED6;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--color-primary-bg) !important;
    color: var(--color-text-dark);
    font-weight: 500;

}

input,
textarea,
select,
button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500;
}

input::placeholder,
textarea::placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #9CA3AF;
    font-weight: 400;
}

.sidebar-modern {
    background: linear-gradient(180deg, #4A5C3F 0%, #3d4d35 100%) !important;
    color: #FFFFFF !important;
    border-right: none;
    box-shadow: 4px 0 20px rgba(74, 92, 63, 0.25);
    overflow-y: auto;
    max-height: 100vh;
}

.sidebar-modern .sidebar-brand {
    color: var(--color-mailand-gold);
}

.sidebar-modern .sidebar-link {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.25s ease;
    border-radius: 12px;
    margin: 2px 0;
}

.sidebar-modern .sidebar-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-modern .sidebar-link.active {
    color: #FFFFFF !important;
    background: linear-gradient(90deg, rgba(176, 141, 45, 0.3) 0%, transparent 100%);
    border-left: 3px solid var(--color-mailand-gold);
    font-weight: 600;
}

.sidebar-modern .sidebar-link.active .sidebar-icon,
.sidebar-modern .sidebar-link.active div {
    background: linear-gradient(135deg, var(--color-mailand-gold) 0%, var(--color-mailand-gold-light) 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(176, 141, 45, 0.3);
}

.sidebar-modern .sidebar-icon,
.sidebar-modern .sidebar-link>div:first-child {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.sidebar-modern .sidebar-link:hover>div:first-child {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.sidebar-modern .bg-mailand-gold {
    background: linear-gradient(135deg, var(--color-mailand-gold) 0%, var(--color-mailand-gold-light) 100%) !important;
    box-shadow: 0 4px 12px rgba(176, 141, 45, 0.25);
}

.admin-only {
    display: none !important;
}

.card-modern {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(176, 141, 45, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-mailand-green) 0%, var(--color-mailand-green-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 92, 63, 0.25);
    transition: all 0.25s ease;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 92, 63, 0.35);
}

.accent-gold {
    color: var(--color-mailand-gold);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--color-mailand-green) 0%, var(--color-mailand-green-light) 100%);
    color: white;
}

.sidebar-modern .text-white {
    color: #FFFFFF !important;
}

.sidebar-modern .text-white\/70 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.sidebar-modern .text-mailand-gold {
    color: var(--color-mailand-gold) !important;
    font-weight: 700;
}

.sidebar-modern .text-mailand-light-gold\/70 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.sidebar-modern .border-mailand-gold\/30 {
    border-color: rgba(176, 141, 45, 0.3) !important;
}

.sidebar-modern .text-red-300\/80 {
    color: #FCA5A5 !important;
}

.sidebar-modern .text-red-300\/80:hover {
    color: #FEE2E2 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

main {
    transition: opacity 0.15s ease;
}

.content-fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.content-fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bg-orange-500 {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.bg-blue-500 {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.bg-gradient-to-br {
    border: 1px solid var(--color-border);
}

@media (max-width: 768px) {

    .sidebar-modern {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar-modern.mobile-open {
        transform: translateX(0);
    }

    main {
        margin-left: 0 !important;
        padding: 1rem !important;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }

    .mobile-menu-btn {
        display: flex !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 998;
        background: var(--color-mailand-green);
        color: white;
        padding: 0.75rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    main h1 {
        padding-left: 3rem;
    }

    .mobile-hide {
        display: none !important;
    }

    table {
        font-size: 0.75rem;
    }

    table th,
    table td {
        padding: 0.5rem !important;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .modal-content,
    [class*="max-w-"] {
        max-width: 95vw !important;
        margin: 1rem !important;
    }
}

.mobile-menu-btn {
    display: none;
}

/* Sidebar Section Headers */
.sidebar-section-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1.5rem 1rem 0.75rem 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section-header:first-of-type {
    margin-top: 0;
    border-top: none;
}

.sidebar-modern .admin-section {
    display: none;
}


/* Toast Notifications */
.toast-notification {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    border-left: 4px solid #D1D5DB;
    animation: toast-slide-in 0.3s ease-out forwards;
    pointer-events: auto;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.toast-notification.success {
    border-left-color: #10B981;
}

.toast-notification.error {
    border-left-color: #EF4444;
}

.toast-notification.info {
    border-left-color: #3B82F6;
}

.toast-notification.warning {
    border-left-color: #F59E0B;
}

.toast-notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    color: var(--color-text-dark);
    font-size: 0.875rem;
    line-height: 1.4;
    flex-grow: 1;
}

.toast-close {
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background 0.2s;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}