/**
 * Estilos para Shortcode de Reportes de Conducta
 * Archivo: assets/css/reportes-conducta-shortcode.css
 */

/* Container principal */
.escolares-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.escolares-container h3 {
    color: #2c5282;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Sección de búsqueda */
.alumno-search-section {
    margin-bottom: 25px;
}

.alumno-search-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2d3748;
}

.search-input-container {
    position: relative;
}

.alumno-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.alumno-search-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Resultados de búsqueda */
.alumno-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alumno-result {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s ease;
}

.alumno-result:hover {
    background-color: #f7fafc;
}

.alumno-result:last-child {
    border-bottom: none;
}

.alumno-result .alumno-foto {
    width: 15%;
    margin-right: 15px;
}

.alumno-result .alumno-foto img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.alumno-result .alumno-datos {
    width: 75%;
}

.alumno-result .alumno-nombre {
    font-weight: bold;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 4px;
}

.alumno-result .alumno-grupo {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 4px;
}

.alumno-result .alumno-acumulado {
    color: #718096;
    font-size: 13px;
    font-style: italic;
}

.loading, .error, .no-results {
    padding: 16px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

.error {
    color: #e53e3e;
    background-color: #fed7d7;
}

/* Información del alumno seleccionado */
.alumno-info-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.alumno-info-section h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 18px;
}

.alumno-info-card {
    display: flex;
    align-items: flex-start;
}

.alumno-info-card .alumno-foto {
    width: 15%;
    margin-right: 20px;
}

.alumno-info-card .alumno-foto img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.alumno-info-card .alumno-datos {
    width: 75%;
}

.alumno-info-card .alumno-nombre {
    font-size: 20px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 8px;
}

.alumno-info-card .alumno-grupo {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 8px;
}

.alumno-info-card .alumno-acumulado {
    font-size: 14px;
    color: #718096;
    padding: 8px 12px;
    background-color: #edf2f7;
    border-radius: 6px;
    border-left: 4px solid #4299e1;
}

/* Información del profesor */
.profesor-info-section {
    margin-bottom: 25px;
    padding: 15px 20px;
    background-color: #e6fffa;
    border-radius: 6px;
    border-left: 4px solid #38b2ac;
}

.profesor-nombre {
    color: #2d3748;
    font-size: 16px;
}

/* Selección de causa */
.causa-selection-section {
    margin-bottom: 25px;
}

.causa-selection-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2d3748;
}

.causa-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.causa-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Campos para "Otro" */
.causa-otro-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.campo-grupo {
    margin-bottom: 15px;
}

.campo-grupo:last-child {
    margin-bottom: 0;
}

.campo-grupo label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 14px;
}

.campo-grupo input[type="text"],
.campo-grupo textarea,
.campo-grupo select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.campo-grupo textarea {
    resize: vertical;
    min-height: 80px;
}

.campo-grupo input[type="text"]:focus,
.campo-grupo textarea:focus,
.campo-grupo select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
}

/* Botón de acción */
.action-section {
    margin-bottom: 20px;
    text-align: center;
}

.btn-generar-reporte {
    background-color: #38a169;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.btn-generar-reporte:hover:not(:disabled) {
    background-color: #2f855a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.btn-generar-reporte:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mensajes */
.mensaje-resultado {
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
}

.mensaje-resultado.success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.mensaje-resultado.error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Error general */
.escolares-error {
    padding: 20px;
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .escolares-container {
        margin: 10px;
        padding: 15px;
    }
    
    .alumno-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .alumno-info-card .alumno-foto,
    .alumno-info-card .alumno-datos {
        width: 100%;
    }
    
    .alumno-info-card .alumno-foto {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .alumno-result {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .alumno-result .alumno-foto,
    .alumno-result .alumno-datos {
        width: 100%;
    }
    
    .alumno-result .alumno-foto {
        margin-right: 0;
        margin-bottom: 10px;
    }
}