/* ================================================
   Annotation Tool – Design System
   Dark theme, purple accents, glassmorphism
   ================================================ */

/* --- CSS Variables --- */
:root {
    --bg-dark:          #0f172a;
    --bg-card:          rgba(30, 41, 59, 0.9);
    --bg-input:         rgba(15, 23, 42, 0.6);
    --purple-vibrant:   #7c3aed;
    --purple-light:     #a78bfa;
    --purple-dark:      #5b21b6;
    --teal-accent:      #2dd4bf;
    --text-primary:     #f8fafc;
    --text-secondary:   #94a3b8;
    --text-muted:       #64748b;
    --border-subtle:    rgba(124, 58, 237, 0.2);
    --border-glow:      rgba(124, 58, 237, 0.35);
    --shadow-card:      0 25px 50px -12px rgba(0, 0, 0, 0.4),
                        0 0 0 1px rgba(255, 255, 255, 0.05),
                        0 0 40px rgba(124, 58, 237, 0.12);
    --radius-lg:        24px;
    --radius-md:        14px;
    --radius-sm:        10px;
    --transition:       0.3s ease;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Background Pattern --- */
.bg-pattern {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(124,58,237,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45,212,191,0.06) 0%, transparent 50%);
}

.geometric-shapes { position: absolute; inset: 0; overflow: hidden; }

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,0.07), transparent);
    animation: pulse 18s ease-in-out infinite;
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; animation-delay: 0s; }
.shape-2 { width: 400px; height: 400px; bottom: -150px; left: -100px; animation-delay: -5s; }
.shape-3 { width: 300px; height: 300px; top: 50%; left: 50%; animation-delay: -10s; }
.shape-4 { width: 200px; height: 200px; top: 10%; left: 15%; animation-delay: -3s; }
.shape-5 { width: 250px; height: 250px; bottom: 20%; right: 10%; animation-delay: -8s; }

@keyframes pulse {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.25; }
    50%      { transform: scale(1.08) translateY(-20px); opacity: 0.45; }
}

/* --- Main Container --- */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ================================================
   Toast Notifications
   ================================================ */
.toast-container {
    position: fixed; top: 1.25rem; right: 1.25rem;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 0.75rem;
}

.toast {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.35s ease-out;
    max-width: 380px;
}
.toast.removing { animation: slideOut 0.3s ease-in forwards; }

.toast-icon { display: flex; align-items: center; color: var(--purple-light); flex-shrink: 0; }
.toast-success .toast-icon { color: #34d399; }
.toast-error .toast-icon, .toast-danger .toast-icon { color: #f87171; }

.toast-message { font-size: 0.875rem; color: var(--text-secondary); flex: 1; }

.toast-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 1.25rem; line-height: 1;
    padding: 0 0 0 0.5rem;
    transition: color var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

@keyframes slideIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { to   { transform: translateX(100%); opacity: 0; } }

/* ================================================
   Auth Pages  (login.html, pending.html)
   ================================================ */
.auth-container {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 1.5rem;
    position: relative; overflow: hidden;
}

/* Floating Circles */
.auth-bg-elements {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.auth-circle {
    position: absolute; border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.04));
    animation: floatCircle 20s ease-in-out infinite;
}
.auth-circle-1 { width: 350px; height: 350px; top: -120px; right: -120px; animation-delay: 0s; }
.auth-circle-2 { width: 250px; height: 250px; bottom: -80px; left: -80px; animation-delay: -7s; }
.auth-circle-3 { width: 180px; height: 180px; top: 40%; left: 5%; animation-delay: -14s; }

@keyframes floatCircle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50%      { transform: translateY(-30px) scale(1.05); opacity: 0.55; }
}

/* ---- Auth Card ---- */
.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-card);
    position: relative; z-index: 1;
    text-align: center;
}

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

.auth-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(45,212,191,0.1));
    color: var(--purple-light);
    margin-bottom: 1.25rem;
    animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.25); }
    50%      { box-shadow: 0 0 0 14px rgba(124,58,237,0); }
}

