/* ==========================================================================
   AURA OMR ENGINE v1.0 - Core CSS Stylesheet
   Design Philosophy: Ultra-Modern Premium Dark Glassmorphism & Neon Accents
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-darker: #0b0d19;
    --bg-dark: #121526;
    --bg-card: rgba(22, 27, 49, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Neon Accent Colors */
    --accent-violet: #8b5cf6;
    --accent-violet-glow: rgba(139, 92, 246, 0.35);
    --accent-blue: #06b6d4;
    --accent-blue-glow: rgba(6, 182, 212, 0.35);
    --accent-pink: #ec4899;
    --accent-pink-glow: rgba(236, 72, 153, 0.35);
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.15);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.15);
    --color-danger: #ef4444;
    --color-danger-bg: rgba(239, 68, 68, 0.15);
    
    /* Fonts & Radii */
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Animation Easing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(11, 13, 25, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-violet);
}

/* Ambient Glowing Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
    transition: all 1.5s var(--ease-smooth);
}

.blob-violet {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-violet) 0%, rgba(139,92,246,0) 70%);
    top: -15vw;
    left: -10vw;
    animation: drift 25s infinite alternate var(--ease-smooth);
}

.blob-blue {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, rgba(6,182,212,0) 70%);
    bottom: -10vw;
    right: -5vw;
    animation: drift 20s infinite alternate-reverse var(--ease-smooth);
}

.blob-pink {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-pink) 0%, rgba(236,72,153,0) 70%);
    top: 30%;
    left: 45%;
    animation: drift 22s infinite alternate var(--ease-smooth);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4vw, 5vh) scale(1.15); }
}

/* Container & Layout */
.app-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

/* Header Styles */
.app-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--accent-violet-glow);
}

.logo-icon i {
    font-size: 1.25rem;
    color: white;
}

.logo-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, #99a2c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a855f7 70%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 900px;
    font-weight: 400;
}

/* Workspace Grid Layout */
.workspace-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* General Panel Styling */
.panel {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.panel-step {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--accent-violet-glow);
}

.panel-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Upload Panel Styles */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.drop-zone {
    width: 100%;
    height: 250px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s var(--ease-smooth);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.04);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.1);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
}

.upload-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s var(--ease-smooth);
}

.drop-zone:hover .upload-icon-wrapper {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.1);
}

.upload-icon {
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease-smooth);
}

.drop-zone:hover .upload-icon {
    color: var(--accent-violet);
}

.drop-zone-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.drop-zone-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.browse-link {
    color: var(--accent-violet);
    font-weight: 600;
    text-decoration: underline;
}

.file-specs {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* File Preview Container inside Dropzone */
.file-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
}

.file-preview-container img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0 0.25rem;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.file-size {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.btn-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    z-index: 15;
}

.btn-remove:hover {
    background: var(--color-danger);
    color: white;
    transform: scale(1.1);
}

/* Config Settings Form Controls */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip {
    cursor: help;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s;
}

.tooltip:hover {
    color: var(--accent-violet);
}

.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    outline: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s var(--ease-smooth);
}

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

.form-select:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 15px var(--accent-violet-glow);
    background: rgba(255, 255, 255, 0.05);
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-secondary);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Premium Button Styling */
.btn {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent-violet);
}

.btn-icon {
    font-size: 0.95rem;
}

.btn-loader {
    animation: rotate 1s linear infinite;
}

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

/* Welcome Panel (Empty State) */
.results-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    height: 100%;
    min-height: 500px;
}

.welcome-graphics {
    margin-bottom: 2.5rem;
    position: relative;
}

.scanning-laser-box {
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-violet), var(--accent-blue), transparent);
    top: 0;
    left: 0;
    box-shadow: 0 0 15px var(--accent-violet), 0 0 30px var(--accent-blue);
    animation: scanVertical 3.5s infinite linear;
}

