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

:root {
    --primary: #7C5CFC;
    --primary-light: #9B82FC;
    --primary-dark: #6344E0;
    --secondary: #8B5CF6;
    --accent: #3B82F6;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --bg-body: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 25%, #e0e7ff 50%, #dbeafe 75%, #f0f9ff 100%);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-hover: rgba(255, 255, 255, 0.8);
    --bg-glass-active: rgba(255, 255, 255, 0.9);
    --bg-sidebar: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.5);
    --bg-input: rgba(255, 255, 255, 0.6);
    --bg-modal: rgba(0, 0, 0, 0.5);

    --text-primary: #1e1b4b;
    --text-secondary: #4c4886;
    --text-muted: #8b85b0;
    --text-inverse: #ffffff;

    --border-glass: rgba(255, 255, 255, 0.5);
    --border-input: rgba(124, 92, 252, 0.2);
    --border-hover: rgba(124, 92, 252, 0.4);

    --shadow-sm: 0 1px 3px rgba(124, 92, 252, 0.06);
    --shadow-md: 0 4px 16px rgba(124, 92, 252, 0.1);
    --shadow-lg: 0 8px 32px rgba(124, 92, 252, 0.15);
    --shadow-xl: 0 16px 48px rgba(124, 92, 252, 0.2);

    --blur: 20px;
    --blur-heavy: 30px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --sidebar-width: 270px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #0f0a2e 0%, #1a1145 25%, #1e1b4b 50%, #172554 75%, #0c1222 100%);
    --bg-glass: rgba(30, 27, 75, 0.6);
    --bg-glass-hover: rgba(30, 27, 75, 0.8);
    --bg-glass-active: rgba(30, 27, 75, 0.9);
    --bg-sidebar: rgba(15, 10, 46, 0.8);
    --bg-card: rgba(30, 27, 75, 0.5);
    --bg-input: rgba(30, 27, 75, 0.6);
    --bg-modal: rgba(0, 0, 0, 0.7);

    --text-primary: #f0eef9;
    --text-secondary: #b8b3d4;
    --text-muted: #7c76a8;

    --border-glass: rgba(124, 92, 252, 0.15);
    --border-input: rgba(124, 92, 252, 0.2);
    --border-hover: rgba(124, 92, 252, 0.4);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: spin 1.5s linear infinite;
}

.loading-spinner circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
}

.loading-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
}

.loading-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--border-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    animation: loadingProgress 1.5s ease-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.login-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: shapeFloat 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
    animation: shapeFloat 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 50%;
    left: 50%;
    animation: shapeFloat 10s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--warning);
    top: 20%;
    left: 20%;
    animation: shapeFloat 7s ease-in-out infinite reverse;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: var(--success);
    bottom: 20%;
    right: 20%;
    animation: shapeFloat 9s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.login-container {
    width: 100%;
    max-width: 440px;
    z-index: 1;
}