.auth-header h1 {
    font-size: 1.75rem; font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, var(--purple-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- Google Button ---- */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 0.85rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: #fff;
    color: #3c4043;
    border: none; border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-google:active { transform: translateY(0); }

/* ---- Divider ---- */
.auth-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border-subtle);
}

/* ---- Info Items ---- */
.auth-info {
    display: flex; flex-direction: column; gap: 0.75rem;
    text-align: left;
}
.auth-info-item {
    display: flex; align-items: flex-start; gap: 0.65rem;
    font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
}
.auth-info-item svg { flex-shrink: 0; margin-top: 1px; fill: var(--purple-light); }

/* ================================================
   Pending Card  (pending.html)
   ================================================ */
.pending-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    width: 100%; max-width: 480px;
    box-shadow: var(--shadow-card);
    position: relative; z-index: 1;
    text-align: center;
}

.pending-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(251,191,36,0.05));
    color: #fbbf24;
    margin-bottom: 1.5rem;
    animation: pendingSpin 8s linear infinite;
}
@keyframes pendingSpin {
    0%   { box-shadow: 0 0 0 0 rgba(251,191,36,0.3); }
    50%  { box-shadow: 0 0 0 16px rgba(251,191,36,0); }
    100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.3); }
}

.pending-title {
    font-size: 1.75rem; font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #fbbf24);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pending-subtitle {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 1.75rem;
}
.pending-subtitle strong { color: var(--text-primary); }

/* Status Rows */
.pending-status {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.status-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0;
    font-size: 0.88rem;
}
.status-row + .status-row { border-top: 1px solid rgba(255,255,255,0.05); }

.status-label { color: var(--text-muted); font-weight: 500; }
.status-value { color: var(--text-secondary); }

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
    text-transform: capitalize;
}
.status-badge.pending {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.3);
}

/* Pending Message */
.pending-message {
    display: flex; align-items: flex-start; gap: 0.65rem;
    text-align: left;
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.55;
    padding: 1rem 1.15rem;
    background: rgba(124,58,237,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
}
.pending-message svg { flex-shrink: 0; margin-top: 1px; fill: var(--purple-light); }

/* Logout Button */
.btn-logout {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(248,113,113,0.3);
    color: #f87171;
    border-radius: var(--radius-md);
    font-size: 0.9rem; font-weight: 500;
    cursor: pointer; text-decoration: none;
    transition: all var(--transition);
}
.btn-logout:hover {
    background: rgba(248,113,113,0.1);
    border-color: rgba(248,113,113,0.5);
    transform: translateY(-1px);
}

/* ================================================
   Dashboard Layout  (admin.html)
   ================================================ */

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    position: fixed; top: 1rem; left: 1rem; z-index: 1100;
    width: 44px; height: 44px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); cursor: pointer;
    align-items: center; justify-content: center;
    backdrop-filter: blur(16px);
}
.mobile-menu-btn svg { width: 22px; height: 22px; fill: var(--text-primary); }

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 999;
}
.sidebar-overlay.active { display: block; }

.dashboard-layout {
    display: flex; min-height: 100vh;
}

/* Upload progress overlay (admin upload) */
.upload-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.upload-progress-overlay[hidden] {
    display: none !important;
}

.upload-progress-card {
    width: min(560px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
}

.upload-progress-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.upload-progress-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.upload-progress-spinner {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 3px solid rgba(124, 58, 237, 0.25);
    border-top-color: var(--purple-light);
    margin-bottom: 1rem;
    animation: uploadSpin 0.9s linear infinite;
}

.upload-progress-count {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-progress-bar-bg {
    width: 100%;
    height: 11px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.upload-progress-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple-vibrant), var(--teal-accent));
    transition: width 0.28s ease;
}

