/* ==========================================
   🎨 POMODORO TIMER AESTHETIC CSS
   Creado por Gabchan con amor 💜
   ========================================== */

/* 🔧 Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS para cambios dinámicos */
:root {
    /* Colores modo trabajo */
    --work-primary: #ff6b6b;
    --work-secondary: #ff8e8e;
    --work-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Colores modo descanso - CORREGIDOS */
    --break-primary: #81c784;
    --break-secondary: #66bb6a;
    --break-bg: linear-gradient(135deg, #2c5364 0%, #203a43 100%);
    
    /* Colores modo descanso largo */
    --long-break-primary: #9575cd;
    --long-break-secondary: #7e57c2;
    --long-break-bg: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    
    /* Colores neutros */
    --white: #ffffff;
    --white-soft: #f8fafc;
    --dark-text: #2d3748;
    --dark-text-light: #4a5568;
    --break-text: #e2e8f0; /* Texto claro para fondo oscuro del break */
    --break-text-secondary: #cbd5e0;
    --black: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-break: rgba(255, 255, 255, 0.08); /* Más sutil para fondo oscuro */
    
    /* Espaciados */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* Contenedor principal */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    background: var(--work-bg); /* Por defecto empieza en modo trabajo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-slow); /* Transición suave al cambiar modos */
    padding: var(--spacing-md);
}

/* Clases para cambiar modos */
.container.break-mode {
    background: var(--break-bg);
}

.container.long-break-mode {
    background: var(--long-break-bg);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px); /* Efecto cristal */
    background: var(--glass);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px var(--shadow);
}

.title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px var(--shadow);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    margin-bottom: 1rem;
}

/* Indicador de ciclo */
.cycle-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cycle-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.dot.completed {
    background: var(--work-primary);
}

.cycle-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Estilos para diferentes modos en header */
.container.break-mode .header {
    background: var(--glass-break);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.container.break-mode .title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--break-text);
}

