:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    --accent: #dc2626;
    --accent-dark: #991b1b;
    --accent-light: #f87171;
    --purple: #8b5cf6;
    --teal: #14b8a6;
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0d47a1 0%, #1e3a8a 50%, #0f172a 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 25px -5px rgba(13, 71, 161, 0.15), 0 8px 10px -6px rgba(13, 71, 161, 0.1);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) #e5e7eb;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
}

.bg-purple {
    background-color: var(--purple) !important;
}

.bg-teal {
    background-color: var(--teal) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 14px 0 rgba(13, 71, 161, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.25);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.03), rgba(16, 185, 129, 0.03));
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.login-page {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 10;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.4);
    overflow: hidden;
}

.login-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.form-control, .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.input-group-text {
    border: 1.5px solid #e2e8f0;
    border-right: none;
    background-color: #f8fafc;
    border-radius: 12px 0 0 12px !important;
    color: var(--primary);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0 !important;
}

.sidebar {
    background: #0d3b7d;
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid #0a2e62;
}

.btn-sidebar-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.btn-sidebar-toggle:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.05);
}
.btn-sidebar-toggle:focus { outline: none; box-shadow: 0 0 0 2px rgba(16,185,129,0.4); }

.sidebar-header {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #0a2e62;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.sidebar-brand h5 {
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
}

.sidebar-nav {
    padding: 0.9rem 0.6rem;
    list-style: none;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.2rem;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--secondary);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s ease;
}

.sidebar-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.sidebar-nav .nav-link:hover::before {
    height: 60%;
}

.sidebar-nav .nav-link.active {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.18);
    box-shadow: inset 0 0 0 1px rgba(16,185,129,0.28);
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
    height: 70%;
    background: var(--secondary-light);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.55);
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sidebar-section {
    padding: 0.5rem 0.95rem 0.2rem;
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ===== Desktop Sidebar Collapsed State ===== */
.sidebar.desktop-collapsed {
    width: 72px;
}
.sidebar.desktop-collapsed .sidebar-label,
.sidebar.desktop-collapsed .sidebar-section,
.sidebar.desktop-collapsed .sidebar-nav .nav-link span,
.sidebar.desktop-collapsed .sidebar-nav .nav-link .badge,
.sidebar.desktop-collapsed .p-3.mt-auto {
    display: none !important;
}
.sidebar.desktop-collapsed .sidebar-header {
    padding: 1.1rem 0.8rem;
    gap: 0;
    justify-content: center;
    flex-direction: column;
    position: relative;
}
.sidebar.desktop-collapsed .btn-sidebar-toggle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
    opacity: 0.9;
}
.sidebar.desktop-collapsed .btn-sidebar-toggle:hover { transform: translateX(-50%) scale(1.08); opacity: 1; }
.sidebar.desktop-collapsed .sidebar-logo {
    width: 40px;
    height: 40px;
    margin-top: 42px;
    border-radius: 10px;
}
.sidebar.desktop-collapsed .sidebar-nav {
    padding: 0.6rem 0.3rem;
}
.sidebar.desktop-collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding: 0.78rem 0;
    border-radius: 12px;
    margin-bottom: 0.3rem;
    gap: 0;
}
.sidebar.desktop-collapsed .sidebar-nav .nav-link i {
    width: auto;
    font-size: 1.15rem;
}
.sidebar.desktop-collapsed .sidebar-nav .nav-link::before {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 4px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
}
.sidebar.desktop-collapsed .sidebar-nav .nav-link:hover::before {
    height: 2px;
    width: 22px;
}
.sidebar.desktop-collapsed .sidebar-nav .nav-link.active::before {
    height: 2px;
    width: 24px;
    box-shadow: 0 0 6px rgba(52,211,153,0.6);
}