.upload-progress-file {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ---- Sidebar ---- */
.sidebar {
    width: 260px; min-height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    display: flex; flex-direction: column;
    padding: 0 0.75rem;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.5rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0.5rem;
}
.sidebar-brand-icon {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-dark));
    color: #fff; flex-shrink: 0;
}
.sidebar-title {
    font-size: 1.15rem; font-weight: 700;
    background: linear-gradient(135deg, #f8fafc, var(--purple-light));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sidebar-subtitle {
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 0.04em; text-transform: uppercase;
}

/* Nav */
.nav-menu { list-style: none; flex: 1; padding: 0.5rem 0; }
.nav-item { margin-bottom: 0.2rem; }
.nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: all var(--transition);
}
.nav-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.nav-link:hover { background: rgba(124,58,237,0.1); color: var(--text-primary); }
.nav-link.active {
    background: rgba(124,58,237,0.15);
    color: var(--purple-light);
    font-weight: 600;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1rem 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}
.user-info { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.75rem; }
.user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.user-avatar-sm {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: 0.78rem; flex-shrink: 0;
}
.user-details h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.user-details span { font-size: 0.75rem; color: var(--text-muted); text-transform: capitalize; }

.btn-sidebar-logout {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.6rem;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: var(--radius-sm);
    color: #f87171; font-size: 0.85rem; font-weight: 500;
    text-decoration: none; cursor: pointer;
    transition: all var(--transition);
}
.btn-sidebar-logout:hover { background: rgba(248,113,113,0.15); border-color: rgba(248,113,113,0.35); }

/* ---- Main Content ---- */
.main-content {
    flex: 1; margin-left: 260px;
    padding: 2rem 2.5rem;
}

.page-header { margin-bottom: 2rem; }
.page-header h1 {
    font-size: 1.6rem; font-weight: 700;
    background: linear-gradient(135deg, #f8fafc, var(--purple-light));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
}
.page-header p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin-bottom: 1.75rem;
}
.stat-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    backdrop-filter: blur(16px);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; fill: currentColor; }
.stat-icon-purple { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.stat-icon-teal   { background: rgba(45,212,191,0.15); color: var(--teal-accent); }
.stat-icon-amber  { background: rgba(251,191,36,0.15); color: #fbbf24; }

.stat-info h3 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); }
.stat-info p  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.card-header h3 {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1rem; font-weight: 600; color: var(--text-primary);
}
.card-header h3 svg { fill: var(--purple-light); }
.card-body { padding: 1.25rem; }

/* ---- Tables ---- */
.table-container { overflow-x: auto; }
.table {
    width: 100%; border-collapse: collapse;
    font-size: 0.88rem;
}
.table thead th {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.table tbody td {
    padding: 0.8rem 1.25rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.table tbody tr:hover { background: rgba(124,58,237,0.04); }
.table tbody tr:last-child td { border-bottom: none; }

.video-title-cell {
    max-width: 250px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-cell {
    display: flex; align-items: center; gap: 0.6rem;
}
.you-badge { font-size: 0.72rem; color: var(--purple-light); }

/* ---- Role Badges ---- */
.role-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
    text-transform: capitalize;
}
.role-admin     { background: rgba(124,58,237,0.15); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.3); }
.role-annotator { background: rgba(45,212,191,0.15); color: var(--teal-accent); border: 1px solid rgba(45,212,191,0.3); }
.role-pending   { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }

/* ---- Forms ---- */
.form-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem; font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: border-color var(--transition);
}
.form-select:focus { outline: none; border-color: var(--purple-vibrant); }
.form-select-sm { padding: 0.35rem 0.6rem; font-size: 0.8rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; margin-bottom: 0.4rem;
    font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}

.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem; font-family: 'Inter', sans-serif;
    transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--purple-vibrant); }
.form-input::placeholder { color: var(--text-muted); }

/* Upload Form */
.upload-form {
    display: flex; align-items: flex-end; gap: 1rem;
    flex-wrap: wrap;
}
.upload-form-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 0.75rem;
}
.file-input-wrapper { flex: 1; min-width: 200px; }
.file-input-wrapper input[type="file"] { display: none; }
.file-label {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.85rem 1.15rem;
    background: var(--bg-input);
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition);
}
.file-label:hover { border-color: var(--purple-vibrant); color: var(--text-secondary); }
.file-label svg { fill: var(--purple-light); flex-shrink: 0; }

