/**
 * LHC Styles - Estilos específicos para la aplicación LHC
 */

/* ========================================
   ESTILOS LHC ORIGINALES
   ======================================== */

/* Estilos específicos para la aplicación LHC */
.lhc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.lhc-stats {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.lhc-experiment-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.lhc-experiment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.lhc-particle-track {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50px;
    height: 4px;
    margin: 1rem 0;
    animation: particle-flow 3s infinite;
}

@keyframes particle-flow {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.lhc-detector {
    background: radial-gradient(circle, #2c3e50, #34495e);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
}

.lhc-energy-meter {
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    height: 10px;
    border-radius: 5px;
    margin: 1rem 0;
}

.lhc-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 5px;
}

.lhc-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.lhc-discovery-timeline {
    border-left: 4px solid #667eea;
    padding-left: 2rem;
}

.lhc-discovery-item {
    position: relative;
    padding-bottom: 2rem;
}

.lhc-discovery-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

.lhc-collision-visual {
    background: radial-gradient(circle, #ffeb3b, #ff9800, #f44336);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    animation: collision-pulse 2s infinite;
}

@keyframes collision-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.lhc-temperature-gauge {
    background: linear-gradient(180deg, #2196f3, #00bcd4);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.lhc-beam-line {
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    height: 2px;
    width: 100%;
    margin: 0.5rem 0;
    animation: beam-flow 2s infinite;
}

@keyframes beam-flow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Estilos para las tarjetas de estadísticas */
.lhc-stat-card {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.lhc-stat-card:hover {
    transform: translateY(-3px);
}

.lhc-stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.lhc-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   ESTILOS CACHE STATS
   ======================================== */

/* Estilos específicos para la página de estadísticas de caché */
.stats-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stats-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Estilos para la barra de progreso de cache */
.progress {
    background-color: #e9ecef;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: width 0.6s ease;
    font-weight: 600;
    font-size: 0.875rem;
}

.progress-bar.bg-info {
    background: linear-gradient(90deg, #17a2b8 0%, #138496 100%);
}

/* Estilos para tablas de cache stats */
.table td {
    border-top: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: middle;
}

.table td:first-child {
    font-weight: 600;
    width: 40%;
}

.table td code {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #e83e8c;
}

/* Animación pulse para cache stats */
@keyframes cache-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.stats-card.pulse {
    animation: cache-pulse 2s infinite;
}

/* ========================================
   ESTILOS ESPECÍFICOS PARA LHC
   ======================================== */

/* Estilos de contenedores específicos de LHC - Ahora no se usan en los templates */
/* 
.lhc-main-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.lhc-content .container {
    margin-top: 1rem;
    padding-top: 0;
}
*/

/* Estilos para los controles de video - Conservando el diseño original */
.video-controls-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 1.25rem;
    margin-top: 1rem;
}

.video-controls-panel:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Botones de video con estilos específicos para LHC */
.lhc-video-controls .btn-group .btn {
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.lhc-video-controls .btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lhc-video-controls .btn-group .btn:active {
    transform: translateY(0);
}

.lhc-video-controls .btn-group .btn i {
    margin-right: 0.5rem;
}

/* Estilos específicos para botones de video LHC solamente */
.lhc-video-controls .btn-success { background-color: #28a745; border-color: #28a745; }
.lhc-video-controls .btn-success:hover { background-color: #218838; border-color: #1e7e34; }

.lhc-video-controls .btn-warning { background-color: #ffc107; border-color: #ffc107; color: #212529; }
.lhc-video-controls .btn-warning:hover { background-color: #e0a800; border-color: #d39e00; }

.lhc-video-controls .btn-danger { background-color: #dc3545; border-color: #dc3545; }
.lhc-video-controls .btn-danger:hover { background-color: #c82333; border-color: #bd2130; }

.lhc-video-controls .btn-secondary { background-color: #6c757d; border-color: #6c757d; }
.lhc-video-controls .btn-secondary:hover { background-color: #5a6268; border-color: #545b62; }

.lhc-video-controls .btn-outline-primary { 
    color: #007bff; 
    border-color: #007bff; 
    background-color: transparent;
}
.lhc-video-controls .btn-outline-primary:hover { 
    color: #ffffff; 
    background-color: #007bff; 
    border-color: #007bff; 
}

/* Controles de volumen con diseño original */
.volume-controls {
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-section {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#volumeDisplay {
    min-width: 50px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.time-display {
    background: rgba(108, 117, 125, 0.15);
    border-radius: 20px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.video-controls-panel .btn-group {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Estilos para la barra de progreso del video */
.video-progress, .form-range {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    border: none;
}

.video-progress:hover, .form-range:hover {
    height: 10px;
    background-color: #dee2e6;
}

.video-progress::-webkit-slider-thumb, .form-range::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.video-progress::-webkit-slider-thumb:hover, .form-range::-webkit-slider-thumb:hover {
    width: 18px;
    height: 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.video-progress::-moz-range-thumb, .form-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.video-progress::-moz-range-thumb:hover, .form-range::-moz-range-thumb:hover {
    width: 18px;
    height: 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Mejorar el estilo del slider de volumen específicamente */
.form-range-sm {
    height: 6px;
}

.form-range-sm::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.form-range-sm::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

/* Estilos para el control de volumen */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    outline: none;
    transition: background-color 0.2s ease;
}

.volume-slider:hover {
    background-color: #dee2e6;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Estilos para las tarjetas de información */
.info-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.info-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.info-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.info-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Estilos para los botones de navegación */
.navigation-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.navigation-controls .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.event-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.event-selector .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 2rem;
}

/* Estilos para los botones de descarga */
.download-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.download-controls .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.download-controls .btn i {
    margin-right: 0.25rem;
}

/* Estilos para los mensajes de descarga */
#downloadMessage {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    font-size: 14px;
    font-weight: bold;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para placeholders */
.placeholder-container {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 2px dashed #dee2e6;
}

.placeholder-container i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.placeholder-container h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.placeholder-container p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Estilos para el loader */
.video-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.video-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.video-loader p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .video-controls-panel {
        padding: 1rem;
    }
    
    .video-controls-panel .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .video-controls-panel .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    
    .navigation-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .event-selector {
        justify-content: center;
    }
    
    .download-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .download-controls .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #downloadMessage {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Estilos para el dark mode (opcional, para futuras mejoras) */
@media (prefers-color-scheme: dark) {
    .video-controls-panel {
        background-color: #343a40;
        border-color: #495057;
        color: #fff;
    }
    
    .info-card {
        background-color: #343a40;
        border-color: #495057;
        color: #fff;
    }
    
    .info-card .card-header {
        background-color: #495057;
        border-color: #6c757d;
        color: #fff;
    }
    
    .placeholder-container {
        background-color: #343a40;
        border-color: #495057;
        color: #fff;
    }
    
    .video-loader {
        background-color: #343a40;
        border-color: #495057;
        color: #fff;
    }
}
