/* ========================================
   PYQ Management System - Premium Styles
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables (Dark Mode — Neumorphic) ===== */
:root {
    --primary: #7C6EFF;
    --primary-dark: #5A52D5;
    --primary-light: #9D95FF;
    --secondary: #00D2FF;
    --accent: #FF6584;
    --success: #00C48C;
    --warning: #FFB800;
    --danger: #FF4757;
    --bg-dark: #1A1A2E;
    --bg-card: #1A1A2E;
    --bg-card-hover: #1E1E35;
    --bg-glass: #1A1A2E;
    --text-primary: #E8E6FF;
    --text-secondary: #9A98B5;
    --text-muted: #6A6880;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.10);
    --shadow: 8px 8px 16px #0f0f1f, -8px -8px 16px #252540;
    --shadow-lg: 12px 12px 24px #0d0d1c, -12px -12px 24px #272744;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    --bg-navbar: #1A1A2E;
    --bg-modal: #1A1A2E;
    --bg-checkbox: #1A1A2E;
    --bg-checkbox-hover: #1E1E38;
    --bg-checkbox-checked: #22223A;
    --bg-ticket-body: #141426;
    --bg-ann-gradient-start: #1A1A2E;
    --bg-ann-gradient-end: #1A1A2E;
}


/* ===== Light Theme: Monochromatic Soft UI (Light Neumorphism) ===== */
html[data-theme="light"] {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --bg-dark: #EBF1F6;
    --bg-card: #EBF1F6;
    --bg-glass: #EBF1F6;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border: rgba(226, 232, 240, 0.4);
    --border-light: rgba(241, 245, 249, 0.6);
    --shadow: 8px 8px 16px #c9cfd6, -8px -8px 16px #ffffff;
    --shadow-lg: 12px 12px 24px #c2c8cf, -12px -12px 24px #ffffff;
    --bg-navbar: #EBF1F6;
    --bg-modal: #EBF1F6;
    --bg-checkbox: #EBF1F6;
    --bg-checkbox-hover: #E1E8EE;
    --bg-checkbox-checked: #D8E2EC;
    --bg-ticket-body: #E2EAF0;
    --bg-ann-gradient-start: #EBF1F6;
    --bg-ann-gradient-end: #EBF1F6;
}

/* ── Dark: Neumorphic body background (no gradient overlay) ── */
body::before {
    background: #1A1A2E;
}

/* ── Dark Mode Neumorphic Cards ── */
.card,
.glass,
.glass-strong {
    background: #1A1A2E;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 8px 8px 16px #0f0f1f, -8px -8px 16px #252540;
    border-radius: 20px;
}

.card:hover {
    background: #1A1A2E;
    box-shadow: 12px 12px 24px #0d0d1c, -12px -12px 24px #272744;
    transform: translateY(-2px);
}

/* ── Dark Mode Neumorphic Navbar ── */
.navbar {
    background: #1A1A2E;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 4px 10px #0f0f1f, -4px -4px 10px #252540;
}

/* ── Dark Mode Neumorphic Filter Panel ── */
.filter-panel {
    background: #1A1A2E;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 4px 4px 8px #0f0f1f, inset -4px -4px 8px #252540;
    border-radius: 20px;
    padding: 20px;
}

.filter-panel .filter-group select,
.filter-panel .filter-group input {
    background: #1A1A2E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 4px 8px #0f0f1f, -4px -4px 8px #252540;
    border-radius: 10px;
    color: #E8E6FF;
    transition: var(--transition);
}

.filter-panel .filter-group select:hover,
.filter-panel .filter-group input:hover {
    box-shadow: 6px 6px 12px #0d0d1c, -6px -6px 12px #272744;
}

.filter-panel .filter-group select:focus,
.filter-panel .filter-group input:focus {
    box-shadow: inset 3px 3px 6px #0f0f1f, inset -3px -3px 6px #252540;
    border-color: rgba(124, 110, 255, 0.5);
}

