/* Estilos base del Dashboard WRO */

/* Reset global básico */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Aplicar box-sizing a todos los elementos */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.wro-dashboard {
    /* Paleta de colores WRO Colombia unificada - Solo para el dashboard */
    --primary-color: #145388;
    /* Azul principal WRO */
    --primary-hover: #0b3c66;
    /* Azul más oscuro */
    --primary-light: #2d6aa5;
    /* Azul más claro */
    --secondary-color: #f05a28;
    /* Naranja WRO */
    --secondary-hover: #e04a18;
    --accent-color: #ffd100;
    /* Amarillo WRO */
    --dark-color: #23282d;
    --light-color: #f8f9fa;
    --border-color: #d8d8d8;
    --shadow: 0 3px 10px rgba(20, 83, 136, 0.08);
    /* Sombra con tono azul */
    --card-shadow: 0 10px 20px rgba(20, 83, 136, 0.06);
    --transition: all 0.3s ease;
    --success-color: #46b450;
    --warning-color: #ffb900;
    --error-color: #dc3232;
    --text-color: #4a4a4a;
    --heading-color: #333;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));

    /* Layout principal */
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: var(--light-color);
    background-image: url('/wp-content/uploads/2025/03/LOGO-DEL-SITIO-2.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: lighten;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-color);
    position: relative;
    box-sizing: border-box;
}

.wro-dashboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.sidebar,
.main-content {
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--gradient-primary);
    color: white;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 2px 0 15px rgba(20, 83, 136, 0.15);
    border-right: 1px solid rgba(20, 83, 136, 0.1);
    box-sizing: border-box;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    flex-shrink: 0;
}

.sidebar-header .logo {
    max-width: 200px;
    max-height: 90px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.sidebar-header .logo:hover {
    transform: scale(1.08);
    filter: brightness(0) invert(1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 18px;
    display: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
    margin: 2px 0;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--secondary-color);
}

.nav-item .material-icons {
    margin-right: 12px;
}

/* Contenido principal */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: white;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 10;
}

.page-title-container h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.user-menu {
    display: flex;
    align-items: center;
    padding-right: 30px;
}

.user-menu .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Secciones del Dashboard */
.dashboard-sections {
    flex: 1;
    padding: 30px;
    box-sizing: border-box;
}

/* Asegurar scroll vertical en secciones con contenido extenso */
.section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

/* Tarjetas de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.stat-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, white, #f8f9fa);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(20, 83, 136, 0.08);
    position: relative;
    box-sizing: border-box;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 2px 2px 0;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(20, 83, 136, 0.12);
}

.stat-card:hover .material-icons {
    animation: pulse 1s infinite;
}

.stat-card .material-icons {
    font-size: 40px;
    color: var(--primary-color);
    margin-right: 20px;
}

.stat-info h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #555;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

/* Tarjetas de equipos */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    box-sizing: border-box;
}

.team-card {
    background: linear-gradient(135deg, white, #f8f9fa);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    animation: slideIn 0.5s ease;
    border: 1px solid rgba(20, 83, 136, 0.08);
    position: relative;
    box-sizing: border-box;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 83, 136, 0.15);
}

.team-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-header h3 {
    margin: 0;
    font-size: 16px;
}

.status-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 15px;
    background: #f0f0f0;
}

.status-badge.active {
    background: var(--success-color);
    color: white;
}

.team-body {
    padding: 15px;
}

.team-body p {
    display: flex;
    align-items: center;
    margin: 8px 0;
    color: #555;
}

.team-body .material-icons {
    margin-right: 8px;
    font-size: 18px;
}

.team-actions {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
    padding: 5px;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* Estilos para formularios */
.form-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 18px;
    position: relative;
    padding-left: 15px;
}

.form-section h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #c5cfd8;
    /* Borde más oscuro y grueso */
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9fbfd;
    /* Fondo ligeramente coloreado */
    color: var(--text-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/* Estado hover para campos */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #a0aebb;
    background-color: #ffffff;
}

/* Estado focus mejorado */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 83, 136, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Mejora para etiquetas de formulario */
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 15px;
}

/* Mejora para campos select */
.form-group select {
    padding-right: 30px;
    /* Espacio para la flecha */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23145388' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select#category {
    padding: 12px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
    color: var(--primary-color);
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23145388' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.form-group select#category:hover {
    border-color: var(--secondary-color);
    background-color: rgba(20, 83, 136, 0.03);
}

.form-group select#category:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 83, 136, 0.15);
}

/* Campos readonly */
.form-group.readonly input {
    background-color: #edf1f5;
    border-color: #c5cfd8;
    color: #6c757d;
    cursor: not-allowed;
}

/* Estilo para campos con placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aebb;
    opacity: 0.7;
}

/* Botones */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #f0f2f5;
    color: #444;
}

.btn-secondary:hover {
    background-color: #e4e6eb;
}

