/**
 * Mobile-First Base Styles
 * Exam Extractor
 * Default styles for mobile devices (320px - 480px)
 */

/* CSS Variables */
:root {
    --primary-color: #00ff9f;
    --secondary-color: #0a0e27;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --error-color: #ff4444;
    --success-color: #00ff9f;
    --warning-color: #ffaa00;
    --bg-dark: #0a0e27;
    --bg-darker: #050711;
    --border-color: #1a1e37;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 159, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    min-height: 56px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-height: 50px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN FIX - REMOVE WHITE BACKGROUND FROM SELECT OPTIONS
   ═══════════════════════════════════════════════════════════════ */

/* Fix for select dropdowns and their options */
select.form-control,
select.form-control option {
    background-color: var(--bg-dark) !important;
    color: var(--text-color) !important;
}

/* When dropdown is focused/opened */
select.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
}

/* Individual options in the dropdown list */
select option {
    background-color: #0a0e27 !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Hover state for options */
select option:hover,
select option:focus {
    background-color: #1a1e37 !important;
    color: #00ff9f !important;
}

/* Selected/checked option */
select option:checked {
    background-color: #1a1e37 !important;
    color: #00ff9f !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════════════════════ */

/* Alerts */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid var(--error-color);
    color: #ffaaaa;
}

.alert-success {
    background: rgba(0, 255, 159, 0.1);
    border-left: 4px solid var(--success-color);
    color: #aaffdd;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-left: 4px solid var(--warning-color);
    color: #ffd480;
}

/* Footer */
.site-footer {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 50px;
}

.site-footer p {
    margin: 5px 0;
}

/* Animation Canvas */
#matrix-canvas,
#orbs-canvas,
#binary-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}