/* Estilos específicos para estudiantes.html - Replicando vinculados.css */

/* El fondo ahora lo maneja la clase sobrio-body del HTML */

/* Navbar mejorado para estudiantes */
.custom-navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* El título ahora lo maneja la clase sobrio-title del HTML */

/* Modal mejorado con mayor contraste */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.modal-header {
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 25px 30px;
    border: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-body {
    padding: 30px;
    background: #ffffff;
}

.modal-footer {
    padding: 25px 30px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    border: none;
}

/* Cards con diseño sobrio y limpio - fondo blanco */
.card {
    border-radius: 20px !important;
    border: 1px solid #e9ecef !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.formulario-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
}

.card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Card header con estilo sobrio y profesional */
.card-heade {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    padding: 25px 30px !important;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-direction: row !important;
    gap: 8px !important;
}

.card-heade i {
    font-size: 1.2em !important;
    margin: 0 !important;
    color: white !important;
}

/* Card body con fondo completamente blanco */
.card-body {
    background: #00aeef2b !important;
    padding: 40px !important;
    border-radius: 0 0 20px 20px !important;
}

/* Formulario con estilo limpio */
.form-group {
    margin-bottom: 30px;
}

/* Labels con estilo profesional pero limpio */
label {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-bottom: 15px !important;
    margin-top: 20px !important;
    display: flex !important;
    align-items: center !important;
}

label i {
    margin-right: 10px !important;
    color: #0d6efd !important;
    font-size: 1.1em !important;
    width: 20px;
    text-align: center;
}

/* Campos de formulario con estilo limpio */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 15px 18px !important;
    background: #ffffff !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 25px !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
    outline: none !important;
    background: #ffffff !important;
    transform: translateY(-1px);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: #6c757d !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Placeholders más claros */
::placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}

/* Botones principales mejorados */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0056b3) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 18px 45px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
}

.btn-primary:active {
    transform: translateY(-1px) !important;
}

/* Botón de éxito */
.btn-success {
    background: linear-gradient(135deg, #198754, #146c43) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3) !important;
    color: white !important;
}

.btn-success:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #146c43, #0f5132) !important;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.4) !important;
    color: white !important;
}

/* Botón secundario */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3) !important;
    color: white !important;
}

.btn-secondary:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #495057, #343a40) !important;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4) !important;
    color: white !important;
}

/* Alert mejorado */
.alert-info {
    background: linear-gradient(135deg, #cfe2ff, #b6d7ff) !important;
    border: 1px solid #0d6efd !important;
    border-left: 5px solid #0d6efd !important;
    border-radius: 12px !important;
    color: #1a1a1a !important;
    padding: 25px !important;
}

.alert-info a {
    color: #0d6efd !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.alert-info a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Títulos de sección */
.section-title {
    color: #0d6efd !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    margin-bottom: 35px !important;
    margin-top: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #e9ecef !important;
    display: flex !important;
    align-items: center !important;
}

.section-title i {
    font-size: 1.3em !important;
    margin-right: 10px !important;
}

/* Indicador de campo requerido */
.required {
    color: #dc3545 !important;
    font-weight: bold !important;
    margin-left: 4px !important;
}

/* Secciones del formulario */
.form-group.row {
    background: rgba(248, 249, 250, 0.5);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.form-group.row:hover {
    background: rgba(248, 249, 250, 0.8);
    border-color: #ced4da;
}

/* Indicadores de campos opcionales */
.text-muted {
    color: #6c757d !important;
    font-size: 0.85rem;
    font-weight: 400 !important;
}

/* Mejoras responsive */
@media (max-width: 768px) {
    .container h1 {
        font-size: 1.6rem !important;
        padding: 20px !important;
        margin: 20px auto !important;
    }
    
    .card-body {
        padding: 25px !important;
    }
    
    .btn-primary {
        width: 100% !important;
        margin: 15px 0 !important;
        padding: 20px !important;
        font-size: 1.2rem !important;
    }
    
    .modal-dialog {
        margin: 15px !important;
    }
    
    .modal-body, .modal-footer, .modal-header {
        padding: 20px !important;
    }
    
    .form-group.row {
        padding: 20px;
    }
}

/* Animaciones mejoradas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideInUp 0.6s ease-out !important;
}

.container h1 {
    animation: slideInUp 0.4s ease-out !important;
}

/* Mejoras de accesibilidad */
*:focus {
    outline: 3px solid rgba(13, 110, 253, 0.5) !important;
    outline-offset: 2px !important;
}

/* Estados de validación más claros */
.form-control:valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.1) !important;
}

.form-control:invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1) !important;
}

/* Select mejorado */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    appearance: none;
}

/* Indicadores de carga mejorados */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top: 3px solid transparent;
    animation: spin 1s linear infinite;
}

/* Sección de envío */
.submit-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.submit-info {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.submit-info i {
    color: #0d6efd;
}

/* Mejorar el botón de envío */
#submitBtn {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    min-width: 280px;
}

#submitBtn:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

#submitBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Espaciado adicional para las columnas del formulario */
.form-group.row .col-12,
.form-group.row .col-md-6 {
    margin-bottom: 30px !important;
}

/* Espaciado específico entre campos dentro de la misma fila */
.form-group.row .col-md-6:first-of-type {
    padding-right: 20px !important;
}

.form-group.row .col-md-6:last-of-type {
    padding-left: 20px !important;
}
