/* Estilos basados en la línea gráfica de Gob.cl - Copiado desde Maqueta PAES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* Banner de sección con gradiente azul */
.section-banner {
    background: #0a132d;
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 40px;
    padding-right: 40px;
}

.banner-logo {
    height: 40px;
    width: auto;
    cursor: pointer;
    z-index: 10;
    position: relative;
    transition: opacity 0.2s ease;
}

.banner-logo:hover {
    opacity: 0.8;
}

.banner-actions {
    display: flex;
    align-items: center;
}

.admin-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Contenido principal */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    border: 1px solid #e5e7eb;
}

.sidebar h3 {
    color: #0056b3;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar a {
    display: block;
    color: #0056b3;
    text-decoration: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: white;
    border-left: 4px solid #0056b3;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.1);
}

a.disabled {
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
    text-decoration: line-through;
}

/* Contenido de la página */
.content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Formularios */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.1);
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #0056b3;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn {
    background: linear-gradient(135deg, #1a365d, #2d5a87);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(135deg, #2d5a87, #1a365d);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26, 54, 93, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(107, 114, 128, 0.4);
}

/* Cards para selección de tests */
.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.test-card {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.05);
}

.test-card:hover {
    border-color: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
}

.test-card h3 {
    color: #0056b3;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

.test-card p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Preguntas */
.question-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.question-number {
    background: linear-gradient(135deg, #1a365d, #2d5a87);
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.2);
}

.question-text {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #333;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
}

.option:hover {
    border-color: #0056b3;
    background-color: #f8fafc;
}

.option.selected {
    border-color: #0056b3;
    background-color: #e6f3ff;
}

/* Resultados */
.results-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
    border: 1px solid #e5e7eb;
}

