/**
 * =============================================
 * PRG.CSS ENTERPRISE v1.0.0
 * =============================================
 * Estilos específicos para el Módulo de Programación
 * Extiende estilos.css global con componentes específicos
 * 
 * @author Chief Enterprise Architect
 * @package GesCorp\Programacion
 * @design Material Design + Fluent Design System
 * =============================================
 */

/* ---------- 1. VARIABLES DEL MÓDULO ---------- */
:root {
    --prg-primary: #6f42c1;
    --prg-primary-light: #8a5cd9;
    --prg-primary-dark: #4a2a8a;
    --prg-success: #28a745;
    --prg-warning: #ffc107;
    --prg-danger: #dc3545;
    --prg-info: #17a2b8;
    
    --prg-shadow-sm: 0 2px 4px rgba(111, 66, 193, 0.1);
    --prg-shadow-md: 0 4px 8px rgba(111, 66, 193, 0.15);
    --prg-shadow-lg: 0 8px 16px rgba(111, 66, 193, 0.2);
    
    --prg-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. CARDS CON EFECTO FLUENT ---------- */
.card-prg {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--prg-transition);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: var(--prg-shadow-sm);
}

.card-prg:hover {
    transform: translateY(-4px);
    box-shadow: var(--prg-shadow-lg);
}

.card-prg .card-header {
    background: linear-gradient(135deg, var(--prg-primary), var(--prg-primary-dark));
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-prg .card-header h3 {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ---------- 3. BOTONES DE DÍAS MEJORADOS ---------- */
.btn-day-toggle {
    position: relative;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--prg-transition);
    overflow: hidden;
}

.btn-day-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-day-toggle:active::before {
    width: 300px;
    height: 300px;
}

.btn-day-toggle.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- 4. INFO BOXES PERSONALIZADOS ---------- */
.info-box-prg {
    border-radius: 12px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: var(--prg-shadow-sm);
    transition: var(--prg-transition);
    border-left: 4px solid var(--prg-primary);
}

.info-box-prg:hover {
    box-shadow: var(--prg-shadow-md);
    transform: scale(1.02);
}

.info-box-prg .info-box-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--prg-primary-light), var(--prg-primary));
    color: white;
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3);
}

/* ---------- 5. TABLA DE PROGRAMACIONES ---------- */
#tablaProgramaciones thead th {
    background: linear-gradient(135deg, var(--prg-primary), var(--prg-primary-dark));
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem 0.75rem;
}

#tablaProgramaciones tbody tr {
    transition: var(--prg-transition);
}

#tablaProgramaciones tbody tr:hover {
    background-color: rgba(111, 66, 193, 0.05);
    transform: scale(1.01);
    box-shadow: var(--prg-shadow-sm);
}

/* ---------- 6. BADGES PERSONALIZADOS ---------- */
.badge-prg {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-prg-estado {
    position: relative;
    padding-left: 1.8rem;
}

.badge-prg-estado::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 2s infinite;
}

/* ---------- 7. ANIMACIONES ESPECÍFICAS ---------- */
@keyframes pulse-prg {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(111, 66, 193, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(111, 66, 193, 0);
    }
}

.pulse-prg {
    animation: pulse-prg 2s infinite;
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

/* ---------- 8. MODAL DE DETALLE ---------- */
.modal-prg-detalle .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.modal-prg-detalle .modal-header {
    background: linear-gradient(135deg, var(--prg-primary), var(--prg-primary-dark));
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-prg-detalle .modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.modal-prg-detalle .modal-footer {
    border-top: 2px solid rgba(111, 66, 193, 0.1);
    padding: 1.5rem;
}

/* ---------- 9. TIMELINE DE SEMANAS ---------- */
.timeline-semana {
    position: relative;
    padding-left: 3rem;
}

.timeline-semana::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--prg-primary), transparent);
}

.timeline-semana-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-semana-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--prg-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--prg-primary);
}

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 768px) {
    .btn-day-toggle {
        min-width: 60px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .info-box-prg {
        padding: 1rem;
    }
    
    .info-box-prg .info-box-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    #tablaProgramaciones thead th {
        font-size: 0.7rem;
        padding: 0.75rem 0.5rem;
    }
}

/* ---------- 11. EFECTOS DE CARGA ---------- */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ---------- 12. TOOLTIPS PERSONALIZADOS ---------- */
.tooltip-prg .tooltip-inner {
    background: linear-gradient(135deg, var(--prg-primary), var(--prg-primary-dark));
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    box-shadow: var(--prg-shadow-md);
}

.tooltip-prg .arrow::before {
    border-top-color: var(--prg-primary-dark);
}

/* ---------- 13. PROGRESS BARS ---------- */
.progress-prg {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-prg-bar {
    background: linear-gradient(90deg, var(--prg-primary-light), var(--prg-primary));
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-prg-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}