/* =====================================================
   ETAPA 3: MODO FOCO + TIMER POMODORO + NOTIFICAÇÕES
   ===================================================== */

/* Container do Modo Foco */
.focus-mode-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.focus-mode-container.active {
    display: flex;
}

/* Header do Modo Foco */
.focus-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    color: white;
}

.focus-title {
    font-size: 24px;
    font-weight: 600;
}

.exit-focus-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exit-focus-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Timer Pomodoro */
.pomodoro-timer {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 40px;
}

.timer-display {
    font-size: 120px;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 10px;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.timer-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-btn.primary {
    background: #667eea;
    color: white;
}

.timer-btn.primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.timer-btn.secondary {
    background: #e5e7eb;
    color: #374151;
}

.timer-btn.secondary:hover {
    background: #d1d5db;
}

/* Configurações do Timer */
.timer-settings {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.timer-preset {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-preset:hover {
    border-color: #667eea;
    background: #f3f4f6;
}

.timer-preset.active {
    border-color: #667eea;
    background: #eef2ff;
    color: #667eea;
    font-weight: 600;
}

/* Progresso Visual */
.focus-progress {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.progress-bar-focus {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-focus {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 1s linear;
}

/* Estatísticas do Foco */
.focus-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    color: white;
}

.focus-stat {
    text-align: center;
}

.focus-stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.focus-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* =====================================================
   SISTEMA DE NOTIFICAÇÕES
   ===================================================== */

.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slideInRight 0.3s ease;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.notification-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

.notification-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.notification-icon.achievement {
    background: #fce7f3;
    color: #db2777;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
}

.notification-close {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Tipos de Notificação com Borda */
.notification.success {
    border-left: 4px solid #16a34a;
}

.notification.info {
    border-left: 4px solid #2563eb;
}

.notification.warning {
    border-left: 4px solid #d97706;
}

.notification.achievement {
    border-left: 4px solid #db2777;
}

/* =====================================================
   LEMBRETES E AGENDAMENTO
   ===================================================== */

.reminders-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f9fafb;
    margin-bottom: 10px;
}

.reminder-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eef2ff;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.reminder-info {
    flex: 1;
}

.reminder-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.reminder-time {
    font-size: 13px;
    color: #6b7280;
}

.reminder-actions {
    display: flex;
    gap: 8px;
}

.reminder-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reminder-btn.primary {
    background: #667eea;
    color: white;
}

.reminder-btn.primary:hover {
    background: #5568d3;
}

.reminder-btn.secondary {
    background: #e5e7eb;
    color: #374151;
}

.reminder-btn.secondary:hover {
    background: #d1d5db;
}

/* Botão Flutuante de Foco */
.floating-focus-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-focus-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Configurações de Notificações */
.notification-settings {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.notification-setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
    color: #374151;
}

.setting-description {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: #667eea;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active::after {
    transform: translateX(24px);
}

/* Responsividade */
@media (max-width: 768px) {
    .pomodoro-timer {
        padding: 40px 30px;
    }
    
    .timer-display {
        font-size: 80px;
    }
    
    .notifications-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .focus-header {
        padding: 0 20px;
    }
    
    .focus-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .floating-focus-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
