/* ============================================================================
   ASVAB Practice System - Main Stylesheet
   Design: Clean, readable, professional - optimized for studying
   ============================================================================ */

/* CSS Custom Properties - LIGHTER THEME */
:root {
    /* Primary Colors - Professional blue palette */
    --color-primary: #1e3a5f;
    /* Deep blue */
    --color-secondary: #2563eb;
    /* Bright blue */
    --color-accent: #3b82f6;
    /* Sky blue */
    --color-highlight: #06b6d4;
    /* Cyan */

    /* Semantic Colors */
    --color-success: #22c55e;
    /* Green */
    --color-warning: #f59e0b;
    /* Amber */
    --color-danger: #ef4444;
    /* Red */
    --color-info: #3b82f6;
    /* Blue */

    /* Neutral Colors - LIGHTER */
    --color-bg: #f8fafc;
    /* Light gray background */
    --color-bg-elevated: #ffffff;
    /* White cards */
    --color-bg-hover: #f1f5f9;
    /* Hover state */
    --color-border: #e2e8f0;
    /* Light border */
    --color-text: #1e293b;
    /* Dark text */
    --color-text-muted: #64748b;
    /* Gray text */
    --color-text-dim: #94a3b8;
    /* Light gray text */

    /* Dark mode option for exam */
    --color-exam-bg: #0f172a;
    --color-exam-card: #1e293b;
    --color-exam-text: #f1f5f9;

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --font-sans: 'Inter', 'SF Pro Display', system-ui, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle background pattern */
body.home-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================================================
   Typography
   ============================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    text-decoration: underline;
}

/* ============================================================================
   Container & Layout
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* ============================================================================
   Header
   ============================================================================ */

.main-header {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-2xl);
    background: var(--color-bg-elevated);
}

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

.logo-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-icon {
    color: var(--color-secondary);
    font-size: 2.5rem;
}

.logo-text {
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.stats-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================================================
   Home Page - Intro Section
   ============================================================================ */

.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

.intro-section h1 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.intro-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.info-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: left;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.info-card h3 {
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================================================
   Mode Selection
   ============================================================================ */

.mode-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.mode-card {
    position: relative;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.mode-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), var(--shadow-lg);
}

.mode-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.mode-card.selected {
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.mode-card h3 {
    margin-bottom: var(--spacing-sm);
}

.mode-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.mode-features {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.mode-features li {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    list-style: none;
}

.mode-features li::before {
    content: '✓ ';
    color: var(--color-success);
}

/* Vocabulary Card Special Styling */
.mode-card.vocabulary-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: var(--color-border);
}

.mode-card.vocabulary-card:hover {
    border-color: var(--color-highlight);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

.mode-card.vocabulary-card.selected {
    border-color: var(--color-highlight);
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.18);
}

.mode-card.vocabulary-card .mode-icon {
    color: var(--color-highlight);
}

/* ============================================================================
   Config Section (Exam Setup Form)
   ============================================================================ */

.config-section {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
}

.config-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.exam-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-group>label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

/* Category Checkboxes */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.category-checkbox:hover {
    border-color: var(--color-secondary);
    background: var(--color-bg-hover);
}

.category-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
    background: white;
}

.category-checkbox input:checked+.checkbox-mark {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.category-checkbox input:checked+.checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

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

.category-code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-secondary);
}

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

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

