﻿/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Variables - Light Theme ===== */
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #ccfbf1;
    --secondary-color: #064e3b;
    --accent-color: #2dd4bf;
    --accent-glow: rgba(45, 212, 191, 0.4);
    --background-color: #f0f4f8;
    --surface-color: #ffffff;
    --surface-hover: #f1f5f9;
    --surface-border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --danger-color: #ef4444;
    --danger-bg: #fee2e2;
    --info-color: #3b82f6;
    --info-bg: #dbeafe;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --sidebar-width: 290px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    /* Glass effect variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Animated background */
    --gradient-1: #0f766e;
    --gradient-2: #064e3b;
    --gradient-3: #115e59;
    --gradient-4: #134e4a;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --primary-color: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-light: #134e4a;
    --secondary-color: #14b8a6;
    --accent-color: #5eead4;
    --accent-glow: rgba(94, 234, 212, 0.3);
    --background-color: #0f172a;
    --surface-color: rgba(30, 41, 59, 0.8);
    --surface-hover: rgba(51, 65, 85, 0.6);
    --surface-border: rgba(51, 65, 85, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger-bg: rgba(239, 68, 68, 0.15);
    --info-bg: rgba(59, 130, 246, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Admin Layout ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--background-color);
    position: relative;
}

/* ===== STUNNING SIDEBAR ===== */
.admin-sidebar {
    width: var(--sidebar-width);
    position: fixed;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    /* Animated gradient background */
    background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 25%, var(--gradient-3) 50%, var(--gradient-4) 75%, var(--gradient-1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    /* Subtle inner shadow for depth */
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1), 4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Animated gradient keyframes */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating orbs/particles effect */
.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%), radial-gradient(circle at 40% 60%, rgba(45, 212, 191, 0.1) 0%, transparent 30%);
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
}

/* Glass overlay on top of gradient */
.admin-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* ===== Sidebar Header ===== */
.sidebar-header {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

/* ===== Sidebar Navigation ===== */
.sidebar-nav {
    flex: 1;
    padding: 1.25rem 0;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }

        .sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

/* ===== Nav Section ===== */
.nav-section {
    margin-bottom: 1rem;
}

.nav-section-title {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    position: relative;
}

    .nav-section-title::after {
        content: '';
        position: absolute;
        left: 1.5rem;
        right: 1.5rem;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    }

/* ===== Nav Items - Glass Cards ===== */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    margin: 0.25rem 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    /* Glass base */
    background: transparent;
    border: 1px solid transparent;
}

    /* Glow effect on hover */
    .nav-item::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: var(--radius-md);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        opacity: 0;
        transition: opacity var(--transition-normal);
    }

    /* Shine effect */
    .nav-item::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( 45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70% );
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .nav-item:hover {
        color: #ffffff;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateX(4px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

        .nav-item:hover::before {
            opacity: 1;
        }

        .nav-item:hover::after {
            transform: translateX(100%);
        }

        .nav-item:hover .nav-item-icon {
            transform: scale(1.2) rotate(-5deg);
            filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.6));
        }

    /* Active state - Glassmorphism card */
    .nav-item.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(45, 212, 191, 0.3);
    }

        .nav-item.active::before {
            opacity: 1;
            background: linear-gradient(135deg, rgba(45, 212, 191, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
        }

        /* Active indicator line */
        .nav-item.active .nav-item-icon::after {
            content: '';
            position: absolute;
            left: -1rem;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 24px;
            background: linear-gradient(180deg, var(--accent-color), rgba(45, 212, 191, 0.5));
            border-radius: 0 4px 4px 0;
            box-shadow: 0 0 12px var(--accent-color);
        }

/* ===== Nav Item Icon ===== */
.nav-item-icon {
    font-size: 1.375rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.nav-item.active .nav-item-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.5));
}

