/* =========================
   GAT General-A Mock Test
   CSS Styles
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #16a34a;
    --error-color: #dc2626;
    --background: #f3f4f6;
    --card-bg: #ffffff;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border: #d1d5db;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

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

.header {
    background: var(--primary-color);
    color: white;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* =========================
   Screens
========================= */

.screen {
    display: none;
    padding: 30px 15px;
}

.screen.active {
    display: block;
}

/* =========================
   Cards
========================= */

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.welcome-card,
.result-card {
    max-width: 700px;
    margin: 0 auto;
}

.icon,
.result-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}

.card h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* =========================
   Test Info
========================= */

.test-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.info-item {
    flex: 1;
    min-width: 150px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.info-item .label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-item span:last-child {
    font-size: 1.2rem;
    font-weight: bold;
}

/* =========================
   Subjects Covered
========================= */

.subjects-covered {
    margin-bottom: 30px;
}

.subjects-covered h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.subjects-covered ul {
    list-style: none;
}

.subjects-covered li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
}

.subjects-covered li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* =========================
   Form
========================= */

.student-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.student-form input,
.student-form select {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.student-form input:focus,
.student-form select:focus {
    border-color: var(--primary-color);
}

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

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background: #e5e7eb;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d1d5db;
}

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

.btn-success:hover {
    opacity: 0.9;
}

/* =========================
   Test Screen
========================= */

.test-header {
    background: white;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.timer {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--error-color);
}

/* =========================
   Progress Bar
========================= */

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* =========================
   Question Card
========================= */

.question-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.question-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

#question-text {
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* =========================
   Options
========================= */

#options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.option:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
}

.option.selected {
    background: #dbeafe;
    border-color: var(--primary-color);
}

/* =========================
   Navigation
========================= */

.navigation {
    margin-top: 30px;

    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   Result Screen
========================= */

.score-display {
    text-align: center;
    margin: 25px 0;
}

#score-percentage {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.result-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item .label {
    color: var(--text-light);
}

#result-message {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: bold;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {

    .header h1 {
        font-size: 1.5rem;
    }

    .test-info {
        flex-direction: column;
    }

    .navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .question-card,
    .card {
        padding: 20px;
    }

    #score-percentage {
        font-size: 3rem;
    }
}