/* ── Dark Mode Neumorphic Tab Nav ── */
.tab-nav {
    background: #1A1A2E;
    border: none;
    box-shadow: inset 4px 4px 8px #0f0f1f, inset -4px -4px 8px #252540;
    padding: 6px;
    border-radius: 14px;
}

.tab-btn {
    background: transparent;
    color: #9A98B5;
    border: none;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #1A1A2E;
    box-shadow: 4px 4px 8px #0f0f1f, -4px -4px 8px #252540;
    color: var(--primary-light);
    border-radius: 10px;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: var(--primary-light);
}

/* ── Dark Mode Neumorphic Inputs ── */
.form-control {
    background: #1A1A2E;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #E8E6FF;
    box-shadow: inset 4px 4px 8px #0f0f1f, inset -4px -4px 8px #252540;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #1A1A2E;
    border-color: rgba(124, 110, 255, 0.5);
    box-shadow: inset 2px 2px 5px #0f0f1f, inset -2px -2px 5px #252540, 0 0 0 3px rgba(124, 110, 255, 0.15);
}

.form-control::placeholder {
    color: #6A6880;
}

/* ── Light Mode body background ── */
html[data-theme="light"] body::before {
    background: #EBF1F6;
}

/* ── Neumorphic Cards (Extruded Soft Shadows) ── */
html[data-theme="light"] .card,
html[data-theme="light"] .glass,
html[data-theme="light"] .glass-strong {
    background: #EBF1F6;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 8px 8px 16px #c9cfd6, -8px -8px 16px #ffffff;
    border-radius: 20px;
}

html[data-theme="light"] .glass-strong {
    background: #EBF1F6;
}

html[data-theme="light"] .card:hover {
    background: #EBF1F6;
    box-shadow: 12px 12px 24px #c2c8cf, -12px -12px 24px #ffffff;
    transform: translateY(-2px);
}

/* ── Neumorphic Navbar ── */
html[data-theme="light"] .navbar {
    background: #EBF1F6;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 4px 4px 10px #c9cfd6, -4px -4px 10px #ffffff;
}

/* ── Neumorphic Filter Panel & Dropdowns ── */
html[data-theme="light"] .filter-panel {
    background: #EBF1F6;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 4px 4px 8px #c9cfd6, inset -4px -4px 8px #ffffff;
    border-radius: 20px;
    padding: 20px;
}

html[data-theme="light"] .filter-panel .filter-group select,
html[data-theme="light"] .filter-panel .filter-group input {
    background: #EBF1F6;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 4px 4px 8px #c9cfd6, -4px -4px 8px #ffffff;
    border-radius: 10px;
    color: #1E293B;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    transition: var(--transition);
}

html[data-theme="light"] .filter-panel .filter-group select:hover,
html[data-theme="light"] .filter-panel .filter-group input:hover {
    box-shadow: 6px 6px 12px #c2c8cf, -6px -6px 12px #ffffff;
}

html[data-theme="light"] .filter-panel .filter-group select:focus,
html[data-theme="light"] .filter-panel .filter-group input:focus {
    box-shadow: inset 3px 3px 6px #c9cfd6, inset -3px -3px 6px #ffffff;
    border-color: rgba(79, 70, 229, 0.4);
}

html[data-theme="light"] .filter-panel .filter-group select option {
    background: #EBF1F6;
    color: #1E293B;
}

/* ── Neumorphic Tab Nav (Sunken Base, Extruded Active Tab) ── */
html[data-theme="light"] .tab-nav {
    background: #EBF1F6;
    border: none;
    box-shadow: inset 4px 4px 8px #c9cfd6, inset -4px -4px 8px #ffffff;
    padding: 6px;
    border-radius: 12px;
}

html[data-theme="light"] .tab-btn {
    background: transparent;
    color: #475569;
    border: none;
    transition: all 0.2s ease;
}

