/* =========================================
   FUENTES Y CONFIGURACIÓN BASE
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #000000 !important; /* FORZAMOS TEXTO NEGRO */
}

/* =========================================
   LOGIN
   ========================================= */
body.login-bg {
    background: linear-gradient(135deg, #0056b3 0%, #00a8cc 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: #ffffff !important; /* Fondo blanco forzado */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 380px;
    text-align: center;
    color: #000000 !important;
}

.login-box h2 {
    color: #0056b3 !important;
    margin-bottom: 30px;
    font-size: 24px;
}

.login-box input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #ffffff !important; /* Fondo blanco */
    color: #000000 !important; /* Texto negro */
}

.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: #ffffff !important; /* Texto blanco sobre botón azul */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.login-box button:hover {
    background-color: #004494;
}

.login-box .error {
    color: #d9534f !important;
    font-size: 14px;
    margin-top: 15px;
    background: #fde8e8;
    padding: 10px;
    border-radius: 4px;
}

/* =========================================
   DASHBOARD
   ========================================= */
header {
    background-color: #0056b3;
    color: #ffffff !important;
    padding: 0 30px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #ffffff !important;
}

header a {
    color: #ffffff !important;
    text-decoration: none;
    background-color: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 4px;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: #ffffff !important; /* Tarjetas blancas forzadas */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    color: #000000 !important;
}

.controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.controls label {
    font-weight: 500;
    color: #000000 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

select, input[type="date"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #000000 !important; /* Texto negro en selectores */
    background-color: #ffffff !important; /* Fondo blanco en selectores */
    min-width: 200px;
}

/* Selectores desplegables (options) */
option {
    background-color: #ffffff;
    color: #000000;
}

.actions-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

button.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
    transition: transform 0.1s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary { background-color: #0056b3; }
.btn-success { background-color: #28a745; }
.btn-warning { background-color: #ffc107; color: #000000 !important; } /* Texto negro en botón amarillo */
.btn-danger { background-color: #dc3545; }

.student-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.student-row {
    background: #ffffff !important;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    color: #000000 !important;
}

.student-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #0056b3;
}

/* AQUI ESTÁ LA CLAVE PARA LOS NOMBRES */
.student-info strong {
    font-size: 16px;
    color: #000000 !important; /* FORZADO A NEGRO */
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #000000 !important; /* Forzado a negro */
    user-select: none;
}

input[type="radio"] {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .controls { flex-direction: column; align-items: stretch; }
    .student-row { flex-direction: column; align-items: flex-start; gap: 15px; }
    .radio-group { width: 100%; justify-content: space-between; }
    header { padding: 0 15px; }
}
/* ESTILOS DEL MODAL */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Fondo semitransparente negro */
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideDown 0.4s;
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover { color: black; }