@keyframes scanVertical {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.omr-mock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mock-bubble {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.3s;
}

.mock-bubble.filled {
    background-color: var(--accent-violet);
    border-color: var(--accent-violet);
    box-shadow: 0 0 12px var(--accent-violet-glow);
}

.results-welcome h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.results-welcome p {
    color: var(--text-secondary);
    max-width: 480px;
    font-size: 0.95rem;
}

/* Loading Processing State */
.results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    min-height: 500px;
}

.scanner-animation {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.scan-brackets {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.08);
}

.scan-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: pulseGlow 2s infinite ease-in-out;
}

.scan-bar {
    position: absolute;
    width: 90px;
    height: 2px;
    background: var(--accent-violet);
    box-shadow: 0 0 10px var(--accent-violet), 0 0 20px var(--accent-violet);
    animation: scanOscillate 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes scanOscillate {
    0% { transform: translateY(-40px); }
    50% { transform: translateY(40px); }
    100% { transform: translateY(-40px); }
}

.results-loading h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.results-loading p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 450px;
}

.progress-bar-container {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-blue));
    box-shadow: 0 0 10px var(--accent-violet-glow);
    animation: fillProgress 12s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes fillProgress {
    0% { width: 0%; }
    30% { width: 45%; }
    70% { width: 85%; }
    100% { width: 98%; }
}

/* Error State */
.results-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    min-height: 500px;
}

.error-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.75rem;
}

.results-error h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.results-error p {
    color: var(--text-secondary);
    max-width: 480px;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.results-error .btn {
    max-width: 180px;
}

/* Results Content Container */
.results-active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.6s var(--ease-smooth) forwards;
}

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

/* Metrics Cards Row */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--accent-violet);
    border-radius: var(--radius-md);
}

.metric-card.color-success { border-left-color: var(--color-success); }
.metric-card.color-warning { border-left-color: var(--color-warning); }
.metric-card.color-danger { border-left-color: var(--color-danger); }

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1.2;
}

/* Results Section Split Layout */
.results-split-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

@media (max-width: 1000px) {
    .results-split-layout {
        grid-template-columns: 1fr;
    }
}

/* Image Viewer Column */
.image-viewer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.viewer-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-sm);
    width: fit-content;
    border: 1px solid var(--border-color);
}

.viewer-tab {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
}

.viewer-tab:hover {
    color: var(--text-primary);
}

.viewer-tab.active {
    background: var(--accent-violet);
    color: white;
    box-shadow: 0 2px 10px var(--accent-violet-glow);
}

.viewer-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.btn-download {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s var(--ease-smooth);
}

.btn-download:hover {
    background: var(--accent-violet);
    color: white;
    border-color: var(--accent-violet);
    box-shadow: 0 2px 10px var(--accent-violet-glow);
}

.image-display-frame {
    width: 100%;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    background: #000;
}

.omr-display-img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.4s var(--ease-smooth);
}

.omr-display-img:hover {
    transform: scale(1.015);
}

.image-zoom-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Answers Table Column */
.answers-table-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
}

.answers-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answers-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.table-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.filter-btn {
    padding: 4px 10px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.table-scroll-container {
    height: 480px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

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

.answers-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.answers-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.answers-table tbody tr {
    transition: background-color 0.2s;
}

.answers-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

/* Question Number Badge */
.q-badge {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-muted);
}

/* Option Pill Grid */
.option-pill-group {
    display: flex;
    gap: 0.4rem;
}

.option-pill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.option-pill.selected {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: white;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.option-pill.selected-error {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: white;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge.status-marked {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-badge.status-blank {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.status-badge.status-multiple {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 20, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    z-index: 110;
}

.lightbox-close:hover {
    background: var(--accent-violet);
    transform: scale(1.05);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 105;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.2);
}

.lightbox-caption {
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Footer Styling */
.app-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Utility Hidden state */
.hidden {
    display: none !important;
}