html[data-theme="light"] .tab-btn.active {
    background: #EBF1F6;
    box-shadow: 4px 4px 8px #c9cfd6, -4px -4px 8px #ffffff;
    color: var(--primary);
    border-radius: 8px;
}

html[data-theme="light"] .tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary);
}

/* ── Neumorphic Inputs (Sunken Inset Shadows) ── */
html[data-theme="light"] .form-control {
    background: #EBF1F6;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #1E293B;
    box-shadow: inset 4px 4px 8px #c9cfd6, inset -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
}

html[data-theme="light"] .form-control:focus {
    background: #EBF1F6;
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: inset 2px 2px 5px #c9cfd6, inset -2px -2px 5px #ffffff, 0 0 0 3px rgba(79, 70, 229, 0.15);
}

html[data-theme="light"] .form-control::placeholder {
    color: #94A3B8;
}

/* ── Neumorphic Buttons (Extruded, Sunken on Active/Click) ── */
html[data-theme="light"] .btn {
    background: #EBF1F6;
    color: #475569;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 4px 4px 8px #c9cfd6, -4px -4px 8px #ffffff;
}

html[data-theme="light"] .btn-primary {
    background: #EBF1F6;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 4px 4px 8px #c9cfd6, -4px -4px 8px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .btn-primary:hover {
    box-shadow: 6px 6px 12px #c2c8cf, -6px -6px 12px #ffffff;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

html[data-theme="light"] .btn-primary:active {
    box-shadow: inset 3px 3px 6px #c9cfd6, inset -3px -3px 6px #ffffff;
    transform: translateY(0);
}

html[data-theme="light"] .btn-secondary {
    background: #EBF1F6;
    color: #475569;
    box-shadow: 4px 4px 8px #c9cfd6, -4px -4px 8px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .btn-secondary:hover {
    box-shadow: 6px 6px 12px #c2c8cf, -6px -6px 12px #ffffff;
    background: #EBF1F6;
}

html[data-theme="light"] .btn-secondary:active {
    box-shadow: inset 3px 3px 6px #c9cfd6, inset -3px -3px 6px #ffffff;
}

/* ── Light: Tables ── */
html[data-theme="light"] .table-wrapper {
    background: #EBF1F6;
    box-shadow: inset 4px 4px 8px #c9cfd6, inset -4px -4px 8px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .data-table th {
    background: #E2EAF0;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .data-table td {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

html[data-theme="light"] .data-table tr:hover td {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Light: Hero orbs (subtle neumorphic glow) ── */
html[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
}

html[data-theme="light"] .hero::after {
    background: radial-gradient(circle, rgba(201, 207, 214, 0.4) 0%, transparent 70%);
}

/* ── Light: Modal ── */
html[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(8px);
}

html[data-theme="light"] .modal-content {
    background: #EBF1F6;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 12px 12px 24px #c2c8cf, -12px -12px 24px #ffffff;
}

html[data-theme="light"] .modal-close {
    background: #EBF1F6;
    box-shadow: 3px 3px 6px #c9cfd6, -3px -3px 6px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .modal-close:hover {
    box-shadow: inset 2px 2px 4px #c9cfd6, inset -2px -2px 4px #ffffff;
}

/* ── Light: Toasts ── */
html[data-theme="light"] .toast {
    background: #EBF1F6;
    box-shadow: 6px 6px 12px #c9cfd6, -6px -6px 12px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .toast-success {
    border-left: 4px solid var(--success);
    color: #065F46;
}

html[data-theme="light"] .toast-error {
    border-left: 4px solid var(--danger);
    color: #991B1B;
}

/* ── Light: Announcement box ── */
html[data-theme="light"] .ann-box {
    background: #EBF1F6;
    box-shadow: 8px 8px 16px #c9cfd6, -8px -8px 16px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .ann-box-header {
    background: #E2EAF0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .ann-item {
    border-bottom-color: rgba(226, 232, 240, 0.6);
}

html[data-theme="light"] .ann-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Light: Icon buttons ── */
html[data-theme="light"] .icon-btn-view {
    background: #EBF1F6;
    box-shadow: 3px 3px 6px #c9cfd6, -3px -3px 6px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #4F46E5;
}

html[data-theme="light"] .icon-btn-view:hover {
    box-shadow: inset 2px 2px 4px #c9cfd6, inset -2px -2px 4px #ffffff;
}

html[data-theme="light"] .icon-btn-download {
    background: #EBF1F6;
    box-shadow: 3px 3px 6px #c9cfd6, -3px -3px 6px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #059669;
}

html[data-theme="light"] .icon-btn-download:hover {
    box-shadow: inset 2px 2px 4px #c9cfd6, inset -2px -2px 4px #ffffff;
}

/* ── Light: Theme toggle ── */
html[data-theme="light"] .theme-toggle-btn:hover {
    background: #E1E8EE;
    box-shadow: inset 2px 2px 4px #c9cfd6, inset -2px -2px 4px #ffffff;
}

/* ── Light: File upload ── */
html[data-theme="light"] .file-upload {
    background: #EBF1F6;
    box-shadow: inset 4px 4px 8px #c9cfd6, inset -4px -4px 8px #ffffff;
    border: 2px dashed rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .file-upload:hover {
    border-color: var(--primary);
}

/* ===== Theme Toggle Button ===== */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: auto;
    margin-right: 10px;
    z-index: 1002;
}

.theme-toggle-btn:hover {
    background: var(--bg-card);
    color: var(--primary-light);
    transform: rotate(15deg);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 210, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(255, 101, 132, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img { max-width: 100%; height: auto; }

/* ===== Utilities ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-up { animation: fadeInUp 0.6s ease forwards; }
.animate-up-delay { animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0; }
.animate-up-delay-2 { animation: fadeInUp 0.6s ease 0.4s forwards; opacity: 0; }
.animate-up-delay-3 { animation: fadeInUp 0.6s ease 0.6s forwards; opacity: 0; }
.animate-fade { animation: fadeIn 0.8s ease forwards; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: var(--bg-navbar, rgba(15, 14, 23, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-links a.active {
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(108, 99, 255, 0.15);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00A87A);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 196, 140, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 196, 140, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #E63E4D);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #E6587A);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 101, 132, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #E6A600);
    color: #1a1a2e;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-xs);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    /* shadows applied by dark/light mode blocks above */
}

.form-control:focus {
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A7A9BE' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

select.form-control option {
    background: var(--bg-modal);
    color: var(--text-primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== Cards ===== */
.card {
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    /* background, shadow applied by dark/light mode blocks above */
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* ===== Features Section ===== */
.features {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 50px;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 210, 255, 0.2));
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Page Layout ===== */
.page-wrapper {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page-header {
    padding: 40px 0 30px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Auth Forms ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 40px 35px;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .auth-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-light);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-link {
    display: inline-block;
    color: var(--primary-light);
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 15px;
    cursor: pointer;
}

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

/* ===== Toast / Flash Messages ===== */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideInRight 0.4s ease;
    max-width: 400px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast-success {
    background: rgba(0, 196, 140, 0.2);
    border: 1px solid rgba(0, 196, 140, 0.4);
    color: var(--success);
}

.toast-error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: var(--danger);
}

/* ===== Dashboard Layout ===== */
.dashboard {
    padding: 30px 0 60px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.dashboard-header .welcome-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* ===== Tab System ===== */
.tab-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    padding: 5px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ===== Tables ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
}

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

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.03);
}

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

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

/* ===== Search & Filter ===== */
.search-section {
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-bar .form-control {
    flex: 1;
}

.filter-panel {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.filter-panel .filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-panel .filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-panel .filter-group select,
.filter-panel .filter-group input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.filter-panel .filter-group select:focus,
.filter-panel .filter-group input:focus {
    border-color: var(--primary);
}

.filter-panel .filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A7A9BE' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.filter-panel .filter-group select option {
    background: var(--bg-modal, #1a1a2e);
    color: var(--text-primary);
}

/* ===== Paper Cards ===== */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.paper-card {
    padding: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
}

.paper-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.paper-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-year {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.badge-type {
    background: rgba(0, 210, 255, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-branch {
    background: rgba(255, 101, 132, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 101, 132, 0.3);
}

.badge-hashtag {
    background: rgba(255, 184, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.paper-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.paper-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.paper-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.paper-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

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

/* ===== Profile ===== */
.profile-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.profile-info {
    margin-bottom: 30px;
}

.profile-info .info-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.profile-info .info-row:last-child {
    border-bottom: none;
}

.profile-info .info-label {
    min-width: 120px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info .info-value {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== Problem / Report Cards ===== */
.problem-card {
    margin-bottom: 20px;
    padding: 25px;
}

.problem-card .problem-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    gap: 10px;
}

.problem-card .problem-student {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.problem-card .problem-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.problem-card .problem-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.problem-card .problem-image {
    max-width: 300px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.problem-card .reply-box {
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-top: 12px;
}

.problem-card .reply-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem-card .reply-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

/* ===== Stats Row ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 15px 0 5px;
        border-top: 1px solid var(--border);
        margin-top: 15px;
        gap: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 16px;
        display: block;
        border-radius: var(--radius-xs);
        color: var(--text-secondary);
    }

    .nav-links a:hover {
        background: rgba(108, 99, 255, 0.12);
        color: var(--text-primary);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

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

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .filter-panel .filter-group {
        min-width: 100%;
    }

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

    .tab-nav {
        flex-wrap: nowrap;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .profile-card {
        padding: 25px;
    }

    .profile-info .info-row {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 15px 40px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .card {
        padding: 20px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .paper-card {
        padding: 18px;
    }
}

/* ===== Upload Form ===== */
.upload-form {
    max-width: 700px;
}

.file-upload {
    position: relative;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.file-upload .upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-upload .upload-text strong {
    color: var(--primary-light);
}

.file-name-display {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

/* ===== Branch Multi-Select Checkboxes ===== */
.branch-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    background: #1A1A2E;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    box-shadow: inset 4px 4px 8px #0f0f1f, inset -4px -4px 8px #252540;
}

html[data-theme="light"] .branch-checkboxes {
    background: #EBF1F6;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 4px 4px 8px #c9cfd6, inset -4px -4px 8px #ffffff;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1A1A2E;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    user-select: none;
    box-shadow: 4px 4px 8px #0f0f1f, -4px -4px 8px #252540;
}

html[data-theme="light"] .checkbox-item {
    background: #EBF1F6;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 4px 4px 8px #c9cfd6, -4px -4px 8px #ffffff;
}

.checkbox-item:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

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

.checkbox-item:has(input:checked) {
    background: #1A1A2E;
    box-shadow: inset 2px 2px 5px #0f0f1f, inset -2px -2px 5px #252540;
    border-color: var(--primary);
    color: var(--primary-light);
}

html[data-theme="light"] .checkbox-item:has(input:checked) {
    background: #EBF1F6;
    box-shadow: inset 2px 2px 5px #c9cfd6, inset -2px -2px 5px #ffffff;
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Form Row (2-col) ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-modal, #1a1a2e);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease;
}

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

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--danger);
}

/* ===== Loading spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 30px auto;
}

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

/* ===== Download/View icon buttons ===== */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.icon-btn-view {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.icon-btn-view:hover {
    background: rgba(108, 99, 255, 0.3);
}

.icon-btn-download {
    background: rgba(0, 196, 140, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 196, 140, 0.3);
}

.icon-btn-download:hover {
    background: rgba(0, 196, 140, 0.3);
}

.icon-btn-delete {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.icon-btn-delete:hover {
    background: rgba(255, 71, 87, 0.3);
}

.icon-btn-edit {
    background: rgba(255, 184, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

.icon-btn-edit:hover {
    background: rgba(255, 184, 0, 0.3);
}
