students.css

/**
 * Working English System - Módulo de Estudiantes CSS
 * 
 * @package WorkingEnglishSystem
 * @subpackage Modules/Students/Assets
 * @version 1.0.0
 */

/* ==========================================================================
   Contenedor principal del módulo de estudiantes
   ========================================================================== */

.wes-students-module {
    min-height: 100vh;
    background: #f8fafc;
}

/* ==========================================================================
   Estadísticas rápidas
   ========================================================================== */

.wes-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wes-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wes-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wes-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.wes-stat-icon.wes-stat-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wes-stat-icon.wes-stat-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wes-stat-icon.wes-stat-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wes-stat-icon.wes-stat-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.wes-stat-content {
    flex: 1;
}

.wes-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

.wes-stat-label {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Filtros y búsqueda
   ========================================================================== */

.wes-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.wes-filter-group {
    display: flex;
    flex-direction: column;
}

.wes-filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.wes-search-box {
    position: relative;
}

.wes-search-box .wes-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.wes-search-box input {
    padding-right: 2.5rem;
}

/* ==========================================================================
   Tabla de estudiantes
   ========================================================================== */

.wes-table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wes-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.wes-table th {
    background: #f9fafb;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.wes-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.wes-table tbody tr:hover {
    background: #f9fafb;
}

.wes-table tbody tr:last-child td {
    border-bottom: none;
}

/* Información del estudiante */
.wes-student-info {
    display: flex;
    flex-direction: column;
}

.wes-student-name {
    font-weight: 600;
    color: #1f2937;
}

.wes-student-id {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

/* Badges de estado y nivel */
.wes-status-badge, .wes-level-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.wes-status-badge.wes-status-success,
.wes-level-badge.wes-level-success {
    background: #dcfce7;
    color: #166534;
}

.wes-status-badge.wes-status-warning,
.wes-level-badge.wes-level-warning {
    background: #fef3c7;
    color: #92400e;
}

.wes-status-badge.wes-status-danger,
.wes-level-badge.wes-level-danger {
    background: #fee2e2;
    color: #991b1b;
}

.wes-status-badge.wes-status-info,
.wes-level-badge.wes-level-info {
    background: #dbeafe;
    color: #1e40af;
}

.wes-status-badge.wes-status-secondary,
.wes-level-badge.wes-level-secondary {
    background: #f3f4f6;
    color: #374151;
}

.wes-status-badge.wes-status-primary,
.wes-level-badge.wes-level-primary {
    background: #e0e7ff;
    color: #3730a3;
}

.wes-level-badge.wes-level-dark {
    background: #1f2937;
    color: #f9fafb;
}

/* Contador de inscripciones */
.wes-enrollments-count {
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Fecha */
.wes-date {
    color: #6b7280;
    font-size: 0.8125rem;
}

/* Botones de acción */
.wes-action-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.wes-action-buttons .wes-btn {
    padding: 0.375rem;
    min-width: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wes-action-buttons .wes-btn i {
    font-size: 0.75rem;
}

/* ==========================================================================
   Paginación
   ========================================================================== */

.wes-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.wes-pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.wes-pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wes-pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wes-pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.wes-pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.wes-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wes-pagination-dots {
    color: #9ca3af;
    padding: 0 0.25rem;
}

/* ==========================================================================
   Modal de estudiante
   ========================================================================== */

.wes-modal-large {
    max-width: 800px;
    width: 90vw;
}

/* Tabs del modal */
.wes-tabs {
    width: 100%;
}

.wes-tab-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.wes-tab-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wes-tab-btn:hover {
    color: #374151;
    background: #f9fafb;
}

.wes-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: none;
}

.wes-tab-content {
    display: none;
}

.wes-tab-content.active {
    display: block;
}

/* Formulario del estudiante */
.wes-form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wes-col-6 {
    grid-column: span 6;
}

@media (min-width: 768px) {
    .wes-form-row {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .wes-col-6 {
        grid-column: span 6;
    }
}

.wes-form-group {
    margin-bottom: 1rem;
}

.wes-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.wes-form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.wes-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wes-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wes-form-control.wes-form-control-sm {
    padding: 0.5rem;
    font-size: 0.8125rem;
    width: auto;
    min-width: 120px;
}

.wes-form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.wes-form-error-field {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.wes-form-help {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Cajas de información */
.wes-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.wes-info-box i {
    color: #3b82f6;
    margin-top: 0.125rem;
}

.wes-info-box p {
    margin: 0;
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.wes-warning-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wes-warning-box i {
    color: #f59e0b;
    margin-top: 0.125rem;
}

.wes-warning-box p {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.wes-warning-box .wes-small-text {
    font-size: 0.75rem;
    color: #a16207;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Modal de detalles del estudiante
   ========================================================================== */

.wes-student-details {
    max-width: 100%;
}

.wes-details-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.wes-student-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.wes-student-basic h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.wes-student-basic .wes-student-id {
    margin-bottom: 0.75rem;
}

.wes-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wes-details-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .wes-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wes-detail-section.wes-full-width {
        grid-column: 1 / -1;
    }
}

.wes-detail-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.25rem;
}

.wes-detail-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wes-detail-section h4 i {
    color: #6b7280;
}

.wes-detail-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wes-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wes-detail-item label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.wes-detail-item span {
    color: #1f2937;
    font-size: 0.875rem;
}

.wes-detail-item a {
    color: #3b82f6;
    text-decoration: none;
}

.wes-detail-item a:hover {
    text-decoration: underline;
}

.wes-notes-content {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.wes-notes-content p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ==========================================================================
   Estados de carga y vacío
   ========================================================================== */

.wes-loading-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.wes-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wes-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}

.wes-empty-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.wes-empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.25rem;
}

.wes-empty-state p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
}

.wes-error-state {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
}

/* ==========================================================================
   Responsividad
   ========================================================================== */

@media (max-width: 768px) {
    .wes-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wes-stat-card {
        padding: 1rem;
    }
    
    .wes-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .wes-stat-number {
        font-size: 1.5rem;
    }
    
    .wes-filters-row {
        grid-template-columns: 1fr;
    }
    
    .wes-table-responsive {
        font-size: 0.75rem;
    }
    
    .wes-table th,
    .wes-table td {
        padding: 0.5rem 0.375rem;
    }
    
    .wes-action-buttons .wes-btn {
        width: 28px;
        height: 28px;
        padding: 0.25rem;
    }
    
    .wes-pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .wes-tab-nav {
        flex-wrap: wrap;
    }
    
    .wes-tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .wes-modal-large {
        width: 95vw;
        margin: 2.5vh auto;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .wes-details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .wes-student-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .wes-page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wes-header-right {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .wes-header-right .wes-btn {
        flex: 1;
        font-size: 0.875rem;
    }
    
    /* Ocultar algunas columnas en móviles muy pequeños */
    .wes-table th:nth-child(5),
    .wes-table td:nth-child(5),
    .wes-table th:nth-child(8),
    .wes-table td:nth-child(8),
    .wes-table th:nth-child(9),
    .wes-table td:nth-child(9) {
        display: none;
    }
}

/* ==========================================================================
   Animaciones y transiciones
   ========================================================================== */

.wes-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wes-modal-content {
    transition: transform 0.3s ease;
    transform: scale(0.95) translateY(-20px);
}

.wes-modal-active .wes-modal-content {
    transform: scale(1) translateY(0);
}

.wes-table tbody tr {
    transition: background-color 0.2s ease;
}

.wes-btn {
    transition: all 0.2s ease;
}

.wes-form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ==========================================================================
   Utilidades específicas del módulo
   ========================================================================== */

.wes-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.wes-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wes-nowrap {
    white-space: nowrap;
}

/* Estados especiales para la tabla */
.wes-table tbody tr[data-student-status="suspended"] {
    background-color: #fef3c7;
}

.wes-table tbody tr[data-student-status="inactive"] {
    opacity: 0.7;
}

/* Mejoras para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .wes-spinner {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus visible para navegación por teclado */
.wes-btn:focus-visible,
.wes-form-control:focus-visible,
.wes-tab-btn:focus-visible,
.wes-pagination-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .wes-header-right,
    .wes-action-buttons,
    .wes-pagination-container {
        display: none !important;
    }
    
    .wes-table {
        font-size: 0.75rem;
    }
    
    .wes-modal {
        position: static !important;
        background: none !important;
    }
}