.nav-item-text {
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.nav-item.active .nav-item-text {
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ===== Sidebar Footer ===== */
.sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== Main Content ===== */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

    /* Subtle gradient background for main area */
    .admin-main::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        width: 50%;
        height: 50%;
        background: radial-gradient(ellipse at top right, rgba(45, 212, 191, 0.05) 0%, transparent 60%);
        pointer-events: none;
    }

/* ===== Header ===== */
.admin-header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    /* Glassmorphism header */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .admin-header {
    background: rgba(30, 41, 59, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ===== Theme Toggle - Pill Style ===== */
.theme-toggle {
    display: flex;
    background: var(--surface-hover);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.theme-toggle-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all var(--transition-fast);
    font-size: 1.125rem;
    opacity: 0.5;
}

    .theme-toggle-btn:hover {
        opacity: 0.8;
    }

    .theme-toggle-btn.active {
        background: var(--surface-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 1;
    }

/* ===== User Menu - Glass Card ===== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .user-menu:hover {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }

[data-theme="dark"] .user-menu {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
    position: relative;
}

    /* Online indicator */
    .user-avatar::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 12px;
        height: 12px;
        background: var(--success-color);
        border: 2px solid white;
        border-radius: 50%;
        box-shadow: 0 0 8px var(--success-color);
    }

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.3;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== Content Area ===== */
.admin-content {
    flex: 1;
    padding: 2rem;
    position: relative;
}

/* ===== Page Header ===== */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 400;
}

/* ===== Cards - Glass Style ===== */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: all var(--transition-normal);
}

    .card:hover {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
    }

[data-theme="dark"] .card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .card-header {
    background: rgba(0, 0, 0, 0.2);
}

.card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-body {
    padding: 1.5rem;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== Stat Cards - Glassmorphism ===== */
.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    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 var(--transition-normal);
    }

    .stat-card::after {
        content: '';
        position: absolute;
        top: -100%;
        left: -100%;
        width: 300%;
        height: 300%;
        background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 60%);
        opacity: 0;
        transition: opacity var(--transition-normal);
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(45, 212, 191, 0.2);
    }

        .stat-card:hover::before {
            opacity: 1;
        }

        .stat-card:hover::after {
            opacity: 1;
        }

[data-theme="dark"] .stat-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

    .stat-icon.primary {
        background: linear-gradient(135deg, var(--primary-light) 0%, rgba(45, 212, 191, 0.2) 100%);
        color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
    }

    .stat-icon.success {
        background: linear-gradient(135deg, var(--success-bg) 0%, rgba(16, 185, 129, 0.2) 100%);
        color: var(--success-color);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    }

    .stat-icon.warning {
        background: linear-gradient(135deg, var(--warning-bg) 0%, rgba(245, 158, 11, 0.2) 100%);
        color: var(--warning-color);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    }

    .stat-icon.info {
        background: linear-gradient(135deg, var(--info-bg) 0%, rgba(59, 130, 246, 0.2) 100%);
        color: var(--info-color);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }

    .stat-icon.danger {
        background: linear-gradient(135deg, var(--danger-bg) 0%, rgba(239, 68, 68, 0.2) 100%);
        color: var(--danger-color);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    }

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ===== Tables ===== */
.table {
    width: 100%;
    color: var(--text-primary);
    border-collapse: collapse;
}

    .table th {
        background: rgba(0, 0, 0, 0.02);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.6875rem;
        letter-spacing: 0.08em;
        color: var(--text-secondary);
        padding: 1rem 1.25rem;
        text-align: left;
        border-bottom: 1px solid var(--surface-border);
    }

[data-theme="dark"] .table th {
    background: rgba(0, 0, 0, 0.2);
}

.table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--surface-border);
    vertical-align: middle;
    font-size: 0.9375rem;
}

.table tbody tr {
    transition: all var(--transition-fast);
}

    .table tbody tr:hover {
        background: rgba(45, 212, 191, 0.05);
    }

    .table tbody tr:last-child td {
        border-bottom: none;
    }

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-color);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-color);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-color);
}

