/* ========================================
   BarberPay Admin Web - Modern UI Design
   ======================================== */

/* Root Variables */
:root {
    /* Primary Colors */
    --primary-color: #00d4aa;
    --primary-light: #33debb;
    --primary-dark: #00a882;
    --primary-glow: rgba(0, 212, 170, 0.3);
    
    /* Secondary Colors */
    --secondary-color: #10b981;
    --accent-color: #6366f1;
    --accent-light: #818cf8;
    
    /* Status Colors */
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    
    /* Dark Theme */
    --dark-bg: #050a12;
    --dark-secondary: #0a1424;
    --dark-tertiary: #111d30;
    --dark-card: #0d1a2b;
    --dark-elevated: #141f33;
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0a1424;
    
    /* Border & Effects */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 212, 170, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px var(--primary-glow);
    
    /* Dimensions */
    --sidebar-width: 270px;
    --header-height: 72px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LOGIN PAGE - Enhanced Design
   ======================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 170, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 0%, var(--dark-bg) 100%),
        linear-gradient(180deg, #03060a 0%, #050a12 50%, #071018 100%);
}

.login-backdrop {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 24px;
    z-index: 10;
}

/* Animated Ambient Orbs */
.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: floatOrb 10s ease-in-out infinite;
}

.ambient-one {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.25) 0%, transparent 70%);
    top: -40px;
    left: 10%;
    animation-delay: 0s;
}

.ambient-two {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    bottom: -60px;
    right: 15%;
    animation-delay: -4s;
}

.ambient-three {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -7s;
}

@keyframes floatOrb {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0.5;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) scale(1.05); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-30px) translateX(-5px) scale(1); 
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-15px) translateX(15px) scale(0.95); 
        opacity: 0.4;
    }
}

/* Login Box - Two Column Layout */
.login-box {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: stretch;
    border-radius: 32px;
    overflow: hidden;
}

/* Glassmorphism Card Effects */
.login-showcase,
.login-card {
    position: relative;
    overflow: hidden;
    animation: riseIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-showcase {
    padding: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-right: none;
    border-radius: 32px 0 0 32px;
}

.login-card {
    padding: 44px;
    background: linear-gradient(180deg, rgba(13, 26, 43, 0.95) 0%, rgba(10, 20, 36, 0.98) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 0 32px 32px 0;
    box-shadow: 
        0 0 0 1px var(--border-subtle),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: center;
    animation-delay: 0.15s;
}

.install-app-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 212, 170, 0.24);
    background: rgba(0, 212, 170, 0.12);
    color: #d1fae5;
    padding: 10px 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.install-app-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 212, 170, 0.18);
    border-color: rgba(0, 212, 170, 0.36);
}

.install-app-btn[hidden] {
    display: none;
}