/* ===== Content Wrappers ===== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.desktop-collapsed,
.content-wrapper.desktop-collapsed {
    margin-left: 72px !important;
}

.top-navbar {
    background: #ffffff;
    padding: 1rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0;
}

.page-content {
    padding: 1.75rem;
    flex: 1;
}

.footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.75rem;
    color: #64748b;
    font-size: 0.85rem;
}

.branch-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 16px;
    color: white;
    min-height: 140px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.stat-card h6 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 0.4rem 0;
    position: relative;
    z-index: 1;
}

.stat-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.stat-card .stat-trend {
    font-size: 0.78rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.bg-stat-primary {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}

.bg-stat-secondary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.bg-stat-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.bg-stat-teal {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

.bg-stat-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.bg-stat-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.stat-card.gradient-primary { background: linear-gradient(135deg, #0d47a1 0%, #1e40af 50%, #1e3a8a 100%); color: #fff; }
.stat-card.gradient-success { background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%); color: #fff; }
.stat-card.gradient-info    { background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #0284c7 100%); color: #fff; }
.stat-card.gradient-info-alt{ background: linear-gradient(135deg, #0e7490 0%, #06b6d4 50%, #155e75 100%); color: #fff; }
.stat-card.gradient-purple  { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #6d28d9 100%); color: #fff; }
.stat-card.gradient-warning { background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #92400e 100%); color: #fff; }
.stat-card.gradient-warning .stat-value { color: #fff !important; }
.stat-card.gradient-warning .stat-label,
.stat-card.gradient-warning .stat-sub   { color: rgba(255,255,255,0.9); }
.stat-card.gradient-danger  { background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #b91c1c 100%); color: #fff; }

.stat-card .stat-label { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 500; position: relative; z-index: 1; }
.stat-card .stat-value { color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; position: relative; z-index: 1; }
.stat-card .stat-sub   { color: rgba(255,255,255,0.85); font-size: 0.78rem; margin-top: 0.35rem; position: relative; z-index: 1; }

.fs-7 { font-size: 0.82rem !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }

.bg-success-50 { background-color: #f0fdf4 !important; }
.bg-info-50    { background-color: #f0f9ff !important; }
.bg-warning-50 { background-color: #fffbeb !important; }
.bg-purple-50  { background-color: #faf5ff !important; }

.text-warning-emphasis-strong { color: #92400e !important; }

.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #334155;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    color: #475569;
    font-size: 0.92rem;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.03), rgba(16, 185, 129, 0.03));
}

.badge {
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    border-radius: 8px;
}

.branch-select-card {
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.branch-select-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.branch-select-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.15);
}

.branch-select-card:hover::before {
    transform: scaleX(1);
}

.branch-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(16, 185, 129, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.toast {
    border-radius: 14px;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.toast-header {
    border-radius: 14px 14px 0 0;
    font-weight: 600;
}

.reminder-modal .modal-content {
    border: 3px solid var(--accent);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(220, 38, 38, 0), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

.reminder-list-item {
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid;
    margin-bottom: 0.75rem;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.reminder-list-item:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}

.reminder-list-item.danger { border-left-color: var(--accent); }
.reminder-list-item.warning { border-left-color: #f59e0b; }
.reminder-list-item.info { border-left-color: var(--primary); }

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: #94a3b8;
    font-weight: 700;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #64748b;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08), rgba(16, 185, 129, 0.08));
    color: var(--primary);
}

.alert {
    border-radius: 14px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--accent-dark);
    border-left: 4px solid var(--accent);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    color: var(--secondary-dark);
    border-left: 4px solid var(--secondary);
}

.alert-info {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.1), rgba(84, 114, 211, 0.05));
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
}

.filter-card .form-control,
.filter-card .form-select {
    font-size: 0.87rem;
    padding: 0.6rem 0.85rem;
}

.filter-card .form-label {
    font-size: 0.8rem;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 767.98px) {
    .page-content {
        padding: 1rem;
    }
    .page-title {
        font-size: 1.35rem;
    }
    .stat-card h2 {
        font-size: 1.6rem;
    }
}