/* Input with Buttons */
.input-with-buttons {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-with-buttons input {
    flex: 1;
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.adjust-btn {
    width: 44px;
    height: 44px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.adjust-btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.adjust-btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.adjust-btn:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

/* Inputs & Select */
input[type="number"],
select {
    width: 100%;
    padding: var(--spacing-md);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select {
    cursor: pointer;
    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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.btn-primary:disabled {
    background: var(--color-text-dim);
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-secondary);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

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

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
}

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

/* ============================================================================
   Tips Section
   ============================================================================ */

.tips-section {
    margin-bottom: var(--spacing-2xl);
}

.tips-section h2 {
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.tip-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.tip-card strong {
    display: block;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.tip-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================================================
   Resume Section
   ============================================================================ */

.resume-section {
    margin-bottom: var(--spacing-2xl);
    display: none;
    /* Hidden by default */
}

.resume-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.resume-card {
    background: white;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.resume-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.resume-info h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.resume-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    gap: var(--spacing-md);
}

.resume-progress {
    color: var(--color-accent);
    font-weight: 600;
}

.btn-resume {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-resume:hover {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* ============================================================================
   Login Page Styles (Moved from inline)
   ============================================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    /* Lighter, more professional background */
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.login-header {
    background: white;
    padding: 32px 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-bg);
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 12px;
    display: inline-block;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.login-body {
    padding: 32px;
}

.tab-buttons {
    display: flex;
    margin-bottom: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

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

.login-form-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.login-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.login-submit-btn:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--color-text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.login-divider span {
    padding: 0 12px;
}

.google-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.google-btn:hover {
    background: var(--color-bg);
    border-color: var(--color-text-muted);
}

.google-icon {
    width: 18px;
    height: 18px;
}

.skip-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.skip-link a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
}

.skip-link a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.875rem;
    display: none;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.tab-content {
    display: none;
}

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

/* ============================================================================
   Footer
   ============================================================================ */

.main-footer {
    text-align: center;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-2xl);
    background: var(--color-bg-elevated);
}

.main-footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    max-width: 600px;
    margin: var(--spacing-md) auto;
    line-height: 1.5;
}

.disclaimer strong {
    color: var(--color-warning);
}

.copyright {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    margin-top: var(--spacing-md);
    line-height: 1.4;
}

.visitor-globe {
    display: flex;
    justify-content: center;
    opacity: 0.9;
}

/* Feedback Button & Modal */
.feedback-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.feedback-modal form {
    padding: 24px;
}

.feedback-modal .form-group {
    margin-bottom: 16px;
}

.feedback-modal label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.feedback-modal input,
.feedback-modal select,
.feedback-modal textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.feedback-modal input:focus,
.feedback-modal select:focus,
.feedback-modal textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.feedback-modal .submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.rating-stars {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.rating-stars .star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

/* Contact Info */
.contact-info {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-top: var(--spacing-sm);
}

.contact-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ============================================================================
   Exam Interface Styles
   ============================================================================ */

.exam-page {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.exam-header {
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.exam-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.exam-brand:hover {
    text-decoration: none;
}

/* Progress Bar */
.exam-progress {
    flex: 1;
    max-width: 600px;
    margin: 0 var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-track {
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: right;
    font-weight: 500;
}

/* Timer */
.exam-timer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
    background: var(--color-bg);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.exam-timer.warning {
    color: var(--color-warning);
    border-color: var(--color-warning);
    background: #fffbeb;
}

.exam-timer.danger {
    color: var(--color-danger);
    border-color: var(--color-danger);
    background: #fef2f2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Main Exam Area */
.exam-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.question-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.question-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--color-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.question-meta {
    display: flex;
    gap: var(--spacing-md);
}

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

.badge-category {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-difficulty {
    background: #f1f5f9;
    color: #475569;
}

/* Question Content */
.question-content {
    padding: var(--spacing-2xl) var(--spacing-xl);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text);
}

.question-image-container {
    margin: var(--spacing-lg) 0;
    text-align: center;
    background: #f8fafc;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.question-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-sm);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-xl) var(--spacing-xl);
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
}

.option-item:hover {
    border-color: var(--color-accent);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.option-item.selected {
    border-color: var(--color-secondary);
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    z-index: 1;
}

.option-key {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
    font-family: var(--font-mono);
    border: 1px solid var(--color-border);
}

.option-item.selected .option-key {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

.option-text {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Exam Footer */
.exam-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.exam-tools {
    display: flex;
    gap: var(--spacing-md);
}

.btn-tool {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-tool:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-tool.active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exam-header {
        height: auto;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .exam-progress {
        order: 3;
        width: 100%;
        margin: var(--spacing-sm) 0 0;
        max-width: none;
    }

    .exam-main {
        padding: var(--spacing-md);
    }

    .question-content {
        font-size: 1.1rem;
        padding: var(--spacing-lg);
    }

    .options-grid {
        padding: 0 var(--spacing-lg) var(--spacing-lg);
    }

    .exam-footer {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .exam-tools {
        width: 100%;
        justify-content: space-between;
    }

    .btn-next {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

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

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

/* Full ASVAB Simulation Card */
.full-exam-card {
    position: relative;
    border: 2px solid var(--color-border) !important;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%) !important;
}

.full-exam-card:hover {
    border-color: #ffc107 !important;
    box-shadow: 0 10px 22px rgba(255, 193, 7, 0.18) !important;
}

.full-exam-card .mode-icon {
    font-size: 3rem;
}

.full-exam-card.selected {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%) !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3) !important;
}

.mode-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}