.badge-secondary {
    background: var(--surface-hover);
    color: var(--text-secondary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

    .btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px var(--accent-glow);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    }

        .btn-primary:hover::before {
            left: 100%;
        }

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

.btn-sm {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
}

/* ===== Form Controls ===== */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-family);
    border: 1.5px solid var(--surface-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px var(--accent-glow);
        background: rgba(255, 255, 255, 1);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

[data-theme="dark"] .form-control {
    background: rgba(30, 41, 59, 0.8);
}

/* ===== Modal - Glassmorphism ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1001;
    min-width: 480px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: slideUp 0.3s ease;
}

[data-theme="dark"] .modal-dialog {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===== Text Utilities ===== */
.text-danger {
    color: var(--danger-color) !important;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }

        .admin-sidebar.open {
            transform: translateX(0);
        }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-dialog {
        min-width: auto;
        width: calc(100% - 2rem);
        margin: 1rem;
    }

    .admin-content {
        padding: 1rem;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }

/* ===== Selection ===== */
::selection {
    background: var(--accent-color);
    color: var(--secondary-color);
}
/* Fișa Client */
.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

    .back-link:hover {
        color: var(--primary-color);
    }

.client-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1E5F54 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.client-contact {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.client-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

    .client-badge.active {
        background: var(--success-bg);
        color: var(--success-color);
    }

    .client-badge.inactive {
        background: var(--surface-hover);
        color: var(--text-muted);
    }

.fisa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.fisa-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--surface-border);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-state {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    background: var(--surface-hover);
    border-radius: 8px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-card {
    padding: 1rem;
    background: var(--surface-hover);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

    .item-card.active {
        border-left-color: var(--success-color);
        background: var(--success-bg);
    }

    .item-card.consumed {
        border-left-color: var(--text-muted);
        opacity: 0.7;
    }

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

    .item-badge.success {
        background: var(--success-bg);
        color: var(--success-color);
    }

    .item-badge.warning {
        background: var(--warning-bg);
        color: var(--warning-color);
    }

    .item-badge.muted {
        background: var(--surface-hover);
        color: var(--text-muted);
    }

    .item-badge.info {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .item-badge.danger {
        background: var(--danger-bg);
        color: var(--danger-color);
    }

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.show-more {
    text-align: center;
    padding: 0.75rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

    .btn-info:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
        transform: translateY(-2px);
    }

    .btn-info:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    }

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

    .btn-success:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
        transform: translateY(-2px);
    }

    .btn-success:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    }
    /* ========== MOBILE RESPONSIVE ========== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 1rem;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 999;
        transition: left 0.3s ease;
    }

    .admin-layout.sidebar-open .admin-sidebar {
        left: 0;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .header-title {
        font-size: 1rem !important;
    }

    .user-info {
        display: none;
    }

    .theme-toggle {
        display: none;
    }

    .header-right .nav-item .nav-item-text {
        display: none;
    }

    .header-right {
        gap: 0.5rem !important;
    }

    .admin-content {
        padding: 1rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .fisa-grid {
        grid-template-columns: 1fr !important;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 0.75rem 1rem !important;
    }

    .user-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }
}
/* Force vertical layout on mobile for card lists */
@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: hidden !important;
    }

    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ===== Identity/Account Pages Dark Mode Fix ===== */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
    color: var(--text-primary);
}

[data-theme="dark"] .form-floating > .form-control {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-primary);
    border-color: var(--surface-border);
}

[data-theme="dark"] .form-floating > label {
    color: var(--text-muted);
}

[data-theme="dark"] .form-floating > .form-control:focus ~ label,
[data-theme="dark"] .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--text-muted);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    color: var(--text-primary);
}

    [data-theme="dark"] input:disabled,
    [data-theme="dark"] .form-control:disabled {
        background: rgba(51, 65, 85, 0.5);
        color: var(--text-secondary);
    }

[data-theme="dark"] .alert {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--surface-border);
}

[data-theme="dark"] .alert-success {
    background: var(--success-bg);
    color: var(--success-color);
    border-color: var(--success-color);
}

[data-theme="dark"] .alert-danger {
    background: var(--danger-bg);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

[data-theme="dark"] .alert-info {
    background: var(--info-bg);
    color: var(--info-color);
    border-color: var(--info-color);
}

[data-theme="dark"] a:not(.btn):not(.nav-item):not(.manage-nav-link) {
    color: var(--primary-color);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span:not(.badge):not(.nav-item-icon):not(.nav-item-text) {
    color: var(--text-primary);
}

[data-theme="dark"] .text-danger {
    color: var(--danger-color) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] hr {
    border-color: var(--surface-border);
}

/* Nav pills in Manage pages */
[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

    [data-theme="dark"] .nav-link.active {
        background: var(--primary-light);
        color: var(--primary-color);
    }