.btn-primary .material-icons,
.btn-secondary .material-icons {
    margin-right: 8px;
    font-size: 18px;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.empty-state .material-icons {
    font-size: 64px;
    color: #ccc;
}

.empty-state h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* Estilo específico para el botón en el estado vacío */
.empty-state .nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    /* Azul principal */
    color: white;
    /* Texto blanco */
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.empty-state .nav-item:hover {
    background-color: var(--primary-hover);
    /* Azul más oscuro al pasar el mouse */
    color: white;
    /* Asegurar que el texto siga siendo blanco */
}

.empty-state .nav-item .material-icons {
    font-size: 20px;
    /* Espaciado entre el ícono y el texto */
    vertical-align: middle;
    /* Alinear verticalmente con el texto */
    display: inline-flex;
    /* Asegurar que se alinee correctamente */
    align-items: center;
    /* Centrar el contenido */
    justify-content: center;
}

/* Estilo específico para el botón dentro de alertas */
.alert .nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    /* Azul principal */
    color: white;
    /* Texto blanco */
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.alert .nav-item:hover {
    background-color: var(--primary-hover);
    /* Azul más oscuro al pasar el mouse */
    color: white;
    /* Asegurar que el texto siga siendo blanco */
}

.alert .nav-item .material-icons {
    font-size: 20px;
    /* Tamaño del ícono */
    margin-right: 8px;
    /* Espaciado entre el ícono y el texto */
    vertical-align: middle;
    /* Alinear verticalmente con el texto */
    display: inline-flex;
    /* Asegurar que se alinee correctamente */
    align-items: center;
    /* Centrar el contenido */
    justify-content: center;
}

/* Estilos para secciones específicas */
.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.students-section h3 {
    margin: 0;
}

.student-form-wrapper {
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.student-form {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-title {
    display: flex;
    align-items: center;
}

.header-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.btn-delete {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    margin-left: 10px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background-color: rgba(220, 50, 50, 0.15);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(220, 50, 50, 0.25);
}

.btn-delete:active {
    transform: scale(0.95);
}

.btn-delete .material-icons {
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-delete:hover .material-icons {
    color: #c41c1c;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.student-form {
    background: linear-gradient(to bottom, #ffffff, #f9fbfd);
    border: 1px solid #d1dbe6;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.student-form:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #b8c9db;
}

.student-form-wrapper {
    transition: opacity 0.3s ease;
}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(20, 83, 136, 0.1);
}

.header-title {
    display: flex;
    align-items: center;
}

.header-title h4 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.header-title h4:before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-right: 10px;
}

.tutor-section,
.emergency-section,
.companion-toggle,
.companion-fields,
.documents-section {
    margin-top: 20px;
}

.tutor-section h5,
.emergency-section h5,
.companion-toggle h5,
.companion-fields h5,
.documents-section h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.doc-group {
    margin-bottom: 20px;
    padding: 18px;
    background-color: rgba(249, 251, 253, 0.8);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Media queries */
@media (max-width: 991px) {
    .wro-dashboard {
        height: 100vh;
    }

    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        height: 100vh;
    }

    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .wro-dashboard {
        flex-direction: column;
        height: 100vh;
        width: 100vw;
    }

    .sidebar {
        width: 100%;
        height: 90px;
        position: relative;
        z-index: 1000;
        flex-shrink: 0;
    }

    .sidebar-header {
        display: flex;
        padding: 15px 20px;
        min-height: 90px;
    }

    .sidebar-header .logo {
        max-width: 160px;
        max-height: 70px;
        filter: brightness(0) invert(1);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 10px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        flex: none;
        max-width: calc(100vw - 200px);
    }

    .nav-item {
        flex-shrink: 0;
        min-width: 80px;
        justify-content: center;
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--secondary-color);
    }

    .nav-item .material-icons {
        margin-right: 0;
        font-size: 20px;
    }

    .nav-item span:not(.material-icons) {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100vw;
        flex: 1;
        height: calc(100vh - 90px);
    }

    .dashboard-sections {
        padding: 20px 15px;
    }

    .teams-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wro-dashboard {
        height: 100vh;
        width: 100vw;
    }

    .sidebar {
        height: 70px;
    }

    .sidebar-header {
        padding: 10px 15px;
        min-height: 70px;
    }

    .sidebar-header .logo {
        max-width: 120px;
        max-height: 50px;
    }

    .sidebar-nav {
        padding: 5px;
        max-width: calc(100vw - 150px);
    }

    .nav-item {
        min-width: 60px;
        padding: 8px;
    }

    .nav-item .material-icons {
        font-size: 18px;
    }

    .main-content {
        height: calc(100vh - 70px);
        width: 100vw;
    }

    .dashboard-sections {
        padding: 15px 10px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

    .user-menu {
        margin-top: 5px;
        padding-right: 20px;
    }

    .section-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-inline button {
        margin-top: 10px;
    }

    .stats-grid,
    .teams-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Toggle Switch mejorado para acompañante */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 15px 0;
    justify-content: center;
    margin: 0 0 0 20px;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    background-color: #cbd5e0;
    border-radius: 26px;
    margin: 0 15px;
    transition: var(--transition);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked+.toggle-label .toggle-slider {
    background-color: var(--secondary-color);
}

.toggle-input:checked+.toggle-label .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-option {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    width: 30px;
    text-align: center;
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para botón deshabilitado */
button.disabled,
.btn-primary.disabled,
.btn-add-student.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    background-color: #888 !important;
    color: #ddd !important;
    border: 1px solid #777 !important;
}

/* Mensaje de error para validación */
.error-message {
    display: block;
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #ff0000;
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    color: #ff0000;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Estilos para botón deshabilitado */
.btn-primary.disabled,
.btn-secondary.disabled,
button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Mensaje de error */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

/* Estilos para el input y el contenedor de opciones */
.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
}

.options-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 150px;
    background: white;
    border: 1px solid #ccc;
    z-index: 1000;
    display: none;
}

.options-container.visible {
    display: block;
}

.options-container .option {
    padding: 8px;
    cursor: pointer;
}

.options-container .option:nth-child(odd) {
    background-color: #f9f9f9;
}

.options-container .option:hover {
    background-color: #f0f0f0;
}

/* Permitir scroll vertical solo en textarea */
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}