@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* ===============================
   RESET BÁSICO
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===============================
   FONDO GENERAL
=============================== */
body {
    background: linear-gradient(to right, #e0f7fa, #ffffff);
    color: #333;
    padding: 20px;
}

/* ===============================
   CABECERA
=============================== */
header {
    text-align: center;
    padding: 20px;
    background-color: #00bcd4;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contenedor-login > h1 {
    text-align: center;
    margin-bottom: 16px;
}


header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

header p {
    font-size: 1rem;
}

/* ===============================
   PERFIL (ICONO ADMIN)
=============================== */
.perfil {
    position: end;

}

/* ===============================
   DASHBOARD ADMIN (TARJETAS)
=============================== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 16px;
    margin: 0 auto 20px;
    max-width: 980px;
}

@media (max-width: 980px) {
    .admin-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 620px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    background: white;
    border: 2px solid #00bcd4;
    color: #0b3b42;
    padding: 20px 18px;
    border-radius: 14px;
    min-height: 120px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

.admin-card .material-symbols-outlined {
    font-size: 40px;
    color: #007a87;
}

.admin-card__text h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.admin-card__text p {
    color: #47666c;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ===============================
   UTILIDADES ADMIN
=============================== */
.admin-mensaje {
    max-width: 900px;
    margin: 0 auto 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 188, 212, 0.12);
    border: 1px solid rgba(0, 188, 212, 0.25);
    min-height: 20px;
}

.admin-mensaje.is-error {
    background: rgba(244, 67, 54, 0.12);
    border-color: rgba(244, 67, 54, 0.25);
}

.admin-subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #007a87;
}

.admin-secondary {
    background: #e0f7fa;
    color: #007a87;
    border: 1px solid #00bcd4;
    margin-left: 8px;
}

.icon-btn {
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
}

.icon-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 999;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal {
    width: min(560px, 100%);
    background: white;
    border-radius: 14px;
    border: 2px solid rgba(0, 188, 212, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    padding: 14px 14px 8px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-header h2 {
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===============================
   FORMULARIOS
=============================== */
form {
    background-color: #f1f1f1;
    padding: 20px;
    margin: 0 auto 20px;
    border-radius: 10px;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input,
form select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #00bcd4;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background-color: #0097a7;
}

/* ===============================
   TABLAS
=============================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #fafafa;
    border-radius: 10px;
    overflow: hidden;
}

table th,
table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #00bcd4;
    color: white;
}

table tr:hover {
    background-color: #e0f7fa;
}

/* ===============================
   BOTONES
=============================== */
button {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: bold;
}

button:hover {
    opacity: 0.8;
}

/* ===============================
   SECCIONES
=============================== */
section {
    margin-bottom: 20px;
}

/* ===============================
   PROMEDIO ESTUDIANTE
=============================== */
.promedio {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: right;
}

/* ===============================
   FILTROS ESTUDIANTE
=============================== */
.filtros {
    margin-bottom: 15px;
}

.filtros label {
    font-weight: bold;
    margin-right: 5px;
}

.filtros input {
    margin-right: 10px;
    padding: 5px;
}

/* ===============================
   FOOTER
=============================== */
footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #555;
}