.assign-form .btn-primary { margin-top: 0.25rem; }

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-dark));
    color: #fff; border: none; border-radius: 8px;
    font-size: 0.88rem; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 3px 12px rgba(124,58,237,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(124,58,237,0.4); }
.btn-primary svg { fill: #fff; }

.btn-sm {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: none; border-radius: 6px;
    font-size: 0.78rem; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: all var(--transition);
}
.btn-secondary {
    background: rgba(124,58,237,0.15); color: var(--purple-light);
    border: 1px solid rgba(124,58,237,0.25);
}
.btn-secondary:hover { background: rgba(124,58,237,0.25); }
.btn-danger {
    background: rgba(248,113,113,0.1); color: #f87171;
    border: 1px solid rgba(248,113,113,0.25);
}
.btn-danger:hover { background: rgba(248,113,113,0.2); }
.btn-danger svg { fill: currentColor; }

/* Action buttons in table */
.action-buttons { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.inline-form { display: flex; align-items: center; gap: 0.4rem; }

/* Empty state */
.empty-state { color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 1.5rem 0; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }

/* In-table progress */
.table-progress { display: flex; flex-direction: column; gap: 0.35rem; min-width: 180px; }
.progress-stats-inline { font-size: 0.75rem; color: var(--text-muted); }
.flagged-count { color: #f87171; font-size: 0.72rem; }

/* Percentage label row */
.progress-pct-row { display: flex; align-items: baseline; gap: 0.35rem; }
.progress-pct { font-size: 0.9rem; font-weight: 700; color: var(--teal-accent); }
.progress-pct-label { font-size: 0.72rem; color: var(--text-muted); }

/* Three-segment bar */
.progress-seg-bar {
    display: flex; flex-direction: row;
    height: 7px; border-radius: 999px;
    overflow: hidden;
    background: var(--bg-input);
    width: 100%;
}
.progress-seg-completed {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-vibrant), var(--teal-accent));
    transition: width 0.4s ease;
}
.progress-seg-flagged {
    height: 100%;
    background: #f87171;
    transition: width 0.4s ease;
}
.progress-seg-pending {
    height: 100%;
    background: var(--bg-input);
    transition: width 0.4s ease;
}

/* ================================================
   Audit Page
   ================================================ */

/* Back link */
.audit-back-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.8rem; color: var(--text-muted);
    text-decoration: none; margin-bottom: 0.4rem;
    transition: color var(--transition);
}
.audit-back-link:hover { color: var(--purple-light); }
.audit-back-link svg { fill: currentColor; }

.audit-video-link { color: var(--purple-light); font-size: 0.85rem; text-decoration: none; }
.audit-video-link:hover { text-decoration: underline; }

