/* =====================
   🍅 포모도로 타이머 스타일
   ===================== */

/* 포모도로 뷰 컨테이너 */
#pomodoro-container {
    width: 100%;
    height: 100%;
    display: none;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
}

.pomodoro-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* =====================
   타이머 카드
   ===================== */

.pomodoro-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* 모드 표시 */
.pomodoro-mode {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.pomodoro-mode.work {
    color: #e53935;
}

.pomodoro-mode.break {
    color: #43a047;
}

/* 타이머 디스플레이 */
.pomodoro-timer {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 20px auto;
}

.pomodoro-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        inset 0 4px 10px rgba(0, 0, 0, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.1);
}

.pomodoro-time {
    font-size: 64px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', monospace;
    color: #333;
    line-height: 1;
}

.pomodoro-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* 프로그레스 링 */
.pomodoro-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pomodoro-progress-ring circle {
    fill: none;
    stroke-width: 8;
}

.pomodoro-progress-ring .bg {
    stroke: #e0e0e0;
}

.pomodoro-progress-ring .progress {
    stroke: #e53935;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

.pomodoro-progress-ring .progress.break {
    stroke: #43a047;
}

/* =====================
   컨트롤 버튼
   ===================== */

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

.pomodoro-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pomodoro-btn:hover {
    transform: scale(1.1);
}

.pomodoro-btn:active {
    transform: scale(0.95);
}

.pomodoro-btn.primary {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
}

.pomodoro-btn.primary:hover {
    box-shadow: 0 12px 35px rgba(229, 57, 53, 0.5);
}

.pomodoro-btn.primary.break {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    box-shadow: 0 8px 25px rgba(67, 160, 71, 0.4);
}

.pomodoro-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.pomodoro-btn.secondary:hover {
    background: #e0e0e0;
}

/* =====================
   Task 선택
   ===================== */

.pomodoro-task {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pomodoro-task-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.pomodoro-task-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pomodoro-task-select:hover {
    border-color: #bbb;
}

.pomodoro-task-select:focus {
    outline: none;
    border-color: #e53935;
}

.pomodoro-current-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 12px;
}

.pomodoro-current-task .task-icon {
    font-size: 20px;
}

.pomodoro-current-task .task-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pomodoro-current-task .task-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

/* =====================
   통계 카드
   ===================== */

.pomodoro-stats {
    margin-top: 24px;
}

.pomodoro-stats-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pomodoro-stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.pomodoro-stat {
    flex: 1;
}

.pomodoro-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.pomodoro-stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* =====================
   세션 카운터
   ===================== */

.pomodoro-sessions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pomodoro-session-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s;
}

.pomodoro-session-dot.completed {
    background: linear-gradient(135deg, #e53935, #c62828);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
}

/* =====================
   설정
   ===================== */

.pomodoro-settings {
    margin-top: 24px;
}

.pomodoro-settings-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.pomodoro-settings-btn:hover {
    color: white;
}

/* =====================
   알림
   ===================== */

.pomodoro-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    z-index: 1001;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pomodoro-notification-icon {
    font-size: 24px;
}

.pomodoro-notification-text {
    font-size: 14px;
    font-weight: 500;
}

/* =====================
   반응형
   ===================== */

@media (max-width: 480px) {
    .pomodoro-card {
        padding: 24px;
    }

    .pomodoro-timer {
        width: 220px;
        height: 220px;
    }

    .pomodoro-time {
        font-size: 48px;
    }

    .pomodoro-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .pomodoro-btn.primary {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}