body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px;
}

h1 {
    color: #007bff;
    text-align: center;
    margin-bottom: 30px;
}

h2, h3 {
    text-align: center;
    color: #28a745;
}

/* --- Ekran Startowy --- */
#start-screen {
    text-align: center;
}

#question-count {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100px;
    text-align: center;
    margin: 10px auto 20px;
    display: block;
}

.time-info {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 25px;
}

/* --- Ekran Testu --- */
.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
    color: #007bff;
}

#answers-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.answer-option {
    display: block;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: left;
}

.answer-option:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.selected {
    background-color: #d1e7dd;
    border-color: #198754;
    font-weight: bold;
}

.correct {
    background-color: #d4edda !important;
    border: 2px solid #28a745 !important;
}

.incorrect {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545 !important;
}

/* --- Przyciski --- */
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 15px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
    width: 100%;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* --- Raport --- */
#report-screen {
    text-align: center;
}

#report-details p {
    font-size: 1.1em;
    padding: 10px;
    margin: 8px auto;
    border-radius: 5px;
    width: fit-content;
    text-align: left;
}

.result-correct {
    color: #198754;
    font-weight: bold;
    border: 1px solid #198754;
}

.result-incorrect {
    color: #dc3545;
    font-weight: bold;
    border: 1px solid #dc3545;
}

.final-grade {
    font-size: 1.4em !important;
    color: #007bff;
    padding: 15px !important;
    border: 2px solid #007bff !important;
    margin-top: 20px !important;
}

#incorrect-answers-list {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f8f8;
    text-align: left;
}

.error-detail {
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px dashed #ddd;
}

.error-detail h4 {
    color: #dc3545;
    margin-top: 0;
    text-align: left;
}

.user-answer-error {
    color: #dc3545;
    font-size: 0.95em;
}

.correct-answer {
    color: #28a745;
    font-weight: bold;
    font-size: 0.95em;
}

.search-link {
    display: block;
    text-align: center;
    margin: -15px auto 25px; /* Ustawienie marginesu poniżej nagłówka */
    padding: 8px 15px;
    background-color: #28a745; /* Zielone tło */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    max-width: 350px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-link:hover {
    background-color: #1e7e34; /* Ciemniejsza zieleń po najechaniu */
}

.correct {
    background-color: #d4edda !important; /* Jasnozielone tło */
    border: 2px solid #28a745 !important; /* Zielona ramka */
    cursor: default !important;
}

.incorrect {
    background-color: #f8d7da !important; /* Jasnoczerwone tło */
    border: 2px solid #dc3545 !important; /* Czerwona ramka */
    cursor: default !important;
}

.answer-option {
    /* Upewnij się, że opcje nie wyglądają na aktywne po kliknięciu */
    transition: none; 
}

.answer-option.incorrect + .correct {
    /* Upewnij się, że poprawna odpowiedź jest widoczna po złym wyborze */
    opacity: 1; 
}

/* Styl dla nagłówka informacyjnego */
#info-text {
    font-weight: bold;
    color: #007bff;
}