/* Stiluri generale pentru containerul testului */
.et-test-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif; /* Folosește fontul Inter, dacă este disponibil */
    color: #333;
}

/* Titluri */
.et-title {
    color: #0073aa; /* Culoarea primară WordPress */
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}
/* Etichete și select-uri */
.et-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.et-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    -webkit-appearance: none; /* Elimină stilul implicit al browserului */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C197.3L159.2%2C69.5c-3.2-3.2-8.3-3.2-11.6%2C0L5.4%2C197.3c-3.2%2C3.2-3.2%2C8.3%2C0%2C11.6l10.4%2C10.4c3.2%2C3.2%2C8.3%2C3.2%2C11.6%2C0l124.6-124.6c3.2-3.2%2C8.3-3.2%2C11.6%2C0l124.6%2C124.6c3.2%2C3.2%2C8.3%2C3.2%2C11.6%2C0l10.4-10.4C290.2%2C205.6%2C290.2%2C200.5%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E'); /* Săgeată personalizată */
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 0.6em auto;
}

/* Input-uri noi pentru detalii elev */
.et-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* Butoane */
.et-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.et-button-primary {
    background-color: #0073aa;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.3);
}

.et-button-primary:hover {
    background-color: #005f8a;
    transform: translateY(-1px);
}

.et-button-secondary {
    background-color: #6a737d;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(106, 115, 125, 0.3);
}

.et-button-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* NOU: Buton pentru deconectare evaluator */
.et-button-tertiary {
    background-color: #dc3545; /* Roșu pentru deconectare */
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    margin-left: 10px; /* Spațiu față de alte butoane */
}

.et-button-tertiary:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}


/* Mesaje de eroare/succes */
.et-message {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.et-error {
    background-color: #ffe0e0;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.et-success {
    background-color: #e0ffe0;
    color: #388e3c;
    border: 1px solid #388e3c;
}

.et-info {
    background-color: #e0f2f7; /* Un albastru deschis pentru info */
    color: #0056b3;
    border: 1px solid #0056b3;
}

/* Stiluri pentru întrebări și opțiuni */
.et-question-text h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.et-question-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.et-options-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.et-options-list li {
    margin-bottom: 15px;
}

.et-option-label {
    display: block;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-size: 1.1em;
    color: #444;
}

.et-option-label:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.et-option-label input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2); /* Mărește butoanele radio */
    vertical-align: middle;
}

/* Stiluri pentru raport */
.et-report-container {
    padding: 30px;
}

.et-student-details-header {
    background-color: #f0f8ff; /* Un fundal ușor albastru */
    border: 1px solid #cceeff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px;
}

.et-student-details-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3;
    font-size: 1.3em;
    border-bottom: 1px dashed #cceeff;
    padding-bottom: 5px;
}

.et-student-details-header p {
    margin: 5px 0;
    font-size: 0.95em;
}

.et-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

.et-report-table th,
.et-report-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}

.et-report-table th {
    background-color: #f0f0f0;
    font-weight: 600;
    color: #555;
}

.et-report-table tr:nth-child(even) {
    background-color: #fdfdfd;
}

.et-report-table .et-correct {
    background-color: #e6ffe6; /* Verde deschis pentru răspunsuri corecte */
    color: #388e3c;
}

.et-report-table .et-incorrect {
    background-color: #ffe6e6; /* Roșu deschis pentru răspunsuri greșite */
    color: #d32f2f;
}

.et-final-score {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 30px;
    color: #0073aa;
}

.et-report-actions {
    text-align: center;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .et-test-container {
        margin: 15px;
        padding: 20px;
    }

    .et-title {
        font-size: 1.6em;
    }

    .et-button {
        width: 100%;
        padding: 10px 15px;
        margin-bottom: 10px; /* Spațiu între butoane pe mobil */
    }

    .et-report-actions form {
        margin-left: 0 !important; /* Resetează margin-ul pe mobil */
    }

    .et-report-table, .et-report-table tbody, .et-report-table tr, .et-report-table td, .et-report-table th {
        display: block;
    }

    .et-report-table thead {
        display: none;
    }

    .et-report-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }

    .et-report-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .et-report-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }

    .et-report-table td:nth-of-type(1):before { content: "Nr."; }
    .et-report-table td:nth-of-type(2):before { content: "Întrebare"; }
    .et-report-table td:nth-of-type(3):before { content: "Răspunsul Tău"; }
    .et-report-table td:nth-of-type(4):before { content: "Răspunsul Corect"; }
    .et-report-table td:nth-of-type(5):before { content: "Status"; }
}

/* Stiluri specifice pentru printare */
@media print {
    body {
        background-color: #fff !important;
        -webkit-print-color-adjust: exact; /* Asigură printarea culorilor de fundal */
        print-color-adjust: exact;
    }

    .et-test-container {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Ascunde elementele inutile la printare */
    .site-header, .site-footer, .main-navigation, .et-button, .et-report-actions, .et-select, .et-label, .et-input, form {
        display: none !important;
    }

    .et-title {
        color: #000 !important;
        border-bottom: 1px solid #ccc !important;
        font-size: 1.5em !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }

    .et-student-details-header {
        background-color: #f0f0f0 !important; /* Un fundal mai deschis pentru printare */
        border: 1px solid #ccc !important;
        color: #000 !important;
        padding: 10px !important;
        margin-bottom: 20px !important;
    }

    .et-student-details-header h3 {
        color: #000 !important;
        border-bottom: 1px dashed #ccc !important;
    }

    .et-report-table {
        border: 1px solid #000 !important;
        font-size: 0.8em !important;
    }

    .et-report-table th,
    .et-report-table td {
        border: 1px solid #000 !important;
        padding: 8px 10px !important;
        color: #000 !important;
    }

    .et-report-table th {
        background-color: #e0e0e0 !important;
    }

    .et-report-table .et-correct {
        background-color: #e0ffe0 !important;
        color: #000 !important;
    }

    .et-report-table .et-incorrect {
        background-color: #ffe0e0 !important;
        color: #000 !important;
    }

    .et-final-score {
        color: #000 !important;
        font-size: 1.2em !important;
        margin-top: 20px !important;
    }
