/**
 * Estilos Premium para la interfaz Frontend del Sistema de Asistencia
 *
 * @package SistemaAsistenciaWP
 */

/* Contenedor Principal */
.sas-wp-frontend-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2c3338;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Encabezado y Navbar */
.sas-wp-frontend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.sas-wp-frontend-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #1d2327;
}

.sas-wp-frontend-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sas-wp-frontend-user-info span {
    font-size: 14px;
    color: #646970;
}

/* Botones Premium */
.sas-wp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.sas-wp-btn-primary {
    background: #0025E6;
    color: #ffffff;
}

.sas-wp-btn-primary:hover {
    background: #001BB3;
    transform: translateY(-1px);
}

.sas-wp-btn-secondary {
    background: #f6f7f7;
    color: #0025E6;
    border: 1px solid #dcdcde;
}

.sas-wp-btn-secondary:hover {
    background: #f0f0f1;
    border-color: #001BB3;
    color: #001BB3;
}

.sas-wp-btn-danger {
    background: #d94f4f;
    color: #ffffff;
}

.sas-wp-btn-danger:hover {
    background: #b32d2d;
    transform: translateY(-1px);
}

.sas-wp-btn-link {
    background: transparent;
    color: #d94f4f;
    padding: 0;
    font-size: 14px;
    text-decoration: none;
}

.sas-wp-btn-link:hover {
    text-decoration: underline;
}

.sas-wp-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Alertas y Notificaciones */
.sas-wp-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border-left: 5px solid;
}

.sas-wp-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left-color: #34d399;
}

.sas-wp-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #f87171;
}

.sas-wp-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #60a5fa;
}

/* Formulario de Login Premium */
.sas-wp-login-card {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f2f5;
}

.sas-wp-login-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    color: #1d2327;
}

.sas-wp-login-card p.subtitle {
    text-align: center;
    color: #646970;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 30px;
}

.sas-wp-form-group {
    margin-bottom: 20px;
}

.sas-wp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #3c434a;
}

.sas-wp-form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fcfcfc;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.sas-wp-form-control:focus {
    outline: none;
    border-color: #0025E6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 37, 230, 0.15);
}

/* Tablas Modernas y Responsivas */
.sas-wp-table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.sas-wp-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.sas-wp-frontend-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #3c434a;
    padding: 14px 16px;
    border-bottom: 2px solid #e0e0e0;
}

.sas-wp-frontend-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.sas-wp-frontend-table tbody tr:hover {
    background: #f9fbfd;
}

/* Tarjetas Informativas / Secciones */
.sas-wp-card {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.sas-wp-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.sas-wp-card hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

/* selectores de asistencia */
.sas-wp-asistencia-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sas-wp-asistencia-label {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

.sas-wp-asistencia-label input[type="radio"] {
    margin-right: 5px;
}

/* Opciones de justificado y inputs */
.sas-wp-comentario-input {
    width: 100%;
    max-width: 250px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

/* Responsividad para móviles en tablas de alumnos */
@media (max-width: 768px) {
    .sas-wp-frontend-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sas-wp-frontend-table thead {
        display: none;
    }
    
    .sas-wp-frontend-table tr {
        display: block;
        border-bottom: 2px solid #ddd;
        padding: 10px 0;
    }
    
    .sas-wp-frontend-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 8px 16px;
    }
    
    .sas-wp-frontend-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        color: #646970;
    }

    .sas-wp-asistencia-radios {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
        width: 100%;
    }
}
