/**
 * Estilos para Sistema de Gestión de Clases y Horas Trabajadas
 */

/* ============================================
   CARDS DE CLASES
============================================ */
.clase-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.clase-card.activa {
    border-left: 5px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.clase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.clase-card h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.clase-info p {
    margin: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.clase-info i {
    width: 20px;
    margin-right: 8px;
    color: #667eea;
}

/* ============================================
   CLASES ACTIVAS
============================================ */
.clase-activa-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    animation: slideInUp 0.5s ease;
}

.clase-activa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.clase-activa-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.clase-activa-info {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.clase-activa-info p {
    margin: 10px 0;
    font-size: 15px;
}

.clase-activa-info i {
    margin-right: 10px;
}

/* ============================================
   TIMER EN VIVO
============================================ */
.timer {
    background: white;
    color: #667eea;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timer div {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    animation: pulseNumbers 2s ease-in-out infinite;
}

.timer p {
    margin-top: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #667eea;
}

@keyframes pulseNumbers {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ============================================
   BADGES Y ESTADOS
============================================ */
.badge.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.badge-success {
    background-color: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-secondary {
    background-color: #6b7280;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* ============================================
   GRID DE CLASES HOY (Coordinador)
============================================ */
.clases-hoy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.clase-hoy-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.clase-hoy-card.activa {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.clase-hoy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.clase-hoy-header h4 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.clase-hoy-info {
    margin: 15px 0;
}

.clase-hoy-info p {
    margin: 10px 0;
    font-size: 14px;
    color: #6b7280;
}

.clase-hoy-acciones {
    margin-top: 15px;
}

/* ============================================
   FORMULARIO DE CREACIÓN DE CLASES
============================================ */
.form-clases {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.form-clases label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.form-clases input,
.form-clases select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-clases input:focus,
.form-clases select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============================================
   BOTONES
============================================ */
.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.btn-success {
    background: #10b981;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: #ef4444;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: #f59e0b;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #d97706;
}

/* ============================================
   EMPTY STATE
============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
}

/* ============================================
   ANIMACIONES
============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .clases-hoy-grid {
        grid-template-columns: 1fr;
    }
    
    .clase-activa-header {
        flex-direction: column;
        text-align: center;
    }
    
    .clase-activa-header h3 {
        margin-bottom: 10px;
    }
    
    .timer div {
        font-size: 24px;
    }
}
