* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    
    /* Secondary Colors */
    --secondary: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutral Colors */
    --background: #f8fafc;
    --background-alt: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    --gradient-warm: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-cool: linear-gradient(135deg, #3b82f6, #60a5fa);
    --gradient-danger: linear-gradient(135deg, #ef4444, #f87171);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: var(--space-lg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Rest Alert System */
.rest-alert-section {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.rest-alert-section:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.rest-alert-container {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.rest-alert-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 200px;
}

.rest-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.rest-alert-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.rest-status {
    font-size: 1rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.rest-status.status-exhausted {
    background: var(--gradient-danger);
    animation: pulse 1s infinite;
}

.rest-status.status-tired {
    background: linear-gradient(135deg, #ef4444, #f87171);
    animation: pulse 2s infinite;
}

.rest-status.status-regular {
    background: var(--gradient-warm);
}

.rest-status.status-good {
    background: var(--gradient-secondary);
}

.rest-status.status-excellent {
    background: linear-gradient(135deg, #10b981, #34d399);
    animation: glow 3s infinite;
}

.rest-thermometer {
    flex: 1;
    min-width: 300px;
}

.thermometer-track {
    position: relative;
    height: 20px;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thermometer-fill {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    transition: width var(--transition-slow);
    width: 60%;
    position: relative;
    overflow: hidden;
}

.thermometer-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.thermometer-fill.exhausted {
    background: var(--gradient-danger);
    width: 20%;
}

.thermometer-fill.tired {
    background: linear-gradient(90deg, #ef4444, #f87171);
    width: 40%;
}

.thermometer-fill.regular {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    width: 60%;
}

.thermometer-fill.good {
    background: var(--gradient-secondary);
    width: 80%;
}

.thermometer-fill.excellent {
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 100%;
}

.thermometer-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.thermometer-label {
    text-align: center;
    flex: 1;
}

.rest-actions {
    display: flex;
    gap: var(--space-md);
    min-width: 200px;
}

.rest-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.rest-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rest-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1rem;
}

/* Responsive for Rest Alert */
@media (max-width: 768px) {
    .rest-alert-container {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .rest-alert-header {
        min-width: auto;
        justify-content: center;
    }
    
    .rest-thermometer {
        min-width: auto;
        width: 100%;
    }
    
    .rest-actions {
        min-width: auto;
        justify-content: center;
    }
}

/* Header */
.header {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Rest Alert System Compacto en Header */
.rest-alert-compact {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, var(--card-bg), var(--background-alt));
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    min-width: 320px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.rest-alert-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rest-alert-compact:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.rest-alert-compact:hover::before {
    opacity: 1;
}

.rest-alert-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.rest-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rest-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    z-index: 2;
}

.rest-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    animation: restPulse 2s infinite;
    z-index: 1;
}

.rest-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.rest-status {
    font-size: 1rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 80px;
}

.rest-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.rest-thermometer-compact {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.thermometer-track-compact {
    position: relative;
    height: 12px;
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.thermometer-fill {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.5s ease;
    width: 60%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thermometer-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.thermometer-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    opacity: 0;
    filter: blur(4px);
    transition: all 0.5s ease;
    z-index: -1;
}

.thermometer-labels-compact {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.thermometer-fill.exhausted {
    background: var(--gradient-danger);
    width: 20%;
}

.thermometer-fill.tired {
    background: linear-gradient(90deg, #ef4444, #f87171);
    width: 40%;
}

.thermometer-fill.regular {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    width: 60%;
}

.thermometer-fill.good {
    background: var(--gradient-secondary);
    width: 80%;
}

.thermometer-fill.excellent {
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 100%;
}

.rest-actions-compact {
    display: flex;
    gap: var(--space-sm);
    flex-direction: column;
}

.rest-btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

.rest-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.rest-btn-compact:hover::before {
    left: 100%;
}

.rest-btn-compact.primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid var(--primary);
}

.rest-btn-compact.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.rest-btn-compact.secondary {
    background: var(--background-alt);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.rest-btn-compact.secondary:hover {
    background: var(--background);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rest-btn-compact:active {
    transform: translateY(0);
}

.rest-btn-compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Animaciones para Rest Alert */
@keyframes restPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes restGlow {
    0% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
}

@keyframes restShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

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

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

@keyframes restCelebration {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Estados especiales para el sistema de descanso */
.rest-alert-compact.urgent {
    border-color: var(--danger);
    animation: restGlow 1s infinite;
}

.rest-alert-compact.urgent .rest-icon {
    animation: restShake 0.5s infinite;
}

.rest-alert-compact.urgent .rest-pulse {
    background: var(--gradient-danger);
    animation: restPulse 1s infinite;
}

/* Responsive para Rest Alert Compacto */
@media (max-width: 768px) {
    .rest-alert-compact {
        min-width: auto;
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
        min-width: 280px;
    }
    
    .rest-alert-header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .rest-thermometer-compact {
        min-width: auto;
        width: 100%;
    }
    
    .rest-actions-compact {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-sm);
    }
    
    .rest-btn-compact {
        min-width: 80px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .rest-alert-compact {
        min-width: 240px;
        padding: var(--space-sm);
    }
    
    .rest-icon {
        font-size: 1.5rem;
    }
    
    .rest-status {
        font-size: 0.875rem;
        padding: var(--space-xs);
    }
    
    .rest-time {
        font-size: 0.625rem;
    }
    
    .rest-actions-compact {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .rest-btn-compact {
        min-width: 60px;
        padding: var(--space-xs);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stats {
    display: flex;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--background-alt);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Level Progress */
.level-progress {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.level-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.level-progress:hover::before {
    opacity: 1;
}

.progress-bar {
    height: 1.25rem;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-sm);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(16, 185, 129, 0.1) 50%, 
        rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--radius-lg);
    opacity: 0.3;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
    min-width: 3px;
    display: block !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    border-radius: var(--radius-lg);
}

/* Estados de progreso mejorados */
.progress-fill.low-progress {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: lowProgressPulse 2s infinite;
}

.progress-fill.medium-progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.progress-fill.high-progress {
    background: var(--gradient-secondary);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: highProgressGlow 3s infinite;
}

.progress-fill.glow-effect {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    animation: glowPulse 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes lowProgressPulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        transform: scaleY(1);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
        transform: scaleY(1.02);
    }
}

@keyframes highProgressGlow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
    }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
        opacity: 1;
    }
    50% { 
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
        opacity: 0.9;
    }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Indicador visual para progreso muy bajo */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(16, 185, 129, 0.8) 0%, 
        rgba(52, 211, 153, 0.9) 50%, 
        rgba(16, 185, 129, 0.8) 100%);
    border-radius: var(--radius-lg);
    animation: progressPulse 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mostrar indicador especial para progreso muy bajo */
.progress-fill.low-progress {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.progress-fill.low-progress::before {
    opacity: 1;
}

/* Animación para el pulso del progreso bajo */
@keyframes progressPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% { 
        opacity: 1;
        transform: scaleX(1.02);
    }
}

/* Estilos para mensajes motivacionales */
.low-progress-motivation {
    animation: motivationGlow 3s infinite;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@keyframes motivationGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.2);
    }
    50% { 
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    }
}

/* Indicador de proximidad al siguiente nivel */
.near-level-up {
    color: var(--primary) !important;
    font-weight: 700 !important;
    animation: levelUpGlow 2s infinite;
}

@keyframes levelUpGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    50% { 
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    }
}

/* Navegación de secciones */
.section-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    position: sticky;
    top: var(--space-md);
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    background: var(--background-alt);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
}

.nav-btn:hover {
    background: var(--background);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Responsive para navegación */
@media (max-width: 768px) {
    .section-nav {
        flex-wrap: wrap;
        gap: var(--space-xs);
        padding: var(--space-sm);
    }
    
    .nav-btn {
        min-width: 60px;
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-icon {
        font-size: 1.25rem;
    }
    
    .nav-text {
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .section-nav {
        position: relative;
        top: auto;
    }
    
    .nav-btn {
        min-width: 50px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-text {
        display: none;
    }
}

/* Motivation Banner */
.motivation-banner {
    background: var(--gradient-warm);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    animation: pulse 3s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.motivation-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.motivation-banner p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.category {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category:hover::before {
    transform: scaleX(1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.category-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.category-header h2 {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.category-progress {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Tasks */
.tasks {
    margin-bottom: var(--space-lg);
    min-height: 4rem;
}

.task {
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.task::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition);
}

.task:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.task:hover::before {
    transform: scaleY(1);
}

.task.completed {
    opacity: 0.7;
    text-decoration: line-through;
    background: var(--background);
}

.task-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.task.completed .task-checkbox {
    background: var(--gradient-secondary);
    border-color: var(--secondary);
    color: white;
}

.task-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.task-points {
    background: var(--gradient-warm);
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.task-delete {
    background: var(--gradient-danger);
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.task-delete:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.add-task-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.add-task-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-task-btn:hover::before {
    left: 100%;
}

/* Achievements */
.achievements-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.achievements-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.achievement {
    background: var(--background);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ffd93d22, #ffb23822);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievement-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--danger);
}

.modal-content h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Celebration Modal */
.celebration-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.celebration-content {
    background: var(--card-bg);
    margin: 15% auto;
    padding: 50px;
    border-radius: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: celebrate 0.5s ease;
}

@keyframes celebrate {
    0% {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.celebration-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: spin 0.5s ease;
}

@keyframes spin {
    from { transform: rotate(0deg) scale(0); }
    to { transform: rotate(360deg) scale(1); }
}

.celebration-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.celebration-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.points-earned {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--warning), #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.celebration-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.celebration-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Mobile First Responsive Design */
/* Base mobile styles - applied to all screen sizes */
body {
    font-size: 14px;
    padding: var(--space-sm);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile viewport optimization */
@viewport {
    width: device-width;
    initial-scale: 1;
    maximum-scale: 5;
    user-scalable: yes;
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize for mobile scrolling */
    .task-selector-categories,
    .modal-content,
    .achievements-section,
    .daily-stats-section {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Mobile-specific focus states */
    .task-checkbox:focus,
    .task-delete:focus,
    .nav-btn:focus,
    .rest-btn:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
    
    /* Mobile-friendly hover states */
    .category:hover,
    .achievement:hover,
    .stat-card:hover {
        transform: none;
    }
    
    /* Mobile-optimized shadows */
    .category,
    .achievement,
    .stat-card,
    .daily-stat-card,
    .task {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile-friendly text selection */
    .task-name,
    .category-description,
    .achievement-desc {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    /* Mobile-optimized button states */
    .add-task-btn:active,
    .submit-btn:active,
    .celebration-btn:active,
    .timer-btn:active {
        transform: scale(0.98);
    }
    
    /* Mobile-friendly loading states */
    .timer-container {
        will-change: transform;
    }
    
    .progress-fill {
        will-change: width;
    }
    
    /* Mobile-optimized grid layouts */
    .categories {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .achievements {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-sm);
    }
    
    .daily-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    /* Mobile-optimized typography */
    h1, h2, h3 {
        line-height: 1.3;
    }
    
    p, .task-name, .category-description {
        line-height: 1.4;
    }
    
    /* Mobile-friendly spacing */
    .section-nav {
        margin-bottom: var(--space-md);
    }
    
    .header {
        margin-bottom: var(--space-md);
    }
    
    .categories {
        margin-bottom: var(--space-lg);
    }
    
    /* Mobile-optimized rest alert */
    .rest-alert-compact {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .rest-alert-section {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile-friendly level progress */
    .level-progress {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile-optimized motivation banner */
    .motivation-banner {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .task-checkbox {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .task-delete {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better mobile navigation */
    .section-nav {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-light);
    }
    
    /* Mobile-friendly modals */
    .modal-content {
        margin: 2% auto;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve form inputs on mobile */
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        border: 2px solid var(--border);
        transition: border-color 0.2s ease;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }
    
    /* Mobile-optimized cards */
    .category,
    .achievement,
    .stat-card,
    .daily-stat-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Better mobile spacing */
    .categories {
        gap: var(--space-md);
    }
    
    .achievements {
        gap: var(--space-sm);
    }
    
    /* Mobile-friendly progress bars */
    .progress-bar {
        height: 12px;
        border-radius: 6px;
        margin-bottom: var(--mobile-space-sm);
    }
    
    .progress-fill {
        border-radius: 6px;
        min-width: 4px;
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .level-progress {
        padding: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-lg);
    }
    
    .progress-text {
        font-size: 0.75rem;
        font-weight: 700;
    }
    
    /* Mobile progress states */
    .progress-fill.low-progress {
        animation: mobileLowProgressPulse 1.5s infinite;
    }
    
    .progress-fill.glow-effect {
        animation: mobileGlowPulse 1s infinite;
    }
    
    @keyframes mobileLowProgressPulse {
        0%, 100% { 
            box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
            transform: scaleY(1);
        }
        50% { 
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
            transform: scaleY(1.05);
        }
    }
    
    @keyframes mobileGlowPulse {
        0%, 100% { 
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
        }
        50% { 
            box-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
        }
    }
    
    /* Mobile timer improvements */
    .timer-container {
        margin: 0 auto;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }
    
    .timer-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Mobile task improvements */
    .task {
        border-radius: 8px;
        margin-bottom: var(--space-sm);
    }
    
    .task:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    /* Mobile-friendly buttons */
    .add-task-btn,
    .submit-btn,
    .celebration-btn {
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    /* Mobile navigation improvements */
    .nav-btn {
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .nav-btn:active {
        transform: scale(0.95);
    }
    
    /* Mobile stats improvements */
    .stats {
        gap: var(--space-sm);
    }
    
    .stat-item {
        border-radius: 8px;
        padding: var(--space-sm);
    }
    
    /* Mobile header improvements */
    .header {
        border-radius: 12px;
        margin-bottom: var(--space-md);
    }
    
    .logo h1 {
        line-height: 1.2;
    }
    
    /* Mobile-friendly scrollbars */
    .task-selector-categories,
    .modal-content {
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--border-light);
    }
    
    .task-selector-categories::-webkit-scrollbar,
    .modal-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .task-selector-categories::-webkit-scrollbar-track,
    .modal-content::-webkit-scrollbar-track {
        background: var(--border-light);
        border-radius: 2px;
    }
    
    .task-selector-categories::-webkit-scrollbar-thumb,
    .modal-content::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
}

.container {
    padding: 0 var(--space-sm);
    max-width: 100%;
}

/* Touch-friendly button improvements */
button, .btn, .nav-btn, .rest-btn, .rest-btn-compact {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-optimized spacing */
:root {
    --mobile-space-xs: 0.125rem;
    --mobile-space-sm: 0.25rem;
    --mobile-space-md: 0.5rem;
    --mobile-space-lg: 0.75rem;
    --mobile-space-xl: 1rem;
    --mobile-space-2xl: 1.5rem;
}

/* Mobile-first breakpoints */
@media (max-width: 480px) {
    body {
        padding: var(--mobile-space-sm);
        font-size: 13px;
    }
    
    .container {
        padding: 0 var(--mobile-space-sm);
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: var(--mobile-space-lg);
        gap: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-lg);
    }
    
    .logo {
        flex-direction: column;
        gap: var(--mobile-space-sm);
    }
    
    .logo h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .logo-icon {
        font-size: 1.75rem;
    }
    
    .stats {
        flex-direction: column;
        gap: var(--mobile-space-md);
        width: 100%;
    }
    
    .stat-item {
        justify-content: center;
        padding: var(--mobile-space-sm) var(--mobile-space-md);
        flex-direction: column;
        text-align: center;
        gap: var(--mobile-space-xs);
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.625rem;
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-lg);
    }
    
    .category {
        padding: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-md);
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: var(--mobile-space-sm);
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-header h2 {
        font-size: 1.25rem;
    }
    
    .category-description {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .tasks {
        margin-bottom: var(--mobile-space-lg);
    }
    
    .task {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--mobile-space-sm);
        padding: var(--mobile-space-md);
    }
    
    .task-checkbox {
        width: 1.25rem;
        height: 1.25rem;
        align-self: flex-start;
    }
    
    .task-name {
        font-size: 0.875rem;
        line-height: 1.3;
    }
    
    .task-points {
        font-size: 0.625rem;
        padding: var(--mobile-space-xs) var(--mobile-space-sm);
    }
    
    .task-delete {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .add-task-btn {
        padding: var(--mobile-space-md);
        font-size: 0.875rem;
        min-height: 48px;
    }
    
    /* Timer optimizations for mobile */
    .timer-container {
        width: 180px;
        height: 180px;
    }
    
    .timer-circle {
        width: 180px;
        height: 180px;
    }
    
    .timer-progress {
        width: 180px;
        height: 180px;
    }
    
    .progress-ring-svg {
        width: 180px;
        height: 180px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .timer-label {
        font-size: 0.75rem;
    }
    
    .pomodoro-container {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-lg);
        min-height: auto;
    }
    
    .timer-display {
        order: 1;
        padding: var(--mobile-space-md);
    }
    
    .timer-controls {
        order: 2;
        gap: var(--mobile-space-sm);
    }
    
    .timer-btn {
        padding: var(--mobile-space-md) var(--mobile-space-lg);
        font-size: 0.875rem;
        min-width: 120px;
        min-height: 48px;
    }
    
    .pomodoro-stats {
        gap: var(--mobile-space-md);
    }
    
    .stat-box {
        padding: var(--mobile-space-md);
        gap: var(--mobile-space-sm);
    }
    
    .stat-box .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-box .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-box .stat-label {
        font-size: 0.625rem;
    }
    
    /* Navigation improvements */
    .section-nav {
        flex-wrap: wrap;
        gap: var(--mobile-space-xs);
        padding: var(--mobile-space-sm);
        position: relative;
        top: auto;
    }
    
    .nav-btn {
        min-width: 50px;
        padding: var(--mobile-space-xs) var(--mobile-space-sm);
        min-height: 48px;
    }
    
    .nav-icon {
        font-size: 1.25rem;
    }
    
    .nav-text {
        display: none;
    }
    
    /* Modal optimizations */
    .modal-content {
        margin: 5% auto;
        padding: var(--mobile-space-lg);
        width: 95%;
        max-width: none;
        border-radius: var(--mobile-space-lg);
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: var(--mobile-space-lg);
    }
    
    .form-group {
        margin-bottom: var(--mobile-space-lg);
    }
    
    .form-group input,
    .form-group select {
        padding: var(--mobile-space-md);
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    .submit-btn {
        padding: var(--mobile-space-lg);
        font-size: 1rem;
        min-height: 48px;
    }
    
    .close {
        right: var(--mobile-space-md);
        top: var(--mobile-space-md);
        font-size: 1.5rem;
    }
    
    /* Celebration modal */
    .celebration-content {
        margin: 10% auto;
        padding: var(--mobile-space-xl);
        width: 95%;
        max-width: none;
    }
    
    .celebration-icon {
        font-size: 3rem;
    }
    
    .celebration-content h2 {
        font-size: 1.5rem;
    }
    
    .celebration-content p {
        font-size: 1rem;
    }
    
    .points-earned {
        font-size: 2rem;
    }
    
    .celebration-btn {
        padding: var(--mobile-space-lg) var(--mobile-space-xl);
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Daily stats */
    .daily-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-md);
    }
    
    .daily-stat-card {
        padding: var(--mobile-space-md);
        gap: var(--mobile-space-sm);
    }
    
    .daily-stat-card .stat-icon {
        font-size: 1.5rem;
    }
    
    .daily-stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .daily-stat-card .stat-label {
        font-size: 0.625rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-md);
    }
    
    .stat-card {
        padding: var(--mobile-space-md);
        gap: var(--mobile-space-sm);
    }
    
    .stat-card .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.625rem;
    }
    
    /* Goals configuration */
    .goals-config-section {
        padding: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-lg);
    }
    
    .goals-config-section h2 {
        font-size: 1.25rem;
        margin-bottom: var(--mobile-space-lg);
    }
    
    .goals-config-grid {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-lg);
    }
    
    .goal-config-card {
        padding: var(--mobile-space-lg);
    }
    
    .goal-header {
        flex-direction: column;
        text-align: center;
        gap: var(--mobile-space-sm);
    }
    
    .goal-icon {
        font-size: 1.5rem;
    }
    
    .goal-header h3 {
        font-size: 1rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-md);
    }
    
    .achievement-item {
        padding: var(--mobile-space-md);
    }
    
    .achievement-item .achievement-icon {
        font-size: 1.5rem;
    }
    
    .achievement-item .achievement-value {
        font-size: 1.25rem;
    }
    
    .achievement-item .achievement-label {
        font-size: 0.625rem;
    }
    
    /* Rest alert mobile optimizations */
    .rest-alert-section {
        padding: var(--mobile-space-md);
        margin-bottom: var(--mobile-space-md);
    }
    
    .rest-alert-container {
        flex-direction: column;
        gap: var(--mobile-space-md);
    }
    
    .rest-alert-header {
        flex-direction: column;
        text-align: center;
        gap: var(--mobile-space-sm);
    }
    
    .rest-icon {
        font-size: 1.5rem;
    }
    
    .rest-alert-header h3 {
        font-size: 1rem;
    }
    
    .rest-status {
        font-size: 0.875rem;
        padding: var(--mobile-space-xs) var(--mobile-space-sm);
    }
    
    .rest-thermometer {
        width: 100%;
        min-width: auto;
    }
    
    .thermometer-track {
        height: 16px;
    }
    
    .thermometer-labels {
        font-size: 0.625rem;
    }
    
    .rest-actions {
        flex-direction: column;
        gap: var(--mobile-space-sm);
        width: 100%;
    }
    
    .rest-btn {
        padding: var(--mobile-space-sm) var(--mobile-space-md);
        font-size: 0.75rem;
        min-height: 44px;
        justify-content: center;
    }
    
    /* Rest alert compact mobile */
    .rest-alert-compact {
        min-width: auto;
        flex-direction: column;
        gap: var(--mobile-space-sm);
        padding: var(--mobile-space-sm);
    }
    
    .rest-alert-header {
        flex-direction: column;
        gap: var(--mobile-space-xs);
        text-align: center;
    }
    
    .rest-icon {
        font-size: 1.25rem;
    }
    
    .rest-status {
        font-size: 0.75rem;
        padding: var(--mobile-space-xs);
    }
    
    .rest-time {
        font-size: 0.625rem;
    }
    
    .rest-thermometer-compact {
        width: 100%;
        min-width: auto;
    }
    
    .thermometer-track-compact {
        height: 10px;
    }
    
    .thermometer-labels-compact {
        font-size: 0.5rem;
    }
    
    .rest-actions-compact {
        flex-direction: row;
        justify-content: center;
        gap: var(--mobile-space-xs);
    }
    
    .rest-btn-compact {
        min-width: 60px;
        padding: var(--mobile-space-xs);
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    .btn-text {
        display: none;
    }
    
    /* Level progress mobile */
    .level-progress {
        padding: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-lg);
    }
    
    .progress-bar {
        height: 0.75rem;
    }
    
    .progress-text {
        font-size: 0.75rem;
    }
    
    /* Motivation banner mobile */
    .motivation-banner {
        padding: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-lg);
        flex-direction: column;
        text-align: center;
        gap: var(--mobile-space-md);
    }
    
    .motivation-icon {
        font-size: 2rem;
    }
    
    .motivation-banner p {
        font-size: 1rem;
    }
    
    /* Achievements mobile */
    .achievements-section {
        padding: var(--mobile-space-lg);
    }
    
    .achievements-section h2 {
        font-size: 1.25rem;
        margin-bottom: var(--mobile-space-lg);
    }
    
    .achievements {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--mobile-space-md);
    }
    
    .achievement {
        padding: var(--mobile-space-md);
    }
    
    .achievement-icon {
        font-size: 2rem;
        margin-bottom: var(--mobile-space-sm);
    }
    
    .achievement-name {
        font-size: 0.75rem;
    }
    
    .achievement-desc {
        font-size: 0.625rem;
    }
    
    /* Active task mobile */
    .active-task-section {
        padding: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-lg);
    }
    
    .active-task-section h3 {
        font-size: 1rem;
        margin-bottom: var(--mobile-space-md);
    }
    
    .active-task-container {
        min-height: 60px;
    }
    
    .no-active-task .task-icon {
        font-size: 2rem;
        margin-bottom: var(--mobile-space-sm);
    }
    
    .no-active-task p {
        font-size: 0.875rem;
        margin-bottom: var(--mobile-space-md);
    }
    
    .select-task-btn {
        padding: var(--mobile-space-sm) var(--mobile-space-md);
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .active-task-display {
        padding: var(--mobile-space-md);
    }
    
    .active-task-info {
        flex-direction: column;
        text-align: center;
        gap: var(--mobile-space-sm);
    }
    
    .active-task-category {
        font-size: 1.5rem;
    }
    
    .active-task-name {
        font-size: 1rem;
    }
    
    .active-task-points {
        font-size: 0.75rem;
    }
    
    .active-task-actions {
        justify-content: center;
        gap: var(--mobile-space-sm);
    }
    
    .change-task-btn, .clear-task-btn {
        padding: var(--mobile-space-xs) var(--mobile-space-sm);
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    /* Task selector mobile */
    .task-selector-categories {
        max-height: 250px;
    }
    
    .task-category-section h3 {
        font-size: 1rem;
        margin-bottom: var(--mobile-space-sm);
    }
    
    .selector-task {
        padding: var(--mobile-space-sm);
        gap: var(--mobile-space-sm);
    }
    
    .selector-task-icon {
        font-size: 1rem;
    }
    
    .selector-task-name {
        font-size: 0.875rem;
    }
    
    .selector-task-points {
        font-size: 0.75rem;
    }
    
    .selector-task-status {
        font-size: 0.625rem;
    }
    
    .no-tasks-icon {
        font-size: 3rem;
        margin-bottom: var(--mobile-space-md);
    }
    
    .no-tasks-message p {
        font-size: 0.875rem;
        margin-bottom: var(--mobile-space-lg);
    }
    
    .add-tasks-btn {
        padding: var(--mobile-space-sm) var(--mobile-space-md);
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    /* Stats history mobile */
    .stats-history-section {
        padding: var(--mobile-space-lg);
        margin-bottom: var(--mobile-space-lg);
    }
    
    .stats-history-section h2 {
        font-size: 1.25rem;
        margin-bottom: var(--mobile-space-lg);
    }
    
    .stats-tabs {
        flex-direction: column;
        align-items: center;
        gap: var(--mobile-space-sm);
    }
    
    .tab-btn {
        width: 120px;
        padding: var(--mobile-space-sm) var(--mobile-space-md);
        font-size: 0.75rem;
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    body {
        padding: var(--space-sm);
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
        gap: var(--space-lg);
    }
    
    .logo {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }
    
    .stat-item {
        justify-content: center;
        padding: var(--space-sm) var(--space-md);
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .category {
        padding: var(--space-lg);
    }
    
    .timer-container {
        width: 200px;
        height: 200px;
    }
    
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-progress {
        width: 200px;
        height: 200px;
    }
    
    .progress-ring-svg {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .pomodoro-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        min-height: auto;
    }
    
    .timer-display {
        order: 1;
    }
    
    .timer-controls {
        order: 2;
    }
    
    .daily-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .timer-container {
        width: 180px;
        height: 180px;
    }
    
    .timer-circle {
        width: 180px;
        height: 180px;
    }
    
    .timer-progress {
        width: 180px;
        height: 180px;
    }
    
    .progress-ring-svg {
        width: 180px;
        height: 180px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .timer-display {
        padding: var(--space-md);
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .task {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .task-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Block Time - Pomodoro */
.block-time-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.block-time-header {
    text-align: center;
    margin-bottom: 30px;
}

.block-time-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.block-time-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.pomodoro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    align-items: center;
    min-height: 300px;
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    padding: var(--space-lg);
}

.timer-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa, #e2e8f0);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.timer-time {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timer-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
}

.progress-ring {
    width: 100%;
    height: 100%;
}

.progress-ring-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    transition: stroke-dasharray 0.3s ease;
}

.progress-ring-fill {
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s ease;
}

.timer-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.timer-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 150px;
}

.start-btn {
    background: linear-gradient(135deg, var(--secondary), #4a9b5a);
    color: white;
    box-shadow: var(--shadow);
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pause-btn {
    background: linear-gradient(135deg, var(--warning), #ffb238);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.pause-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.reset-btn {
    background: linear-gradient(135deg, var(--danger), #ff5252);
    color: white;
    box-shadow: var(--shadow);
}

.reset-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pomodoro-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--background);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-box .stat-icon {
    font-size: 32px;
}

.stat-box .stat-info {
    flex: 1;
}

.stat-box .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Performance Grade System */
.performance-grade {
    font-size: 32px !important;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.performance-grade.grade-A {
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.performance-grade.grade-B {
    color: #8BC34A;
    text-shadow: 0 0 8px rgba(139, 195, 74, 0.4);
}

.performance-grade.grade-C {
    color: #FFC107;
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.4);
}

.performance-grade.grade-D {
    color: #FF9800;
    text-shadow: 0 0 6px rgba(255, 152, 0, 0.4);
}

.performance-grade.grade-E {
    color: #FF9800;
    text-shadow: 0 0 6px rgba(255, 152, 0, 0.4);
}

.performance-grade.grade-F {
    color: #F44336;
    text-shadow: 0 0 6px rgba(244, 67, 54, 0.4);
}

.performance-grade:hover {
    transform: scale(1.1);
}

.pomodoro-settings {
    background: var(--background);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.pomodoro-settings h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-primary);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-item select {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.setting-item select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Sound Settings */
.sound-settings {
    margin-top: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.sound-settings h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.sound-settings .setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sound-settings .setting-item label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-settings .setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.test-sound-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.test-sound-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.test-sound-btn:active {
    transform: translateY(0);
}

/* Pomodoro States */
.timer-display.work-mode .timer-circle {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.timer-display.work-mode .timer-time {
    color: #fff;
}

.timer-display.work-mode .timer-label {
    color: #fff;
}

.timer-display.break-mode .timer-circle {
    background: linear-gradient(135deg, #58b368, #7bc86a);
}

.timer-display.break-mode .timer-time {
    color: #fff;
}

.timer-display.break-mode .timer-label {
    color: #fff;
}

.timer-display.long-break-mode .timer-circle {
    background: linear-gradient(135deg, #6c63ff, #8b7fff);
}

.timer-display.long-break-mode .timer-time {
    color: #fff;
}

.timer-display.long-break-mode .timer-label {
    color: #fff;
}

/* Responsive for Pomodoro */
@media (max-width: 768px) {
    .pomodoro-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timer-circle {
        width: 150px;
        height: 150px;
    }
    
    .timer-time {
        font-size: 36px;
    }
    
    .timer-progress {
        width: 150px;
        height: 150px;
    }
    
    .progress-ring-svg {
        width: 150px;
        height: 150px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.notification {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 20px;
}

.notification-message {
    flex: 1;
}

/* Active Task Section */
.active-task-section {
    background: var(--background);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.active-task-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-primary);
    text-align: center;
}

.active-task-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-active-task {
    text-align: center;
    color: var(--text-secondary);
}

.no-active-task .task-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.no-active-task p {
    margin-bottom: 20px;
    font-size: 16px;
}

.select-task-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.select-task-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.active-task-display {
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
}

.active-task-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.active-task-category {
    font-size: 32px;
    flex-shrink: 0;
}

.active-task-details {
    flex: 1;
}

.active-task-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.active-task-points {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.pomodoro-status {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    display: inline-block;
    transition: all 0.3s ease;
}

.pomodoro-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.active-task-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.change-task-btn, .clear-task-btn, .finalize-task-btn, .restart-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Estilo especial para el botón "Cumple requisitos" */
.finalize-task-btn.requirements-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: requirementsPulse 2s infinite;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.finalize-task-btn.requirements-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.finalize-task-btn.requirements-btn:hover::before {
    left: 100%;
}

.finalize-task-btn.requirements-btn:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes requirementsPulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
    }
}

.change-task-btn {
    background: var(--primary);
    color: white;
}

.change-task-btn:hover {
    background: #5a52d5;
    transform: scale(1.05);
}

.finalize-task-btn {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: finalizePulse 2s infinite;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.finalize-task-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.finalize-task-btn:hover::before {
    left: 100%;
}

.finalize-task-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.finalize-task-btn:disabled {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    cursor: not-allowed;
    animation: none;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
    color: #64748b;
}

.finalize-task-btn:disabled::before {
    display: none;
}

.clear-task-btn {
    background: var(--danger);
    color: white;
}

.clear-task-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.restart-btn {
    background: var(--warning);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.restart-btn:hover {
    background: #d97706;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

@keyframes finalizePulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

/* Task Selector Modal */
.task-selector-categories {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.task-category-section {
    margin-bottom: 25px;
}

.task-category-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selector-task {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.selector-task:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.selector-task.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #6c63ff22, #58b36822);
}

.selector-task-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.selector-task-info {
    flex: 1;
}

.selector-task-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.selector-task-points {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.selector-task-status {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-tasks-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-tasks-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.no-tasks-message p {
    font-size: 16px;
    margin-bottom: 25px;
}

.add-tasks-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.add-tasks-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Active Task in Timer */
.timer-display.with-active-task .timer-circle {
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.timer-display.with-active-task .timer-label {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive for Active Task */
@media (max-width: 768px) {
    .active-task-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .active-task-actions {
        justify-content: center;
    }
    
    .task-selector-categories {
        max-height: 300px;
    }
}

/* Daily Stats Section */
.daily-stats-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.daily-stats-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--text-primary);
}

.daily-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.daily-stat-card {
    background: var(--background);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.daily-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.daily-stat-card .stat-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.daily-stat-card .stat-content {
    flex: 1;
}

.daily-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.daily-stat-card .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-progress {
    margin-top: 10px;
}

.progress-bar-small {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text-small {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Improved Timer Circle */
.timer-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.timer-percentage {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 5px;
}

.timer-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    transition: stroke-dasharray 0.3s ease;
}

.progress-ring-fill {
    stroke-dasharray: 691.15; /* 2 * PI * 110 */
    stroke-dashoffset: 691.15;
    transition: stroke-dashoffset var(--transition-slow);
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
    stroke-width: 8;
}

.progress-ring-glow {
    stroke-dasharray: 691.15;
    stroke-dashoffset: 691.15;
    transition: stroke-dashoffset var(--transition-slow);
    filter: blur(3px);
    stroke-width: 12;
    opacity: 0.6;
}

/* Timer States with Enhanced Visuals */
.timer-display.work-mode .timer-circle {
    background: var(--gradient-danger);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.3);
}

.timer-display.work-mode .timer-time {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.timer-display.work-mode .timer-label {
    color: rgba(255, 255, 255, 0.9);
}

.timer-display.work-mode .progress-ring-fill {
    stroke: #ef4444;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6));
}

.timer-display.work-mode .progress-ring-glow {
    stroke: #ef4444;
}

.timer-display.break-mode .timer-circle {
    background: var(--gradient-secondary);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.3);
}

.timer-display.break-mode .timer-time {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.timer-display.break-mode .timer-label {
    color: rgba(255, 255, 255, 0.9);
}

.timer-display.break-mode .progress-ring-fill {
    stroke: #10b981;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.6));
}

.timer-display.break-mode .progress-ring-glow {
    stroke: #10b981;
}

.timer-display.long-break-mode .timer-circle {
    background: var(--gradient-primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.timer-display.long-break-mode .timer-time {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.timer-display.long-break-mode .timer-label {
    color: rgba(255, 255, 255, 0.9);
}

.timer-display.long-break-mode .progress-ring-fill {
    stroke: #6366f1;
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.6));
}

.timer-display.long-break-mode .progress-ring-glow {
    stroke: #6366f1;
}

/* Stats History Section */
.stats-history-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.stats-history-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--text-primary);
}

.stats-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tab-btn:hover {
    transform: scale(1.05);
}

.stats-content {
    min-height: 200px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--background);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.stat-card .stat-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Goals Configuration Section */
.goals-config-section {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.goals-config-section h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.goals-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.goal-config-card {
    background: var(--background-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.goal-config-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.goal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.goal-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.goal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-settings .setting-item {
    margin-bottom: var(--space-lg);
}

.goal-settings .setting-item label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.goal-settings .setting-item input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.goal-settings .setting-item input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.goal-achievements {
    margin-top: var(--space-lg);
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.achievement-badge.achieved {
    background: var(--gradient-secondary);
    animation: pulse 2s infinite;
}

.achievement-badge.multiplied {
    background: var(--gradient-warm);
    animation: bounce 1s infinite;
}

.goals-summary {
    background: var(--background);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid var(--border-light);
}

.goals-summary h3 {
    text-align: center;
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    background: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.achievement-item.achieved {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
}

.achievement-item.multiplied {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
}

.achievement-item .achievement-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.achievement-item .achievement-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.achievement-item .achievement-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.achievement-item.achieved .achievement-value {
    color: var(--secondary);
}

.achievement-item.multiplied .achievement-value {
    color: var(--warning);
}

/* Responsive for Goals */
@media (max-width: 768px) {
    .goals-config-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-config-card {
        padding: var(--space-lg);
    }
}

/* Responsive for Stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 150px;
    }
}

/* Clear Data Modal Styles */
.clear-data-modal .clear-data-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s ease;
    border: 2px solid #ef4444;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.clear-data-header {
    text-align: center;
    margin-bottom: 25px;
}

.clear-data-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: shake 0.5s infinite;
}

.clear-data-header h2 {
    font-size: 24px;
    color: #ef4444;
    margin: 0;
    font-weight: 700;
}

.clear-data-body {
    margin-bottom: 30px;
}

.warning-message {
    font-size: 16px;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background: #fef2f2;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #fecaca;
}

.data-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #dc2626;
    font-weight: 500;
    border-bottom: 1px solid #fecaca;
}

.data-list li:last-child {
    border-bottom: none;
}

.warning-text {
    text-align: center;
    font-size: 14px;
    color: #dc2626;
    font-weight: 700;
    background: #fef2f2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.clear-data-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.clear-data-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 120px;
}

.clear-data-btn.cancel-btn {
    background: var(--background-alt);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.clear-data-btn.cancel-btn:hover {
    background: var(--background);
    border-color: var(--primary);
    transform: scale(1.05);
}

.clear-data-btn.confirm-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 2px solid #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-data-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.clear-data-btn.confirm-btn:active {
    transform: scale(0.95);
}

/* Task Change Modal Styles */
.task-change-modal .task-change-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideDown 0.3s ease;
    border: 2px solid #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.task-change-header {
    text-align: center;
    margin-bottom: 25px;
}

.task-change-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: rotate 2s linear infinite;
}

.task-change-header h2 {
    font-size: 24px;
    color: #3b82f6;
    margin: 0;
    font-weight: 700;
}

.task-change-body {
    margin-bottom: 30px;
}

.change-message {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.task-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.current-task, .new-task {
    background: var(--background-alt);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--border);
}

.current-task {
    border-color: #f59e0b;
}

.new-task {
    border-color: #3b82f6;
}

.current-task h3, .new-task h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.task-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 10px 0;
    font-weight: 500;
}

.task-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.task-progress span {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--background);
    padding: 4px 8px;
    border-radius: 6px;
}

.task-warning {
    margin-top: 10px;
}

.task-warning span {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.warning-text {
    text-align: center;
    font-size: 14px;
    color: #dc2626;
    font-weight: 600;
    background: #fef2f2;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-top: 20px;
}

.task-change-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.task-change-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 120px;
}

.task-change-btn.cancel-btn {
    background: var(--background-alt);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.task-change-btn.cancel-btn:hover {
    background: var(--background);
    border-color: var(--primary);
    transform: scale(1.05);
}

.task-change-btn.confirm-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.task-change-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.task-change-btn.confirm-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive for Task Change Modal */
@media (max-width: 768px) {
    .task-change-modal .task-change-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
    
    .task-change-header h2 {
        font-size: 20px;
    }
    
    .task-change-icon {
        font-size: 36px;
    }
    
    .task-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .current-task, .new-task {
        padding: 15px;
    }
    
    .task-change-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .task-change-btn {
        width: 100%;
        padding: 15px;
    }
}

/* Admin Section Styles */
.admin-section {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
}

.admin-section h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.admin-content {
    max-width: 600px;
    margin: 0 auto;
}

.admin-card {
    background: var(--background-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    border: 2px solid #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.admin-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.admin-icon {
    font-size: 24px;
    animation: shake 0.5s infinite;
}

.admin-header h3 {
    color: #ef4444;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.admin-description {
    margin-bottom: var(--space-lg);
}

.admin-description p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    background: #fef2f2;
    border-radius: var(--border-radius);
    padding: var(--space-md);
    border: 1px solid #fecaca;
}

.admin-list li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: #dc2626;
    font-weight: 500;
}

.admin-warning {
    color: #dc2626 !important;
    font-weight: 700 !important;
    background: #fef2f2;
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    border: 1px solid #fecaca;
    text-align: center;
    margin-top: var(--space-md) !important;
}

.admin-clear-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-clear-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.admin-clear-btn:active {
    transform: translateY(0);
}

.admin-clear-btn .btn-icon {
    font-size: 18px;
}

.admin-clear-btn .btn-text {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive for Clear Data Modal */
@media (max-width: 768px) {
    .clear-data-modal .clear-data-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
    
    .clear-data-header h2 {
        font-size: 20px;
    }
    
    .clear-data-icon {
        font-size: 36px;
    }
    
    .data-list {
        padding: 15px;
    }
    
    .data-list li {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .clear-data-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .clear-data-btn {
        width: 100%;
        padding: 15px;
    }
}

/* ========== HISTORIAL STYLES ========== */

/* Pestañas del historial */
.history-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--space-sm);
}

.history-tab-btn {
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.history-tab-btn:hover {
    background: var(--background-alt);
    color: var(--text-primary);
}

.history-tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Contenido del historial */
.history-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-light);
}

.history-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Historial de tareas */
.tasks-history {
    margin-bottom: var(--space-xl);
}

.tasks-history h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.task-history-item {
    background: var(--background-alt);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.task-history-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.task-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.task-category-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.task-details {
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.task-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.task-points {
    color: var(--success);
    font-weight: 600;
}

.task-time {
    color: var(--info);
    font-weight: 500;
}

.task-block {
    color: var(--warning);
    font-weight: 500;
}

.task-stats {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.task-stats .stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--card-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.8rem;
}

.task-stats .stat-icon {
    font-size: 0.9rem;
}

.task-stats .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Historial de bloques de tiempo */
.time-blocks-history {
    margin-top: var(--space-xl);
}

.time-blocks-history h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.time-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.time-block-card {
    background: var(--background-alt);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.time-block-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.block-time {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.block-tasks {
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: var(--card-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.block-stats {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.block-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--card-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.8rem;
}

.block-stat .stat-icon {
    font-size: 0.9rem;
}

.block-stat .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Sin historial */
.no-history {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.no-history-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.no-history p {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive para historial */
@media (max-width: 768px) {
    .history-tabs {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .history-tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .history-content {
        padding: var(--space-md);
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .task-info {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .task-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .task-stats {
        justify-content: space-between;
    }
    
    .time-blocks-grid {
        grid-template-columns: 1fr;
    }
    
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .block-stats {
        justify-content: space-between;
    }
}

/* Responsive for Admin Section */
@media (max-width: 768px) {
    .admin-section {
        margin: var(--space-lg) 0;
        padding: var(--space-md);
    }
    
    .admin-section h2 {
        font-size: 1.25rem;
    }
    
    .admin-card {
        padding: var(--space-md);
    }
    
    .admin-header h3 {
        font-size: 1.1rem;
    }
    
    .admin-icon {
        font-size: 20px;
    }
    
    .admin-description p {
        font-size: 0.85rem;
    }
    
    .admin-list {
        padding: var(--space-sm);
    }
    
    .admin-list li {
        font-size: 0.8rem;
        padding: 3px 0;
    }
    
    .admin-clear-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .admin-clear-btn .btn-text {
        font-size: 0.85rem;
    }
}

/* ========== VERSION DISPLAY ========== */
.app-version {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(108, 99, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.app-version:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    transform: translateY(-2px);
}

.version-label {
    color: var(--text-primary);
    font-weight: 600;
}

.version-number {
    color: #6C63FF;
    font-weight: 700;
    font-size: 11px;
}

/* Responsive para versión */
@media (max-width: 768px) {
    .app-version {
        bottom: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .version-number {
        font-size: 10px;
    }
}
