/* Estilos para tablas responsivas */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
    background-color: white;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border: none;
}

.table .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

.btn-group .btn {
    border-radius: 4px;
    margin: 0 2px;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table thead th {
        font-size: 0.7rem;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar personalizado */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Cards con hover effect */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Jumbotron personalizado */
.jumbotron {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Botones con efectos */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Formularios */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Input groups */
.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
}

/* Iconos en cards */
.card-body i {
    opacity: 0.8;
}

/* Alertas */
.alert {
    border-radius: 10px;
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Dashboard específico */
.table-borderless td {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Estados de usuario */
.badge {
    border-radius: 15px;
    padding: 0.5rem 1rem;
}

/* Hover effects para botones de dashboard */
.card .btn {
    transition: all 0.2s ease;
}

.card .btn:hover {
    transform: scale(1.05);
}

/* Separadores en estadísticas */
.border-end {
    border-right: 1px solid #dee2e6 !important;
}

@media (max-width: 768px) {
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6 !important;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
}

/* Estilos para purple theme */
.text-purple {
    color: #6f42c1 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

.btn-purple {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-purple:hover {
    background-color: #5a359a;
    border-color: #5a359a;
}

.border-purple {
    border-color: #6f42c1 !important;
}

/* Efectos hover para el botón de usuario en la navbar */
.navbar .nav-link.dropdown-toggle {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

.navbar .nav-link.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.navbar .nav-link.dropdown-toggle:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Efecto de brillo al hacer hover */
.navbar .nav-link.dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
}

.navbar .nav-link.dropdown-toggle:hover::before {
    opacity: 1;
}

/* Estilos para selector múltiple de carreras */
select[multiple] {
    height: auto !important;
    min-height: 150px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem;
}

select[multiple]:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

select[multiple] option {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    cursor: pointer;
}

select[multiple] option:hover {
    background-color: #e9ecef;
}

select[multiple] option:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

/* Estilos para campos de formulario condicionales */
.form-select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animación para mostrar/ocultar campos */
#tipoProfesorDiv, #carreraJefeDiv, #carrerasProfesorDiv {
    transition: all 0.3s ease-in-out;
}
