/* =============================================================
   DreamITeam HR Test — Główny arkusz stylów
   Kolory oparte na brandingu DreamITeam (InfoMagiczna Firma IT)
   Paleta: fiolet + złoto, bez zewnętrznych frameworków
   ============================================================= */

/* ---- Zmienne CSS (kolory marki) ---- */
:root {
    --primary:       #6b21a8;   /* Głęboki fiolet — główny kolor marki */
    --primary-hover: #7c3aed;   /* Jaśniejszy fiolet — hover */
    --primary-dark:  #4c1d95;   /* Ciemny fiolet */
    --primary-light: #ede9fe;   /* Bardzo jasny fiolet — tło */
    --accent:        #d97706;   /* Złoty akcent — "InfoMagiczna" */
    --accent-light:  #fef3c7;   /* Jasny złoty */
    --text-dark:     #1e1b4b;   /* Prawie czarny fiolet — główny tekst */
    --text-mid:      #4b5563;   /* Ciemnoszary */
    --text-light:    #9ca3af;   /* Jasny szary */
    --bg:            #f5f3ff;   /* Tło strony */
    --white:         #ffffff;
    --border:        #ddd6fe;   /* Obramowanie */
    --success:       #16a34a;   /* Zielony — poprawna odpowiedź */
    --success-bg:    #dcfce7;
    --error:         #dc2626;   /* Czerwony — błędna odpowiedź */
    --error-bg:      #fee2e2;
    --neutral:       #9ca3af;   /* Szary — pominięte pytanie */
    --neutral-bg:    #f3f4f6;
    --warning:       #d97706;
    --warning-bg:    #fef3c7;
    --shadow:        0 4px 20px rgba(107, 33, 168, 0.12);
    --shadow-sm:     0 2px 8px rgba(107, 33, 168, 0.08);
    --radius:        10px;
    --radius-sm:     6px;
    --transition:    0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

/* ---- Układ strony ---- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   NAGŁÓWEK (Header)
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-hover) 100%);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(76, 29, 149, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Logo staje się białe na tle fioletowym */
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo-name span {
    color: #fbbf24; /* Złota litera "I" */
}

.logo-tagline {
    font-size: 0.65rem;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Nawigacja w nagłówku */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: #e9d5ff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.nav-link-danger {
    color: #fca5a5;
}

.nav-link-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fecaca;
}

/* ============================================================
   KARTY (Cards)
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, var(--primary-light), var(--white));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body { padding: 1.5rem; }

/* ============================================================
   PRZYCISKI (Buttons)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-hover);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}
.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}
.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: var(--white);
}

.btn-warning {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-warning:hover {
    background: #b45309;
    border-color: #b45309;
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-mid);
    border-color: #e5e7eb;
}
.btn-ghost:hover {
    background: var(--neutral-bg);
    color: var(--text-dark);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn:disabled, .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   FORMULARZE
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-mid);
    line-height: 1.5;
}

/* Siatka formularza */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   TABELE
   ============================================================ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f3f0ff;
    vertical-align: middle;
}