/* Showcase Section */
.eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.2);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.eyebrow-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.login-showcase h1 {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    font-weight: 700;
    max-width: 600px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-text {
    max-width: 500px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Feature Pills */
.showcase-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.showcase-pills span {
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.showcase-pills span:hover {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.05));
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
}

/* Stats Panel */
.showcase-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.showcase-stat {
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.showcase-stat:hover {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(0, 212, 170, 0.02));
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateY(-4px);
}

.showcase-stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-stat span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Login Card Section */
.login-box .logo {
    position: relative;
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #00f5c4, #00d4aa, #00a882);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 
        0 20px 40px rgba(0, 212, 170, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login-box .logo::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.3), transparent);
    z-index: -1;
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.login-box .logo .logo-glyph {
    font-size: 40px;
    color: var(--text-inverse);
    line-height: 1;
}

.login-label {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.login-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.login-support {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
}

/* Input Groups - Modern Design */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 20px 54px 20px 52px;
    background: linear-gradient(135deg, rgba(17, 29, 48, 0.8), rgba(13, 22, 38, 0.9));
    border: 1.5px solid var(--border-medium);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(0, 212, 170, 0.1),
        0 0 30px rgba(0, 212, 170, 0.1);
}

.input-group input:focus + i,
.input-group:focus-within i {
    color: var(--primary-color);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 3;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
}

.password-toggle i,
.input-group .password-toggle i {
    position: static;
    inset: auto;
    display: block;
    transform: none;
    color: inherit;
    font-size: inherit;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.login-password-toggle {
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 68px;
    justify-content: center;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

.input-group:has(.login-password-toggle) input {
    padding-right: 92px;
}

/* Login Button - Gradient & Glow */
.login-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #00d4aa, #00a882);
    border: none;
    border-radius: 16px;
    color: var(--text-inverse);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 212, 170, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #00e6b8, #00c49a);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 15px 40px rgba(0, 212, 170, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn:active {
    transform: translateY(-1px) scale(1);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(4px);
}

.error-message {
    color: var(--danger-color);
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Entrance Animations */
@keyframes riseIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE LOGIN
   ======================================== */
@media (max-width: 1024px) {
    .login-box {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .login-showcase {
        display: none;
    }
    
    .login-card {
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .login-backdrop {
        padding: 0;
        max-width: 100%;
    }
    
    .login-card {
        min-height: 100vh;
        padding: 32px 22px 28px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ========================================
   DASHBOARD CONTAINER
   ======================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--dark-bg);
}

/* ========================================
   SIDEBAR - Enhanced Design
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark-tertiary) 100%);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    z-index: 100;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), transparent 50%);
    opacity: 0.3;
}

.sidebar-header {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.sidebar-header i {
    font-size: 32px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.sidebar-header span {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
    transition: height 0.2s ease;
}

.nav-item:hover {
    background: var(--dark-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:hover::before {
    height: 24px;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.05));
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.nav-item.active::before {
    height: 32px;
}

.nav-item.active i {
    color: var(--primary-color);
}

.nav-item i {
    width: 22px;
    text-align: center;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border-subtle);
}

.logout-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.logout-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
        var(--dark-bg);
}

/* Header */
.top-header {
    background: linear-gradient(180deg, var(--dark-secondary), rgba(10, 20, 36, 0.95));
    padding: 20px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.top-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle,
.muted-line {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.notification-bell:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 16px 8px 8px;
    background: var(--dark-tertiary);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.2);
}

.user-avatar i {
    color: var(--text-inverse);
    font-size: 18px;
}

#admin-name {
    font-weight: 600;
    font-size: 15px;
}

#admin-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Page Content */
.page-content {
    padding: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 20px;
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 212, 170, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
    color: var(--accent-light);
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #34d399;
}

.stat-icon.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    color: #c084fc;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 20px;
    padding: 26px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 170, 0.15);
}

.chart-card h3 {
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 600;
}

.chart-placeholder {
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
    gap: 12px;
    padding: 0 10px;
}

.bar {
    width: 48px;
    background: linear-gradient(to top, var(--primary-color), var(--accent-light));
    border-radius: 8px 8px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.bar::after {
    content: attr(data-value);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bar:hover {
    background: linear-gradient(to top, #00e6b8, var(--primary-color));
    transform: scaleY(1.05);
}

.bar:hover::after {
    opacity: 1;
}

.bar-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* Top List */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--dark-tertiary);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.top-item:hover {
    background: var(--dark-elevated);
    border-color: rgba(0, 212, 170, 0.15);
    transform: translateX(4px);
}

.top-item .rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-inverse);
}

.top-item .shop-name {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.top-item .shop-revenue {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
}

/* Recent Section */
.recent-section {
    margin-top: 28px;
}

.recent-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 20px;
    padding: 26px;
    border: 1px solid var(--border-subtle);
}

.recent-card h3 {
    font-size: 18px;
    margin-bottom: 22px;
    font-weight: 600;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--dark-tertiary);
}

.data-table th:first-child {
    border-radius: 12px 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 12px 0 0;
}

.data-table tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--dark-tertiary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.completed,
.status-badge.verified,
.status-badge.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.cancelled,
.status-badge.inactive {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header h2 {
    font-size: 26px;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 14px;
    color: var(--text-inverse);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e6b8, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
    padding: 12px 22px;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--dark-elevated);
    border-color: var(--primary-color);
}

.btn-danger {
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Shops Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.shop-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 20px;
    padding: 26px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 212, 170, 0.2);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.shop-name {
    font-size: 20px;
    font-weight: 700;
}

.shop-actions {
    display: flex;
    gap: 10px;
}

.shop-actions button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.shop-actions .edit-btn {
    background: var(--dark-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.shop-actions .edit-btn:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.25);
}

.shop-actions .delete-btn {
    background: var(--dark-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.shop-actions .delete-btn:hover {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 18px;
}

.shop-info i {
    width: 20px;
    color: var(--text-muted);
}

.shop-stats {
    display: flex;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.shop-stat {
    text-align: center;
    flex: 1;
}

.shop-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.shop-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Filters */
.filters {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-select,
.filter-input,
.search-input {
    padding: 14px 18px;
    background: var(--dark-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-select:focus,
.filter-input:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.1);
}

.search-input {
    flex: 1;
    max-width: 320px;
}

/* Users Table */
.users-table-container {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.mini-btn {
    background: var(--dark-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.15);
}

/* Reports Grid */
.report-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
}

.reports-grid.single-column {
    grid-template-columns: 1fr;
}

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

.report-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 20px;
    padding: 26px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.report-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 170, 0.15);
}

.report-card h3 {
    font-size: 18px;
    margin-bottom: 22px;
    font-weight: 600;
}

.report-chart {
    min-height: 220px;
}

.metric-row {
    display: grid;
    grid-template-columns: 140px 2fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.metric-label,
.metric-value {
    font-size: 14px;
    font-weight: 500;
}

.metric-track {
    height: 10px;
    border-radius: 999px;
    background: var(--dark-tertiary);
    overflow: hidden;
}

.metric-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 1s ease;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
}

.settings-card {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-subtle);
}

.settings-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.1);
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 50px;
}