.login-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    box-shadow: var(--shadow-xl);
    animation: loginSlideUp 0.8s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.login-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.login-logo h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.toggle-password:hover {
    opacity: 1;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-wrapper input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.login-footer p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.demo-hint {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 0.25rem;
}

/* ========== GLASS CARD ========== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 16px rgba(124, 92, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 92, 252, 0.4);
}

.btn-outline {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-input);
    backdrop-filter: blur(10px);
}

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

/* ========== GLASS INPUT ========== */
.glass-input {
    padding: 0.5rem 0.875rem;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.8125rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

select.glass-input {
    cursor: pointer;
}

textarea.glass-input {
    resize: vertical;
    min-height: 80px;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border-right: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
    min-height: 64px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    white-space: nowrap;
}

.logo-icon-sm {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    transition: opacity var(--transition);
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
}

.logo-text h2 {
    font-size: 1.125rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-text span {
    font-size: 1.125rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

.sidebar-toggle-btn:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

.sidebar.collapsed .sidebar-toggle-btn svg {
    transform: rotate(180deg);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-input);
    border-radius: var(--radius-full);
}

.sidebar-nav ul {
    list-style: none;
}

.nav-section-title {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-section-title {
    text-align: center;
    padding: 1rem 0.25rem 0.5rem;
}

.sidebar.collapsed .nav-section-title span {
    display: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    margin: 0.125rem 0.5rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.nav-item a:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

.nav-item.active a {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(59, 130, 246, 0.1));
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

.nav-icon {
    font-size: 1.125rem;
    min-width: 24px;
    text-align: center;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-item a {
    justify-content: center;
    padding: 0.75rem;
    margin: 0.125rem 0.375rem;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-glass);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.collapsed .user-details {
    display: none;
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* ========== MAIN CONTENT ========== */
.main-app {
    display: none;
}

.main-app.visible {
    display: flex;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

.sidebar.collapsed ~ .main-content,
.sidebar.collapsed + .sidebar-overlay + .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ========== TOPBAR ========== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--topbar-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-box .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 3rem 0.5rem 2.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.8125rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
    width: 100%;
}

.search-box kbd {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-glass);
    border: 1px solid var(--border-input);
    border-radius: 4px;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-family: var(--font);
}

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    border-radius: var(--radius-md);
    z-index: 100;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-btn:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.theme-toggle {
    position: relative;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

.topbar-profile {
    position: relative;
    cursor: pointer;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    border-radius: var(--radius-lg);
    z-index: 100;
    overflow: hidden;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.profile-avatar-lg {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8125rem;
}

.profile-dropdown-header strong {
    display: block;
    font-size: 0.875rem;
}

.profile-dropdown-header span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-dropdown-menu {
    padding: 0.5rem;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.profile-dropdown-menu a:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

.profile-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-glass);
    margin: 0.25rem 0;
}

.logout-link:hover {
    color: var(--danger) !important;
}

/* ========== NOTIFICATION PANEL ========== */
.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    overflow: hidden;
    z-index: 100;
    animation: dropdownFade 0.2s ease;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
}

.notif-header h4 {
    font-size: 1rem;
    font-weight: 700;
}

.notif-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
    cursor: pointer;
}

.notif-item:hover {
    background: var(--bg-glass-hover);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-icon {
    font-size: 1.25rem;
    min-width: 28px;
    text-align: center;
}

.notif-content p {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.notif-content span {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ========== PAGE CONTENT ========== */
.page-content {
    flex: 1;
    padding: 1.5rem;
}

.page {
    display: none;
    animation: pageFadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.qa-icon {
    font-size: 1.5rem;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-suffix {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-trend {
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.stat-trend.up {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.stat-trend.down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ========== CHARTS ========== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    padding: 1.25rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.chart-filter {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.chart-body {
    position: relative;
    height: 280px;
}

.chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ========== TABLE ========== */
.table-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

.data-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--bg-glass);
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-glass-hover);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(124, 92, 252, 0.05);
    white-space: nowrap;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-btn {
    padding: 0.375rem 0.625rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.8125rem;
    transition: var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========== STATUS BADGES ========== */
.badge-code {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(124, 92, 252, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-safe {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.status-low {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-empty {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.status-draft {
    background: rgba(124, 92, 252, 0.1);
    color: var(--primary);
}

/* ========== ACTION BUTTONS ========== */
.action-btns {
    display: flex;
    gap: 0.25rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    background: transparent;
}

.action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.1);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========== FILTER BAR ========== */
.filter-bar {
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-filter {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-filter .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
}

.search-filter input {
    width: 100%;
    padding-left: 2.25rem;
}

.filter-select {
    min-width: 160px;
}

/* ========== CATEGORY GRID ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.category-card {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

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

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 1rem;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.category-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ========== WAREHOUSE ========== */
.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.warehouse-card {
    padding: 1.5rem;
}

.warehouse-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.warehouse-icon {
    font-size: 2rem;
}

.warehouse-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.warehouse-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.warehouse-header .status-badge {
    margin-left: auto;
}

.warehouse-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wh-stat {
    display: flex;
    flex-direction: column;
}

.wh-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wh-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.warehouse-bar {
    height: 6px;
    background: var(--border-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.wh-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* ========== REPORT ========== */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.report-stat {
    display: flex;
    flex-direction: column;
}

.report-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.report-value.profit {
    color: var(--success);
}

/* ========== ROLES ========== */
.roles-section {
    margin-top: 1.5rem;
}

.roles-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.role-card {
    padding: 1.25rem;
}

.role-header {
    margin-bottom: 1rem;
}

.role-badge {
    display: inline-flex;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.role-superadmin {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(59, 130, 246, 0.1));
    color: var(--primary);
}

.role-admin {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.role-staff {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.role-manager {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.role-permissions {
    list-style: none;
}

.role-permissions li {
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

/* ========== USER CELL ========== */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.625rem;
}

/* ========== SETTINGS ========== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-card {
    padding: 1.5rem;
}

.settings-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
}

.file-upload-area {
    border: 2px dashed var(--border-input);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(124, 92, 252, 0.03);
}

.upload-placeholder span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.settings-actions {
    display: flex;
    gap: 0.75rem;
}

/* ========== ACTIVITY TIMELINE ========== */
.activity-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.activity-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-glass);
}

.timeline-content p {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.timeline-content span {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ========== MODALS ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    animation: modalOverlayIn 0.2s ease;
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

.modal.modal-sm {
    max-width: 420px;
}

.modal.modal-lg {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.purchase-total {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.total-final {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-glass);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* ========== QUICK ACTION LIST (Modal) ========== */
.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: left;
}

.quick-action-item:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
}

.quick-action-item span:first-child {
    font-size: 1.25rem;
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-heavy));
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    min-width: 300px;
    max-width: 420px;
    animation: toastIn 0.3s ease;
    pointer-events: auto;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

.toast-icon {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.toast-success .toast-icon { color: var(--success); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-danger .toast-icon { color: var(--danger); }
.toast-info .toast-icon { color: var(--accent); }

.toast-message {
    flex: 1;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.main-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
}

.main-footer strong {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-toggle-btn {
        display: none;
    }

    .topbar {
        padding: 0 1rem;
    }

    .search-box kbd {
        display: none;
    }

    .page-content {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn {
        flex: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-filter {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .notification-panel {
        width: 320px;
        right: -60px;
    }

    .warehouse-grid {
        grid-template-columns: 1fr;
    }

    .table-footer {
        flex-direction: column;
        text-align: center;
    }

    .modal {
        max-width: 100%;
        margin: 0.5rem;
    }

    .modal.modal-lg {
        max-width: 100%;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .notification-panel {
        width: 300px;
        right: -100px;
    }

    .report-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .toast {
        min-width: unset;
        max-width: calc(100vw - 2rem);
    }

    .toast-container {
        right: 0.75rem;
        left: 0.75rem;
    }

    .login-card {
        padding: 1.5rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card {
    animation: fadeInUp 0.5s ease both;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-input);
    border-radius: var(--radius-full);
}

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

/* ========== SELECTION ========== */
::selection {
    background: rgba(124, 92, 252, 0.2);
    color: var(--text-primary);
}
