/* 
 * components.css
 * Estilos para componentes específicos de la interfaz
 * v1.2.0
 * Debe importarse después de styles.css
 */

/* =============================================
   BOTONES DE ACCIÓN RÁPIDA
   ============================================= */

   .quick-actions-container {
    display: flex !important;
    overflow-x: auto;
    gap: 0.6rem !important;
    padding: 8px 4px 0.75rem 4px !important;
    max-width: 100%;
    position: relative; /* Asegura que el z-index funcione correctamente */
    z-index: 10; /* Valor elevado para que esté por encima de otros elementos */
    min-height: 125px !important;
    
    /* Comportamiento de scroll base */
    scroll-behavior: smooth !important;
    scrollbar-width: none; /* Ocultar scrollbar en Firefox por defecto */
    -ms-overflow-style: none; /* Ocultar scrollbar en IE/Edge por defecto */
}

/* Ocultar scrollbar en Webkit (Chrome/Safari) por defecto */
.quick-actions-container::-webkit-scrollbar {
    display: none;
}

/* Aplicar scrollbar personalizada solo en escritorio (>= 1024px) */
@media (min-width: 1024px) {
    /* Habilitar scrollbar en Firefox con estilo fino */
    .quick-actions-container {
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 130, 246, 0.5) rgba(0, 0, 0, 0.05);
    }
    
    /* Estilos Webkit detallados para Chrome/Safari/Edge */
    .quick-actions-container::-webkit-scrollbar {
        display: block;
        height: 6px; /* Altura óptima para control horizontal */
    }
    
    .quick-actions-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 3px;
        margin: 0 12px; /* Margen lateral para evitar colisión con bordes */
    }
    
    .quick-actions-container::-webkit-scrollbar-thumb {
        background: linear-gradient(to right, 
            var(--volume-gradient-start, #3b82f6), 
            var(--volume-gradient-end, #8b5cf6));
        border-radius: 3px;
        border: 0.5px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .quick-actions-container::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to right, 
            var(--volume-gradient-end, #8b5cf6), 
            var(--volume-gradient-start, #3b82f6));
    }
    
    /* Botones de scrollbar (compatibles con algunos navegadores) */
    .quick-actions-container::-webkit-scrollbar-button {
        display: none; /* Simplificación de UI eliminando botones de scroll */
    }
    
    /* Mejorar espacio para scrollbar sin afectar layout */
    .quick-actions-section {
        padding-bottom: 0.75rem;
    }
    
    /* Efectos sutiles de animación solo para escritorio */
    .quick-actions-container {
        scroll-snap-type: x proximity; /* Alineación suave a elementos */
    }
    
    .quick-button {
        scroll-snap-align: start; /* Puntos de anclaje para scroll fluido */
    }
}

/* Optimización para pantallas de alta densidad en escritorio */
@media (min-width: 1024px) and (-webkit-min-device-pixel-ratio: 2), 
       (min-width: 1024px) and (min-resolution: 192dpi) {
    .quick-actions-container::-webkit-scrollbar {
        height: 5px; /* Ligeramente más delgada para pantallas retina */
    }
    
    .quick-actions-container::-webkit-scrollbar-thumb {
        border-radius: 2.5px;
    }
    
    .quick-button-icon svg {
        stroke-width: 1.5 !important;
    }
}

.quick-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 130px !important;
    height: 105px !important;
    padding: 1.15rem 0.85rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    background-color: var(--bg-tertiary) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 3px !important;
}

/* Colores específicos por sección */
.quick-button[data-section-id="rosario"] {
    border-color: var(--rosario-color) !important;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3) !important;
}

.quick-button[data-section-id="entrada"] {
    border-color: var(--entrada-color) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
}

.quick-button[data-section-id="perdon"] {
    border-color: var(--perdon-color) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3) !important;
}

.quick-button[data-section-id="evangelio"] {
    border-color: var(--evangelio-color) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
}

.quick-button[data-section-id="ofertorio"] {
    border-color: var(--ofertorio-color) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

.quick-button[data-section-id="santo"] {
    border-color: var(--santo-color) !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3) !important;
}

.quick-button[data-section-id="paz"] {
    border-color: var(--paz-color) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
}

.quick-button[data-section-id="comunion"] {
    border-color: var(--comunion-color) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) !important;
}