.container.break-mode .subtitle {
    color: var(--break-text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.container.break-mode .dot.active {
    background: var(--break-primary);
}

.container.break-mode .cycle-text {
    color: var(--break-text-secondary);
}

/* Contenedor del timer circular */
.timer-container {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.progress-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG del círculo de progreso */
.progress-svg {
    transform: rotate(-90deg); /* Empezamos desde arriba */
    filter: drop-shadow(0 4px 8px var(--shadow));
}

.progress-circle {
    stroke-dasharray: 879.64; /* Circunferencia del círculo (2 * π * radio) */
    stroke-dashoffset: 879.64; /* Empieza completamente vacío */
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
    stroke: var(--work-primary); /* Color inicial */
}

/* Clase para modo descanso */
.container.break-mode .progress-circle {
    stroke: var(--break-primary);
}

.container.long-break-mode .progress-circle {
    stroke: var(--long-break-primary);
}

/* Contenido dentro del círculo */
.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
}

.time-display {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.session-counter {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

/* Timer en modo descanso */
.container.break-mode .time-display {
    color: var(--break-text);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.container.break-mode .session-counter {
    color: var(--break-text-secondary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.container.long-break-mode .time-display {
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.container.long-break-mode .session-counter {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Controles */
.controls {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.control-btn {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.control-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.control-btn:active {
    transform: translateY(0);
}

/* Botones en modo descanso */
.container.break-mode .control-btn {
    background: var(--glass-break);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--break-text);
}

.container.break-mode .control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Panel de estadísticas */
.stats-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    color: var(--white);
    overflow-y: auto;
}

.stats-panel.active {
    right: 0;
}

.container.break-mode .stats-panel {
    background: rgba(44, 83, 100, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--break-text);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.stats-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stats-content {
    padding: var(--spacing-md);
}

.stats-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stats-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 60px;
    text-align: center;
}

.stats-number {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Progreso semanal */
.weekly-progress {
    margin-top: 2rem;
}

.weekly-progress h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.progress-bars {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.day-label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.progress-bar {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--work-primary);
    transition: height 0.5s ease;
    border-radius: 4px;
    height: 0%;
}

.container.break-mode .progress-fill {
    background: var(--break-primary);
}

.day-count {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Tarjeta de motivación */
.motivation-card {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 142, 142, 0.2));
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.container.break-mode .motivation-card {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.2), rgba(102, 187, 106, 0.2));
    border-color: rgba(129, 199, 132, 0.3);
}

.motivation-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Panel de configuración */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: var(--transition);
    opacity: 0;
    color: var(--white);
    z-index: 1001;
    overflow-y: auto;
}

.settings-panel.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.container.break-mode .settings-panel {
    background: rgba(44, 83, 100, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--break-text);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
}

.settings-header h3 {
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-content {
    padding: var(--spacing-md);
}

.setting-item {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.setting-item label {
    font-weight: 500;
    flex: 1;
}

.setting-item input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
}

.setting-item input[type="number"]:focus {
    outline: none;
    border-color: var(--work-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
}

.container.break-mode .setting-item input[type="number"]:focus {
    border-color: var(--break-primary);
    box-shadow: 0 0 0 2px rgba(129, 199, 132, 0.3);
}

/* Select personalizado */
.sound-select {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    min-width: 150px;
    cursor: pointer;
}

.sound-select:focus {
    outline: none;
    border-color: var(--work-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
}

.container.break-mode .sound-select {
    color: var(--break-text);
}

.container.break-mode .sound-select:focus {
    border-color: var(--break-primary);
    box-shadow: 0 0 0 2px rgba(129, 199, 132, 0.3);
}

/* Opciones del dropdown - Fondo oscuro para legibilidad */
.sound-select option {
    background: #2d3748; /* Fondo oscuro sólido */
    color: #ffffff; /* Texto blanco para contraste */
    padding: 0.5rem;
    border: none;
}

.sound-select option:hover {
    background: #4a5568; /* Fondo más claro al hacer hover */
    color: #ffffff;
}

.sound-select option:checked {
    background: var(--work-primary); /* Color primario para seleccionado */
    color: #ffffff;
}

/* 🌙 Variaciones para modo descanso */
.container.break-mode .sound-select option:checked {
    background: var(--break-primary);
    color: #ffffff;
}

.container.long-break-mode .sound-select option:checked {
    background: var(--long-break-primary);
    color: #ffffff;
}

/* Slider de volumen */
.volume-slider {
    flex: 1;
    margin: 0 1rem;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--work-primary);
    cursor: pointer;
    transition: var(--transition);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.container.break-mode .volume-slider::-webkit-slider-thumb {
    background: var(--break-primary);
}

.volume-value {
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

/* Checkbox personalizado */
.setting-item input[type="checkbox"] {
    appearance: none;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.setting-item input[type="checkbox"]:checked {
    background: var(--work-primary);
}

.container.break-mode .setting-item input[type="checkbox"]:checked {
    background: var(--break-primary);
}

.setting-item input[type="checkbox"]:before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.setting-item input[type="checkbox"]:checked:before {
    transform: translateX(25px);
}

.checkbox-label {
    margin-left: 1rem;
}

.save-settings-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--work-primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: var(--spacing-md);
}

.save-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.container.break-mode .save-settings-btn {
    background: var(--break-primary);
    color: var(--white);
}

.container.break-mode .save-settings-btn:hover {
    box-shadow: 0 4px 15px rgba(129, 199, 132, 0.4);
}

/* Footer */
.footer {
    position: fixed;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Footer en modo descanso */
.container.break-mode .footer {
    background: var(--glass-break);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--break-text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .timer-content .time-display {
        font-size: 3rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .progress-svg {
        width: 250px;
        height: 250px;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .settings-panel {
        width: 95%;
        max-width: none;
        margin: var(--spacing-sm);
    }
    
    .stats-panel {
        width: 100%;
        right: -100%;
    }
    
    .stats-panel.active {
        right: 0;
    }
    
    .container {
        padding: var(--spacing-sm);
    }
    
    .controls {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .progress-svg {
        width: 200px;
        height: 200px;
    }
    
    .timer-content .time-display {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .controls {
        gap: var(--spacing-sm);
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .progress-bars {
        gap: 0.3rem;
    }
    
    .progress-bar {
        height: 60px;
    }
    
    .cycle-dots {
        gap: 0.3rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Modal de transición */
.transition-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.transition-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
    color: var(--white);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.transition-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Estilos específicos por modo */
.container.break-mode .modal-content {
    background: rgba(44, 83, 100, 0.95);
    color: var(--break-text);
}

.container.long-break-mode .modal-content {
    background: rgba(74, 20, 140, 0.95);
    color: var(--white);
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.completion-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    opacity: 0.9;
}

.time-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.completed-time, .next-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.next-session {
    margin-bottom: 0;
}

.time-label, .next-label {
    font-weight: 400;
    opacity: 0.8;
}

.time-value, .next-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.time-value {
    color: var(--work-primary);
}

.container.break-mode .time-value {
    color: var(--break-primary);
}

.container.long-break-mode .time-value {
    color: var(--long-break-primary);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
}

.primary-btn {
    background: var(--work-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.container.break-mode .primary-btn {
    background: var(--break-primary);
    box-shadow: 0 4px 15px rgba(129, 199, 132, 0.4);
}

.container.break-mode .primary-btn:hover {
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.5);
}

.container.long-break-mode .primary-btn {
    background: var(--long-break-primary);
    box-shadow: 0 4px 15px rgba(149, 117, 205, 0.4);
}

.container.long-break-mode .primary-btn:hover {
    box-shadow: 0 6px 20px rgba(149, 117, 205, 0.5);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tertiary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tertiary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.modal-footer {
    text-align: center;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-stats {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .completion-message {
        font-size: 1rem;
    }
    
    .modal-actions {
        padding: 0 1.5rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
}

/* Animación de celebración para el modal */
@keyframes modalCelebration {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.02) translateY(-5px);
    }
}

.transition-modal.celebration .modal-content {
    animation: modalCelebration 0.6s ease-in-out 2;
}

/* Clase para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animaciones adicionales */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stats-card:hover {
    animation: pulse 0.3s ease;
}

.progress-fill {
    animation: slideIn 0.5s ease;
}

/* Modo descanso largo */
.container.long-break-mode .header {
    background: rgba(106, 27, 154, 0.15);
    border: 1px solid rgba(149, 117, 205, 0.3);
}

.container.long-break-mode .title {
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.container.long-break-mode .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.container.long-break-mode .control-btn {
    background: rgba(149, 117, 205, 0.15);
    border: 1px solid rgba(149, 117, 205, 0.3);
    color: var(--white);
}

.container.long-break-mode .control-btn:hover {
    background: rgba(149, 117, 205, 0.25);
}

.container.long-break-mode .dot.active {
    background: var(--long-break-primary);
}

.container.long-break-mode .stats-panel {
    background: rgba(74, 20, 140, 0.95);
    color: var(--white);
}

.container.long-break-mode .settings-panel {
    background: rgba(74, 20, 140, 0.9);
    color: var(--white);
}

.container.long-break-mode .motivation-card {
    background: linear-gradient(135deg, rgba(149, 117, 205, 0.2), rgba(126, 87, 194, 0.2));
    border-color: rgba(149, 117, 205, 0.3);
}

.container.long-break-mode .progress-fill {
    background: var(--long-break-primary);
}

/* Efectos especiales para celebrar */
.celebration {
    animation: pulse 0.6s ease-in-out 3;
}

/* Estados especiales para elementos completados */
.completed-cycle {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    animation: pulse 2s ease-in-out infinite;
}