.table tbody tr:hover { background: #faf8ff; }
.table tbody tr:last-child td { border-bottom: none; }

/* Akcje w tabeli — nie zawijaj */
.table td:last-child { white-space: nowrap; }

/* ============================================================
   ODZNAKI STATUSU (Badges)
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-not-started {
    background: var(--neutral-bg);
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.badge-in-progress {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-completed {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.badge-expired {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #fecaca;
}

/* ============================================================
   POWIADOMIENIA (Alerts)
   ============================================================ */
.alert {
    padding: 0.875rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border-left: 4px solid;
}

.alert-success {
    background: var(--success-bg);
    color: #166534;
    border-color: var(--success);
}

.alert-error {
    background: var(--error-bg);
    color: #991b1b;
    border-color: var(--error);
}

.alert-warning {
    background: var(--accent-light);
    color: #92400e;
    border-color: var(--accent);
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
}

/* ============================================================
   STRONA LOGOWANIA
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-hover) 100%);
    padding: 2rem 1rem;
}

.login-box {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(76, 29, 149, 0.35);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.login-logo-name span { color: var(--accent); }

.login-logo-sub {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.login-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1.75rem;
}

/* ============================================================
   STATYSTYKI / KAFELKI
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-dark);
}

.stat-card.green  .stat-value { color: var(--success); }
.stat-card.red    .stat-value { color: var(--error); }
.stat-card.gray   .stat-value { color: var(--text-light); }
.stat-card.blue   .stat-value { color: #1d4ed8; }
.stat-card.orange .stat-value { color: var(--accent); }

/* ============================================================
   MAPA PYTAŃ (wyniki — siatka 50 kwadratów)
   ============================================================ */
.question-map {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin: 1rem 0;
}

.q-square {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: default;
    border: 2px solid transparent;
    transition: transform 0.1s;
    position: relative;
}

.q-square:hover { transform: scale(1.1); z-index: 1; }

.q-square.correct {
    background: var(--success);
    color: var(--white);
    border-color: #15803d;
}

.q-square.incorrect {
    background: var(--error);
    color: var(--white);
    border-color: #b91c1c;
}

.q-square.skipped {
    background: #e5e7eb;
    color: var(--text-light);
    border-color: #d1d5db;
}

.q-square.timeout-mark {
    box-shadow: 0 0 0 3px var(--accent);
}

/* Legenda mapy */
.map-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    color: var(--text-mid);
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ============================================================
   WYNIKI — tabela szczegółowa pytań
   ============================================================ */
.results-detail-table .col-q   { width: 40px; text-align: center; }
.results-detail-table .col-ans { width: 80px; text-align: center; }
.results-detail-table .col-time { width: 120px; }

/* ============================================================
   STRONA TESTU (kandydat)
   ============================================================ */
.test-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.test-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.test-header-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.test-header-logo span { color: #fbbf24; }

/* Timer */
.timer-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1.3rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    color: var(--white);
    min-width: 110px;
    justify-content: center;
}

.timer-box.warning {
    background: rgba(217, 119, 6, 0.3);
    border-color: #fbbf24;
    color: #fde68a;
    animation: timerPulse 1s ease-in-out infinite;
}

.timer-box.critical {
    background: rgba(220, 38, 38, 0.3);
    border-color: #fca5a5;
    color: #fecaca;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Pasek postępu */
.progress-bar-wrap {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-mid);
    white-space: nowrap;
}

.progress-bar-outer {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    min-width: 100px;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-hover));
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Nawigacja mini pytań */
.question-nav-scroll {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 0.75rem 1.5rem;
    background: #faf8ff;
    border-bottom: 1px solid var(--border);
    max-height: 90px;
    overflow-y: auto;
}

.q-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 2px solid #d1d5db;
    background: var(--white);
    color: var(--text-mid);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.q-nav-btn:hover { border-color: var(--primary-hover); color: var(--primary-hover); }
.q-nav-btn.answered { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.q-nav-btn.current { background: var(--primary); border-color: var(--primary); color: var(--white); transform: scale(1.1); }

/* Obszar pytania */
.question-area {
    flex: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.question-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 2rem;
}

.question-number-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Opcje odpowiedzi */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    background: var(--white);
}

.option-label:hover {
    border-color: var(--primary-hover);
    background: var(--primary-light);
}

.option-label input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.option-label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1);
}

.option-letter {
    font-weight: 800;
    color: var(--primary);
    min-width: 20px;
    font-size: 0.875rem;
}

.option-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Przyciski nawigacji testu */
.test-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

/* ============================================================
   STRONA REJESTRACJI KANDYDATA
   ============================================================ */
.candidate-register {
    max-width: 560px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.register-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.register-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 2rem;
    color: var(--white);
    text-align: center;
}

.register-card-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.register-card-header p { color: #e9d5ff; font-size: 0.9rem; }

.register-card-body { padding: 2rem; }

/* Regulamin */
.regulations-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-mid);
    max-height: 180px;
    overflow-y: auto;
    line-height: 1.6;
}

.regulations-box h3 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================================
   MODALNY (Ostrzeżenie o przełączeniu okna)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display: none; }

.modal-box {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    border: 3px solid var(--error);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--error);
    margin-bottom: 0.75rem;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ============================================================
   STRONA PODZIĘKOWANIA
   ============================================================ */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-hover) 100%);
    padding: 2rem;
}

.thank-you-box {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.thank-you-icon { font-size: 4rem; margin-bottom: 1rem; }

.thank-you-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.thank-you-text {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.65;
}

/* ============================================================
   WYGASŁY LINK
   ============================================================ */
.expired-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
}

.expired-box {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ============================================================
   ODPOWIEDZI W WYNIKACH
   ============================================================ */
.answer-correct { color: var(--success); font-weight: 700; }
.answer-wrong   { color: var(--error);   font-weight: 700; }
.answer-skipped { color: var(--neutral); font-style: italic; }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 768px) {
    .main-content { padding: 1.25rem 1rem; }
    .card-body { padding: 1rem; }
    .header-inner { height: auto; padding: 0.75rem 1rem; flex-wrap: wrap; }
    .question-map { grid-template-columns: repeat(5, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .login-box { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .question-map { grid-template-columns: repeat(5, 1fr); }
    .test-nav { flex-direction: column; }
    .test-nav .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   POMOCNICZE KLASY
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-light); }
.text-small  { font-size: 0.8rem; }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-warning { color: var(--warning); }
.fw-bold  { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}
