/* =========================================
   CSS variables and Base Settings
========================================= */
:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --accent: #10b981;
    --accent-light: #34d399;
    --dark: #0f172a;
    --dark-muted: #334155;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-card: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--dark-muted);
    background-color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Glassmorphism effect */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    z-index: -1;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-light), transparent);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-light), transparent);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary), transparent);
    animation-delay: -10s;
    opacity: 0.4;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   Typography & Headings
========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.25rem; }
h5 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    padding: 6rem 0 4rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.2) 100%);
    backdrop-filter: blur(10px);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-illustration {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-card {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    animation: pulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
    opacity: 0;
}

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

/* =========================================
   Germs Section
========================================= */
.germs-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

.germ-group {
    margin-bottom: 4rem;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
    color: var(--dark);
}

.bgn-icon { color: #e11d48; }
.cgp-icon { color: #7c3aed; }
.autres-icon { color: #059669; }

/* Grid Layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* =========================================
   Cards UI
========================================= */
.germ-card {
    background: var(--glass-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.card-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--gray-100);
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Active Card Styles (Enterobacterales) */
.active-card {
    border-color: rgba(16, 185, 129, 0.3);
}

.active-card .card-icon-container {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.active-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.active-card:hover .card-icon-container {
    background: var(--accent);
    color: var(--white);
}

.status-indicator {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Disabled Cards Styles */
.disabled-card {
    opacity: 0.8;
}

.disabled-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.disabled-card:hover .card-icon-container {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.disabled-card:hover .coming-soon-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* =========================================
   Toast Notification
========================================= */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.toast-message {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-heading);
}

.toast-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--secondary);
    width: 100%;
}

.toast.show .toast-progress {
    animation: progress 3s linear forwards;
}

@keyframes progress {
    100% { width: 0; }
}

/* =========================================
   Footer
========================================= */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--gray-500);
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}

/* =========================================
   Responsive Match
========================================= */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 { font-size: 2.75rem; }
    h2 { font-size: 1.5rem; }
    
    .blob {
        display: none; /* Reduce load on mobile */
    }
}

@media (max-width: 600px) {
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-heading);
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-muted);
}

.btn-logout {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-logout:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Guest Navbar Buttons */
.navbar-guest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-muted);
    background: none;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-nav-login:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.btn-nav-register {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.3);
}

.btn-nav-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}

/* Auth Prompt Modal Extras */
.auth-prompt-modal {
    position: relative;
}

.auth-modal-icon {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary) !important;
}

.auth-prompt-modal .modal-actions {
    flex-direction: column;
    gap: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.25rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--dark);
}

/* =========================================
   Auth Page (Login / Register)
========================================= */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    animation: fadeInUp 0.6s ease-out;
}

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

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

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.3);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-tagline {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 0.75rem;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.625rem;
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 0.6rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-tab:hover:not(.active) {
    color: var(--dark-muted);
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active-form {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-muted);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--gray-500);
    margin-right: 0.25rem;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-300);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    text-align: center;
    font-weight: 500;
    min-height: 1.2em;
}

.form-success {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    text-align: center;
    font-weight: 500;
    min-height: 1.2em;
}

/* =========================================
   Auth Page Responsive
========================================= */
@media (max-width: 500px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .navbar-user .user-name {
        display: none;
    }
}

/* =========================================
   Admin Dashboard
========================================= */
.admin-badge-nav {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back-app {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-back-app:hover {
    background: rgba(37, 99, 235, 0.15);
}

.admin-main {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.admin-header {
    margin-bottom: 2.5rem;
}

.admin-header h1 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.admin-header h1 i {
    color: var(--primary);
}

.admin-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

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

.stat-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-total .stat-icon  { background: rgba(37, 99, 235, 0.1);  color: var(--primary); }
.stat-week .stat-icon   { background: rgba(16, 185, 129, 0.1); color: var(--accent); }
.stat-month .stat-icon  { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

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

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Table Card */
.admin-table-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
}

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

.table-header h2 {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.table-header h2 i {
    color: var(--gray-500);
    font-size: 1rem;
}

.table-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-width: 240px;
}

.table-search i {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.table-search input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--dark);
    width: 100%;
}

.table-search input::placeholder {
    color: var(--gray-300);
}

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 0.875rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    background: var(--gray-100);
}

.admin-table td {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--dark-muted);
}

.admin-table tbody tr {
    transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

.id-badge {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-family: monospace;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-cell-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.email-text {
    color: var(--gray-500);
}

.date-text {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.btn-delete-user {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-delete-user:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.table-loading, .table-empty {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--gray-500);
}

.table-footer {
    padding: 0.875rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Delete Confirmation Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease-out;
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.modal-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-cancel {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--dark-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: var(--gray-100);
}

.btn-danger {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    background: #dc2626;
    color: var(--white);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Admin Responsive */
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
    }

    .table-search {
        min-width: 100%;
    }
}
