@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0d9488;
    --primary-dark: #115e59;
    --secondary: #db2777;
    --accent: #3b5bdb;
    --bg-gray: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
}

body.dark {
    --bg-gray: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --white: #1e293b;
    --border: #334155;
    --card-bg: #1e293b;
    --input-bg: #0f172a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg-gray);
    color: var(--text-main);
    line-height: 1.6;
}

/* Utilities */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 450px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Header */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

#timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Context Bar */
#contextBar {
    background: var(--bg-gray);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

/* Main Container */
main {
    padding: 1.25rem;
    padding-bottom: 5rem;
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, background 0.3s ease;
}

.card:active {
    transform: scale(0.99);
}

/* Section Headers */
.section-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* Questions */
.question-block {
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Options */
.option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    background-color: var(--bg-gray);
    border-color: var(--primary-dark);
}

.option-label input {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Inputs */
input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background-color: var(--input-bg);
    color: var(--text-main);
    transition: border-color 0.2s, background 0.3s;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(59, 91, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-login {
    background-color: var(--secondary);
    color: var(--white);
    width: 100%;
    border-radius: 8px;
}

/* Navigation Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 450px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

#pageIndicator {
    font-weight: 600;
    color: var(--text-muted);
}

/* Login Page Specifics */
.login-container {
    padding: 3rem 1.5rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Scoring */
.score-badge {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

/* Developer Footer */
#devFooter {
    font-size: 10px;
    color: var(--text-muted);
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.bg-emerald-50 {
    background-color: #ecfdf5;
}

.text-emerald-700 {
    color: #047857;
}

.border-emerald-100 {
    border-color: #d1fae5;
}

.hover\:bg-emerald-100:hover {
    background-color: #d1fae5;
}

.rounded-full {
    border-radius: 9999px;
}

.no-underline {
    text-decoration: none;
}