.result-card {
    background: linear-gradient(135deg, #f8fafc, #e6f3ff);
    border-left: 5px solid #0056b3;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.result-card h3 {
    color: #0056b3;
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.result-score {
    font-size: 32px;
    font-weight: bold;
    color: #0056b3;
}

/* Progress bar */
.progress-bar {
    background-color: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    background: linear-gradient(90deg, #0056b3, #0066cc);
    height: 100%;
    transition: width 0.3s;
}

/* Estilos para login sin sidebar */
.login-full-width {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    padding: 40px 20px 20px 20px;
    padding-top: 60px;
}

.login-full-width .form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Estilos para la opción ClaveÚnica en login normal */
.clave-unica-option {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.clave-unica-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.clave-unica-text {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 14px;
}

.clave-unica-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    transition: background-color 0.2s;
}

.clave-unica-btn:hover {
    background: #1d4ed8;
}

.clave-unica-icon {
    font-size: 16px;
}

.clave-unica-text-btn {
    text-decoration: underline;
}

/* Estilos para la página ClaveÚnica SII */
.clave-unica-page {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.clave-unica-container {
    background: white;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clave-unica-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.clave-unica-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clave-unica-accessibility {
    display: flex;
    gap: 5px;
}

.accessibility-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.clave-unica-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clave-unica-input-group {
    position: relative;
}

.clave-unica-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.clave-unica-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clave-unica-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
}

.clave-unica-links {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.clave-unica-link {
    color: #2563eb;
    text-decoration: underline;
    font-size: 14px;
}

.clave-unica-submit-btn {
    background: #60a5fa;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s;
}

.clave-unica-submit-btn:hover {
    background: #3b82f6;
}

.clave-unica-help {
    text-align: center;
    margin-top: 20px;
}

.clave-unica-help-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.clave-unica-help-link:hover {
    text-decoration: underline;
}

/* Estilos para Competencia Lectora */
.text-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.text-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.text-header h2 {
    color: #1a365d;
    margin-bottom: 10px;
    font-size: 24px;
}

.text-source {
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

.text-title {
    text-align: center;
    color: #1a365d;
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-body {
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
    text-align: justify;
}

.text-body p {
    margin-bottom: 20px;
    text-indent: 30px;
}

.text-footnotes {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
    border-left: 4px solid #1a365d;
}

.text-footnotes p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #6b7280;
}

.text-source-reference {
    background-color: #f0f9ff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
    border-left: 4px solid #0ea5e9;
}

.text-source-reference p {
    margin: 0;
    font-size: 14px;
    color: #0c4a6e;
    font-style: italic;
}

/* Estilos para página de confirmación */
.confirmation-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.confirmation-header h2 {
    color: #1a365d;
    margin: 0;
    font-size: 28px;
}

.confirmation-stats {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #1a365d;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    color: #1a365d;
    font-weight: bold;
    font-size: 16px;
}

.stat-value.warning {
    color: #dc2626;
}

.confirmation-message {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.confirmation-message p {
    margin: 0 0 10px 0;
    color: #92400e;
}

.confirmation-message p:last-child {
    margin-bottom: 0;
}

.confirmation-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.btn-warning {
    background-color: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Modal de confirmación final */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-content h3 {
    color: #1a365d;
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Estilos para Panel de Administración */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-header h2 {
    color: #1a365d;
    margin: 0;
    font-size: 28px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-icon {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d, #2d5a87);
    border-radius: 12px;
    color: white;
}

.card-content h3 {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-number {
    color: #1a365d;
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.card-change {
    font-size: 12px;
    margin-top: 5px;
}

.card-change.positive {
    color: #22c55e;
}

.card-change.negative {
    color: #dc2626;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h3 {
    color: #1a365d;
    margin: 0;
    font-size: 20px;
}

.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th {
    background-color: #f8fafc;
    color: #1a365d;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
}

.admin-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: #f8fafc;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a365d, #2d5a87);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.student-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a365d, #2d5a87);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 32px;
}

.student-name {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 2px;
}

.student-email {
    font-size: 12px;
    color: #6b7280;
}

.score {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.score.excellent {
    background-color: #dcfce7;
    color: #166534;
}

.score.good {
    background-color: #dbeafe;
    color: #1e40af;
}

.score.average {
    background-color: #fef3c7;
    color: #92400e;
}

.score.pending {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.completed {
    background-color: #dcfce7;
    color: #166534;
}

.status.in-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.btn-small {
    background-color: #1a365d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-small:hover {
    background-color: #2d5a87;
}

.btn-nav {
    background: linear-gradient(135deg, #1a365d, #2d5a87);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(26, 54, 93, 0.2);
    text-decoration: none;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #2d5a87, #1a365d);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.3);
}

.btn-excel {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(34, 197, 94, 0.2);
    text-decoration: none;
}

.btn-excel:hover {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.filters-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.stat-card h4 {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    color: #1a365d;
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.stat-trend {
    font-size: 12px;
    font-weight: 500;
}

.stat-trend.positive {
    color: #22c55e;
}

.stat-trend.negative {
    color: #dc2626;
}

.table-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.page-info {
    color: #6b7280;
    font-size: 14px;
}

.student-profile {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-info h3 {
    color: #1a365d;
    margin: 0 0 8px 0;
    font-size: 24px;
}

.profile-email,
.profile-rut {
    color: #6b7280;
    margin: 4px 0;
    font-size: 14px;
}

.profile-status {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.completion-date {
    color: #6b7280;
    font-size: 14px;
}

.scores-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-card.total {
    border: 2px solid #1a365d;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.score-header h4 {
    color: #1a365d;
    margin: 0;
    font-size: 16px;
}

.score-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.score-badge.excellent {
    background-color: #dcfce7;
    color: #166534;
}

.score-badge.good {
    background-color: #dbeafe;
    color: #1e40af;
}

.score-badge.average {
    background-color: #fef3c7;
    color: #92400e;
}

.score-details {
    margin-top: 15px;
}

.score-bar {
    background-color: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.score-fill {
    background: linear-gradient(90deg, #1a365d, #2d5a87);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.competence-section {
    margin-bottom: 30px;
}

.competence-section h4 {
    color: #1a365d;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.question-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.question-item.correct {
    border-left: 4px solid #22c55e;
    background-color: #f0fdf4;
}

.question-item.incorrect {
    border-left: 4px solid #dc2626;
    background-color: #fef2f2;
}

.question-item .question-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1a365d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.question-content {
    flex: 1;
}

.question-title {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 5px;
    font-size: 14px;
}

.question-result {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.result-icon {
    font-weight: bold;
}

.question-item.correct .result-icon {
    color: #22c55e;
}

.question-item.incorrect .result-icon {
    color: #dc2626;
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: #1a365d;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.time-breakdown,
.performance-analysis {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-item,
.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.time-item:last-child,
.analysis-item:last-child {
    border-bottom: none;
}

.time-item.total {
    font-weight: bold;
    color: #1a365d;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.time-label,
.analysis-label {
    color: #6b7280;
    font-size: 14px;
}

.time-value,
.analysis-value {
    color: #1a365d;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .test-cards {
        grid-template-columns: 1fr;
    }
}

