@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Cyber Obsidian & Neon Glow */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 18, 29, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.2);
    
    --primary: #8b5cf6; /* Violet */
    --primary-hover: #7c3aed;
    --secondary: #ec4899; /* Pink */
    --accent: #06b6d4; /* Cyan */
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Animated Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, #17112d 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, #0c1a2d 0%, transparent 40%);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: 15%;
    left: 10%;
    width: 350px;
    height: 350px;
    background: var(--primary);
}

.orb-2 {
    bottom: 15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    animation-delay: -5s;
}

.orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: var(--accent);
    opacity: 0.08;
    animation: float 15s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

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

a:hover {
    color: var(--secondary);
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 125%;
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px 0 rgba(139, 92, 246, 0.15);
}

/* Main Container Layouts */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 50%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 36px;
}

/* Premium Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

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

/* Password Toggle Button */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

/* Auth Footer */
.auth-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.auth-footer a:hover {
    color: var(--secondary);
}

/* Success Alert */
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

/* Form Row (side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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




/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 280px;
    background: rgba(18, 18, 29, 0.85);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    background: rgba(139, 92, 246, 0.1);
    color: white;
}

.nav-link.active {
    border-left: 3px solid var(--primary);
}

.user-profile-menu {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-logout:hover {
    background: var(--error);
    color: white;
}

/* Dashboard Content Area */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.greeting-title {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.greeting-subtitle {
    color: var(--text-muted);
}

/* Dashboard Grid & Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.dashboard-card {
    padding: 32px;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Alert Boxes */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

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

/* Responsive adjust */
@media (max-width: 900px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    
    .sidebar-brand {
        margin-bottom: 20px;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 16px;
    }
    
    .user-profile-menu {
        border-top: none;
        border-bottom: 1px solid var(--border-color);
        padding-top: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    
    .main-content {
        padding: 24px;
    }
}

/* Form Elements for Local Sandbox Sign-in */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* ==========================================================================
   Notes Upload System Styles
   ========================================================================== */

/* File Upload Input */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.file-label svg {
    color: var(--primary);
}

/* Notes Grid */
.notes-section {
    margin-top: 32px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.note-card {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.note-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.note-details {
    flex: 1;
}

.note-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    word-break: break-word;
}

.note-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.note-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Action Buttons Overlay */
.note-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.download-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #d8b4fe;
    border-color: rgba(139, 92, 246, 0.3);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Admin User Management Styles
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.admin-table th {
    padding: 16px 24px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

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

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-admin {
    background: rgba(139, 92, 246, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-student {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Stunotes Theme System: Light Mode & Adaptive Variables
   ========================================================================== */
body.light-mode {
    --bg-dark: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(139, 92, 246, 0.3);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    background: radial-gradient(circle at 0% 0%, #e5e7eb 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, #f3f4f6 0%, transparent 40%);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .note-title,
body.light-mode .card-title,
body.light-mode .greeting-title,
body.light-mode .sidebar-brand .brand-text,
body.light-mode .user-name {
    color: #111827 !important;
}

body.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-link {
    color: #4b5563;
}

body.light-mode .nav-link.active,
body.light-mode .nav-link:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

body.light-mode .note-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

body.light-mode .form-input {
    background: rgba(0, 0, 0, 0.02);
    color: #1f2937;
}

body.light-mode .form-input:focus {
    background: white;
}

body.light-mode .quiz-option {
    background: rgba(0, 0, 0, 0.02);
    color: #1f2937;
}

body.light-mode .quiz-option:hover {
    background: rgba(139, 92, 246, 0.05);
}

/* ==========================================================================
   Hamburger Settings Drawer & Modal System
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.settings-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ==========================================================================
   Profile Completion Progress Bar
   ========================================================================== */
.profile-progress-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-bar-glow {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: width 0.5s ease-in-out;
}

/* ==========================================================================
   Local PDF Optimizer UI & Progress Overlay
   ========================================================================== */
.optimizer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.optimizer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.optimizer-card {
    width: 440px;
    max-width: 90%;
    padding: 36px;
    background: rgba(18, 18, 29, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    text-align: center;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.optimizer-anim {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: pulseGlow 2s infinite ease-in-out;
}

.optimizer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

/* ==========================================================================
   Practice Question Quiz Engine UI
   ========================================================================== */
.quiz-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.quiz-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.quiz-option-btn {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-option-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--primary);
    transform: translateX(4px);
}

.quiz-option-btn.selected-correct {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--success) !important;
    color: #a7f3d0 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.quiz-option-btn.selected-incorrect {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--error) !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.quiz-option-btn.show-correct-unselected {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--success);
    opacity: 0.8;
}

.quiz-explanation {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    animation: fadeIn 0.4s ease-out;
}

.opt-badge {
    background: rgba(255, 255, 255, 0.05);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* ==========================================================================
   Premium Testimonial Sections & Keyframe Animations
   ========================================================================== */
.testimonials-section {
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.testimonial-card {
    padding: 24px;
    background: rgba(18, 18, 29, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.author-details {
    display: flex;
    flex-direction: column;
}

/* Modal form style overrides */
.form-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Keyframes Definitions */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(139, 92, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

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