.quick-button[data-section-id="virgen"] {
    border-color: var(--virgen-color) !important;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3) !important;
}

.quick-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.quick-button.active {
    transform: scale(1.03) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    border-width: 2.5px !important;
    font-weight: 500 !important;
    color: white !important;
}

.quick-button.active[data-section-id="rosario"] {
    background: linear-gradient(to right, rgba(156, 39, 176, 0.8), rgba(123, 31, 162, 0.8)) !important;
}

.quick-button.active[data-section-id="entrada"] {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.8), rgba(79, 70, 229, 0.8)) !important;
}

.quick-button.active[data-section-id="perdon"] {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.8), rgba(109, 40, 217, 0.8)) !important;
}

.quick-button.active[data-section-id="evangelio"] {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.8), rgba(234, 88, 12, 0.8)) !important;
}

.quick-button.active[data-section-id="ofertorio"] {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.8), rgba(20, 184, 166, 0.8)) !important;
}

.quick-button.active[data-section-id="santo"] {
    background: linear-gradient(to right, rgba(6, 182, 212, 0.8), rgba(14, 165, 233, 0.8)) !important;
}

.quick-button.active[data-section-id="paz"] {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8)) !important;
}

.quick-button.active[data-section-id="comunion"] {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.8), rgba(185, 28, 28, 0.8)) !important;
}

.quick-button.active[data-section-id="virgen"] {
    background: linear-gradient(to right, rgba(236, 72, 153, 0.8), rgba(192, 38, 211, 0.8)) !important;
}

.quick-button-icon {
    margin-bottom: 0.65rem !important;
    display: flex !important;
    justify-content: center !important;
    height: 26px !important;
    width: 26px !important;
    color: inherit !important;
}

.quick-button-icon svg {
    height: 26px !important;
    width: 26px !important;
    stroke-width: 1.75 !important;
}

.quick-button-title {
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    line-height: 1.25 !important;
    max-width: 100% !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    margin-top: 0.25rem;
    animation: pulse 1.5s infinite;
}

/* Media queries específicos para botones rápidos */
@media (max-width: 768px) {
    .quick-button {
        min-width: 125px !important; /* Ligeramente más compacto en móviles */
        height: 100px !important;
    }
    
    .quick-actions-container {
        gap: 0.5rem !important; /* Espacio reducido para móviles */
    }
}

/* =============================================
   CONTROL DE VOLUMEN
   ============================================= */

.volume-control-container {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(to right, var(--volume-gradient-start), var(--volume-gradient-end));
    color: white;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0.5rem 0; /* Espacio interno mejorado */
}

.volume-button {
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    flex-shrink: 0; /* Evita que el botón se comprima */
}

.volume-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.volume-slider-container {
    flex: 1;
    margin: 0 0.5rem; /* Espacio para separación óptima */
}

.volume-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.8) var(--volume-percentage), 
        rgba(255, 255, 255, 0.2) var(--volume-percentage), 
        rgba(255, 255, 255, 0.2) 100%
    );
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.volume-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* Mantiene el tamaño de los controles de volumen */
}