/* Stats row inside summary card */
.audit-stats-row {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 1.5rem;
}
.audit-stat { text-align: center; }
.audit-stat-value {
    display: block; font-size: 1.4rem; font-weight: 700; color: var(--text-primary);
}
.audit-stat-label {
    display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem;
}
.audit-stat-done    .audit-stat-value { color: var(--teal-accent); }
.audit-stat-flagged .audit-stat-value { color: #f87171; }
.audit-progress-col { margin-left: auto; display: flex; flex-direction: column; gap: 0.45rem; }

/* Filter tabs */
.audit-filter-tabs {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.audit-tab {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    transition: all var(--transition);
}
.audit-tab:hover { color: var(--text-primary); border-color: var(--border-glow); }
.audit-tab.active {
    background: rgba(124,58,237,0.18);
    color: var(--purple-light);
    border-color: var(--border-glow);
}
.tab-count {
    background: rgba(255,255,255,0.08);
    border-radius: 999px; padding: 0 0.4rem;
    font-size: 0.7rem;
}
.audit-tab.tab-completed.active { background: rgba(45,212,191,0.12); color: var(--teal-accent); border-color: rgba(45,212,191,0.35); }
.audit-tab.tab-completed.active .tab-count { background: rgba(45,212,191,0.2); }
.audit-tab.tab-flagged.active   { background: rgba(248,113,113,0.12); color: #f87171; border-color: rgba(248,113,113,0.35); }
.audit-tab.tab-flagged.active   .tab-count { background: rgba(248,113,113,0.2); }

/* Audit table */
.audit-table .audit-id        { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.audit-table .audit-timestamp { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.audit-table .audit-len       { font-size: 0.78rem; color: var(--text-muted); text-align: right; white-space: nowrap; }

.audit-text {
    font-size: 0.82rem; line-height: 1.55;
    max-width: 240px; overflow-wrap: break-word;
}
.audit-text-original { color: var(--text-secondary); font-style: italic; }
.audit-text-corrected { color: var(--text-primary); }
.audit-text-none      { color: var(--text-muted); font-style: italic; font-size: 0.75rem; }

.audit-annotator { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; }

/* Status badge */
.audit-status-badge {
    display: inline-block;
    font-size: 0.72rem; font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px; white-space: nowrap;
}
.audit-status-completed { background: rgba(45,212,191,0.15);  color: var(--teal-accent); border: 1px solid rgba(45,212,191,0.35); }
.audit-status-flagged   { background: rgba(248,113,113,0.15); color: #f87171;             border: 1px solid rgba(248,113,113,0.35); }
.audit-status-pending   { background: var(--bg-input);        color: var(--text-muted);  border: 1px solid rgba(255,255,255,0.08); }

/* Row tints */
.audit-row-flagged   { background: rgba(248,113,113,0.04); }
.audit-row-completed { background: rgba(45,212,191,0.03); }

/* Audio player */
.audit-audio-cell { white-space: nowrap; }
.audit-audio { width: 190px; height: 28px; display: block; }

/* Audit button in Videos table */
.btn-audit {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.32rem 0.7rem;
    border-radius: 6px;
    font-size: 0.76rem; font-weight: 600;
    background: rgba(124,58,237,0.13);
    color: var(--purple-light);
    border: 1px solid rgba(124,58,237,0.28);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-audit:hover { background: rgba(124,58,237,0.25); border-color: var(--border-glow); }
.btn-audit svg { fill: currentColor; }

/* Pill badges */
.progress-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.1rem; }
.progress-pill {
    font-size: 0.68rem; font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pill-done    { background: rgba(45,212,191,0.15); color: var(--teal-accent);   border: 1px solid rgba(45,212,191,0.35); }
.pill-flagged { background: rgba(248,113,113,0.15); color: #f87171;              border: 1px solid rgba(248,113,113,0.35); }
.pill-pending { background: var(--bg-input);        color: var(--text-muted);   border: 1px solid rgba(255,255,255,0.08); }

/* Form hint */
.form-hint {
    font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.5;
}
.form-hint code {
    background: var(--bg-input); padding: 0.15rem 0.4rem; border-radius: 4px;
    font-size: 0.78rem; color: var(--purple-light);
}

/* ================================================
   Annotator Dashboard  (dashboard.html)
   ================================================ */

/* Empty state large */
.empty-state-lg {
    text-align: center; padding: 3rem 1rem;
}
.empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(124,58,237,0.1); color: var(--purple-light);
    margin-bottom: 1.25rem;
}
.empty-state-lg h3 {
    font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem;
}
.empty-state-lg p {
    font-size: 0.9rem; color: var(--text-muted); max-width: 360px; margin: 0 auto;
}

/* Task grid */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.task-card-header {
    display: flex; align-items: flex-start; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.task-video-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(124,58,237,0.15); color: var(--purple-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.task-video-title {
    font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress bar */
.progress-wrapper {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.progress-bar-bg {
    flex: 1; height: 8px;
    background: var(--bg-input);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-sm { height: 6px; }
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-vibrant), var(--teal-accent));
    border-radius: 999px;
    transition: width 0.5s ease;
}
.progress-label {
    font-size: 0.82rem; font-weight: 700; color: var(--purple-light);
    min-width: 38px; text-align: right;
}

/* Task stats row */
.task-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem; margin-bottom: 1.25rem;
    padding: 0.75rem; border-radius: 8px;
    background: var(--bg-input);
}
.task-stat { text-align: center; }
.task-stat-value {
    display: block; font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}
.task-stat-done   { color: var(--teal-accent); }
.task-stat-flagged { color: #f87171; }
.task-stat-pending { color: #fbbf24; }
.task-stat-label {
    font-size: 0.68rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* ── Global Time Summary ── */
.time-summary {
    display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.time-summary-card {
    display: flex; align-items: center; gap: 0.85rem;
    flex: 1; min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(16px);
    transition: transform var(--transition), box-shadow var(--transition);
}
.time-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.time-summary-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: rgba(124,58,237,0.15); color: var(--purple-light);
}
.time-summary-icon--done {
    background: rgba(45,212,191,0.15); color: var(--teal-accent);
}
.time-summary-label {
    display: block; font-size: 0.72rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.15rem;
}
.time-summary-value {
    display: block; font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
}
.time-summary-value--done { color: var(--teal-accent); }

/* ── Per-Video Time Row ── */
.task-time-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.55rem 0.75rem;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8rem; color: var(--text-secondary);
}
.task-time-item {
    display: flex; align-items: center; gap: 0.35rem;
}
.task-time-item svg { fill: var(--purple-light); flex-shrink: 0; }
.task-time-item strong { color: var(--text-primary); font-weight: 600; }
.task-time-item--done svg { fill: var(--teal-accent); }
.task-time-item--done strong { color: var(--teal-accent); }

/* Task action button */
.btn-task {
    width: 100%; justify-content: center;
    padding: 0.75rem; font-size: 0.9rem;
    margin-top: auto;
}

/* Completion badge */
.task-complete-badge {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.75rem;
    background: rgba(45,212,191,0.1);
    border: 1px solid rgba(45,212,191,0.25);
    border-radius: 8px;
    color: var(--teal-accent); font-size: 0.9rem; font-weight: 600;
    margin-top: auto;
}

/* ================================================
   Annotation Workroom  (annotate.html)
   ================================================ */

.workroom-layout {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.workroom-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 0; margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.workroom-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    text-decoration: none; transition: color var(--transition);
    flex-shrink: 0;
}
.workroom-back:hover { color: var(--purple-light); }
.workroom-back svg { fill: currentColor; }

.workroom-title-group { flex: 1; min-width: 0; }
.workroom-title {
    font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.workroom-video-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; color: var(--purple-light); text-decoration: none;
    margin-top: 0.15rem;
}
.workroom-video-link:hover { text-decoration: underline; }

.workroom-progress-compact {
    display: flex; align-items: center; gap: 0.6rem;
    flex-shrink: 0;
}
.progress-text-sm {
    font-size: 0.78rem; color: var(--text-muted); white-space: nowrap;
}
.workroom-progress-compact .progress-bar-bg { width: 100px; }

/* Segment metadata chips */
.segment-meta {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.meta-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.75rem; color: var(--text-secondary);
}
.meta-chip svg { fill: var(--purple-light); flex-shrink: 0; }
.meta-chip-accent {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.25);
    color: var(--purple-light);
}
.meta-chip-id {
    background: rgba(45,212,191,0.08);
    border-color: rgba(45,212,191,0.2);
    color: var(--teal-accent);
}

/* Audio player card */
.audio-player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.audio-label, .field-label {
    display: block; margin-bottom: 0.5rem;
    font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.audio-player {
    width: 100%; border-radius: 8px;
    filter: brightness(0.85);
}
.audio-controls-extra {
    display: flex; gap: 0.5rem; margin-top: 0.75rem;
}
.btn-audio {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer; transition: all var(--transition);
}
.btn-audio:hover { border-color: var(--purple-vibrant); color: var(--purple-light); }
.btn-audio svg { fill: currentColor; }

/* Whisper text display */
.whisper-text-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.whisper-text {
    font-size: 1rem; line-height: 1.8;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 1rem; border-radius: 8px;
    white-space: pre-wrap; word-wrap: break-word;
}

/* Corrected text textarea */
.annotation-form { margin-bottom: 2rem; }
.corrected-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem; line-height: 1.8;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: border-color var(--transition);
    margin-bottom: 1rem;
}
.corrected-textarea:focus {
    outline: none;
    border-color: var(--purple-vibrant);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.corrected-textarea::placeholder { color: var(--text-muted); }

/* Form action buttons */
.form-actions {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.btn-save {
    flex: 1; justify-content: center;
    padding: 0.85rem; font-size: 0.95rem;
}
.btn-skip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 8px;
    color: #f87171;
    font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-skip:hover {
    background: rgba(248,113,113,0.15);
    border-color: rgba(248,113,113,0.4);
}
.btn-skip svg { fill: currentColor; }

/* Go Back button (outline style) */
.btn-go-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-go-back:hover:not(:disabled) {
    background: rgba(124,58,237,0.08);
    border-color: var(--purple-vibrant);
    color: var(--purple-light);
}
.btn-go-back:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.btn-go-back svg { fill: currentColor; }

/* All-done state */
.workroom-done {
    text-align: center;
    padding: 4rem 1rem;
}
.done-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; border-radius: 50%;
    background: rgba(45,212,191,0.12); color: var(--teal-accent);
    margin-bottom: 1.5rem;
    animation: breathe 4s ease-in-out infinite;
}
.workroom-done h2 {
    font-size: 1.5rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.workroom-done p {
    font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem;
}
.done-stats {
    display: flex; gap: 1.5rem; justify-content: center;
}
.done-stat {
    font-size: 0.9rem; color: var(--teal-accent);
}
.done-stat-flagged { color: #f87171; }

/* Keyboard shortcuts bar */
.shortcuts-bar {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-top: 0.5rem;
}
.shortcut-item {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; color: var(--text-muted);
}
kbd {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 4px;
    font-size: 0.72rem; font-family: 'Inter', monospace;
    color: var(--purple-light); font-weight: 600;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 480px) {
    .auth-card, .pending-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    .auth-header h1, .pending-title { font-size: 1.4rem; }
    .auth-icon { width: 64px; height: 64px; }
    .auth-icon svg { width: 36px; height: 36px; }
    .pending-icon { width: 72px; height: 72px; }
    .pending-icon svg { width: 48px; height: 48px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1.25rem; padding-top: 4rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .upload-form { flex-direction: column; align-items: stretch; }
    .action-buttons { flex-direction: column; gap: 0.35rem; }
    .task-grid { grid-template-columns: 1fr; }
    .time-summary { flex-direction: column; }
    .task-time-row { flex-wrap: wrap; gap: 0.5rem; }
    .workroom-layout { padding: 0.75rem 1rem 2rem; }
    .workroom-header { gap: 0.5rem; }
    .workroom-progress-compact .progress-bar-bg { width: 70px; }
    .form-actions { flex-direction: column; }
    .btn-save, .btn-skip, .btn-go-back { width: 100%; justify-content: center; }
}

/* ================================================
   Pagination System
   ================================================ */
.pagination-row {
    display: flex; justify-content: center; margin-top: 1.5rem; width: 100%; padding-bottom: 1rem;
}
.pagination {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.page-link {
    display: flex; align-items: center; justify-content: center;
    padding: 0.45rem 1rem;
    background: rgba(124,58,237,0.1);
    color: var(--purple-light);
    border: 1px solid transparent;
    border-radius: 8px; font-size: 0.88rem; font-weight: 600;
    text-decoration: none; transition: all var(--transition);
}
.page-link:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--purple-vibrant), var(--purple-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.page-link.disabled {
    opacity: 0.4; cursor: not-allowed;
    background: rgba(255,255,255,0.03); color: var(--text-muted);
}
.page-info {
    font-size: 0.85rem; color: var(--text-secondary);
    padding: 0 0.5rem; font-weight: 500; letter-spacing: 0.02em;
}