.inline-toggle {
    position: absolute;
    right: 14px;
    top: 14px;
    transform: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.form-message {
    min-height: 22px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--dark-card), var(--dark-secondary));
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--text-primary);
    background: var(--dark-tertiary);
}

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 48px;
    font-size: 15px;
}

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

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-header span,
    .nav-item span,
    .logout-btn span {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 16px;
    }
    
    .nav-item i {
        font-size: 20px;
    }
    
    .logout-btn {
        padding: 16px;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .top-header {
        padding: 16px 20px;
    }
    
    .top-header h1 {
        font-size: 20px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .filters,
    .report-filters,
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        max-width: none;
    }
    
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: calc(100vw - 32px);
        padding: 24px;
        margin: 16px;
    }
    
    .user-info {
        padding: 6px 10px 6px 6px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .login-box .logo {
        width: 88px;
        height: 88px;
        border-radius: 30px;
    }
    
    .login-box .logo i {
        font-size: 36px;
    }

    .login-box h2 {
        font-size: 2.3rem;
        line-height: 1.08;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .login-support {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 320px;
        margin-bottom: 26px;
    }

    .input-group {
        margin-bottom: 18px;
    }

    .input-group input {
        padding: 20px 56px 20px 54px;
        border-radius: 24px;
        font-size: 17px;
    }

    .input-group i {
        left: 20px;
        font-size: 20px;
    }

    .password-toggle {
        right: 18px;
        font-size: 18px;
    }

    .login-btn {
        margin-top: 16px;
        border-radius: 24px;
        padding: 20px;
        font-size: 18px;
    }
    
    .metric-row {
        grid-template-columns: 1fr;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark-tertiary);
    border-radius: 4px;
}

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

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

/* Selection */
::selection {
    background: rgba(0, 212, 170, 0.3);
    color: var(--text-primary);
}