.volume-control-button {
    padding: 0.75rem 1rem; /* Ajustado para consistencia visual */
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.volume-control-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.volume-display {
    min-width: 4rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .volume-control-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .volume-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

/* =============================================
   PANEL DE CATEGORÍAS
   ============================================= */

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.25rem 0; /* Espacio optimizado */
}

.toggle-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.toggle-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.rotate-down {
    transform: rotate(-90deg);
}

.rotate-up {
    transform: rotate(90deg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem; /* Espacio interno para mejor distribución */
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--bg-secondary); /* Ajustado para mayor contraste con el contenedor */
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-card.configured {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-title {
    font-weight: 600;
}

.song-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.song-info.configured {
    color: var(--primary-color);
}

.categories-minimized {
    display: none;
    padding: 1rem;
    text-align: center;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid var(--border-color);
}

.hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Ajustes responsivos para categorías */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* =============================================
   MODALES
   ============================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    width: 90%;
    max-width: 800px;
    background-color: var(--bg-tertiary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1.25rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* Modal de confirmación */
.confirmation-modal {
    max-width: 450px; /* Tamaño más compacto que el modal estándar */
    animation: modalFadeIn 0.2s ease-out;
}

.confirm-message {
    margin: 1rem 0;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: center;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cancel-button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cancel-button:hover {
    background-color: var(--bg-primary);
}

.confirm-button {
    background-color: var(--red-color);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.confirm-button:hover {
    background-color: rgb(220, 38, 38); /* Un tono más oscuro de rojo */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(239, 68, 68, 0.3);
}

/* =============================================
   LISTA DE CANCIONES
   ============================================= */

.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
    transition: background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.song-item:hover {
    background-color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.song-item-details {
    display: flex;
    flex-direction: column;
}

.song-item-title {
    font-weight: 500;
}

.song-item-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .song-list {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   EDITOR DE PUNTO DE INICIO
   ============================================= */

.start-point-editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.start-point-song-info {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.start-point-editor .player-controls {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.start-point-editor .time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.start-point-editor .progress-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    appearance: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.start-point-editor .progress-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.start-point-editor .progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.start-point-editor .playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.start-point-editor .control-button {
    padding: 0.75rem;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.start-point-editor .control-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.start-point-editor .play-button {
    padding: 1.25rem;
    border-radius: 50%;
    background-color: var(--green-color);
    color: white;
    margin: 0 0.5rem;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.start-point-editor .play-button.playing {
    background-color: var(--red-color);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.start-point-editor .play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}

.start-point-editor .play-button.playing:hover {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.save-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--green-color);
    color: white;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
}

.save-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(34, 197, 94, 0.3);
}

/* =============================================
   REPRODUCTOR DE AUDIO
   ============================================= */

.player-container {
    padding: 0.5rem;
    margin: 0.5rem 0;
}

.current-song-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.song-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    margin-right: 1rem;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.song-title {
    font-weight: 500;
    font-size: 1.125rem;
}

.song-section {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.player-controls {
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    appearance: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.progress-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.control-button {
    padding: 0.75rem;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.play-button {
    padding: 1.25rem;
    border-radius: 50%;
    background-color: var(--green-color);
    color: white;
    margin: 0 0.5rem;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.play-button.playing {
    background-color: var(--red-color);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.play-button.disabled {
    background-color: var(--text-secondary);
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.play-button:not(.disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}

.play-button.playing:not(.disabled):hover {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* Mostrar el reproductor que estaba oculto */
.player-section.hidden {
    display: block !important;
}

/* =============================================
   ELEMENTOS DE NAVEGACIÓN
   ============================================= */

.icon-button {
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--bg-secondary);
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-right: auto; /* Empuja los otros elementos hacia la derecha */
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 0 !important;  /* Elimina margen izquierdo */
    padding-left: 0.5rem !important; /* Reduce el padding izquierdo */
}

.back-button:hover {
    background-color: var(--bg-primary);
    transform: translateX(-2px);
}

.back-button i {
    font-size: 1rem;
}

/* Ajustes para estado de configuración */
.config-mode-active .categories-header {
    position: relative;
    padding-left: 0.75rem !important; /* Reducción significativa */
}

.config-mode-active .categories-header h2 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Ajuste para el botón de reinicio */
#refreshBtn {
    color: var(--text-primary);
    position: relative;
}

#refreshBtn:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.1);
    animation: pulse 1.5s infinite;
}

@media (max-width: 768px) {
    .back-button {
        margin-right: 0.5rem !important; /* Ajusta el espacio entre elementos en móvil */
    }
    
    .config-mode-active .categories-header {
        padding-left: 0.5rem !important; /* Aún menos padding en móvil */
    }
}

/* =============================================
   ESTILOS DE HEADER Y LOGO
   ============================================= */

/* Estilos del logo */
.header-logo {
    width: 200px; /* Ajusta este valor según lo necesites */
    height: auto; /* Mantiene la proporción de la imagen */
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Secundario header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    margin: 0 1rem 1rem 1rem;
}

.app-header .header-title h1 {
    font-size: 1.1rem;
    margin-left: 0.5rem;
}