﻿/* Variables para colores consistentes en toda la aplicación */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

/* Mejorar apariencia general */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

    .card:hover {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    }

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

    .card-header h3 {
        margin-bottom: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #495057;
    }

/* Estilos para los botones de acción en la tabla */
.accion-editar {
    background-color: #17a2b8;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

    .accion-editar:hover {
        background-color: #138496;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

.accion-borrar {
    background-color: #ff9800;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

    .accion-borrar:hover {
        background-color: #e08600;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

/* Estilos para los diferentes estados de matrícula */
.estado-badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.estado-activo {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.estado-baja {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.estado-traslado {
    background-color: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}

.estado-pendiente {
    background-color: rgba(243, 156, 18, 0.15);
    color: #d35400;
}

/* Animaciones */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-hover tbody tr {
    transition: all 0.2s ease;
}

    .table-hover tbody tr:hover {
        transform: scale(1.005);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        z-index: 1;
        position: relative;
    }

/* Paginación mejorada */
.paginador {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.btn-add-alumno {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px;
    transition: all 0.3s ease;
    background-color: #2ecc71;
    border: none;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
    color: white;
}

    .btn-add-alumno:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(46, 204, 113, 0.3);
        background-color: #27ae60;
    }

    .btn-add-alumno:active {
        transform: translateY(0);
    }

    .btn-add-alumno:before {
        content: "+";
        margin-right: 8px;
        font-weight: bold;
        font-size: 18px;
    }
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.loading-content {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
