/* ============================== */
/* POMODORO TIMER STYLES          */
/* ============================== */

.pomodoro-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem;
}

.pomodoro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.pomodoro-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.pomodoro-stats {
    display: flex;
    gap: 1rem;
}

.pomodoro-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
}

.pomodoro-stats .stat i {
    width: 14px;
    height: 14px;
}

/* Timer Display */
.pomodoro-timer-display {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.timer-ring-progress {
    fill: none;
    stroke: #ef4444;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.timer-ring-progress.break-mode {
    stroke: #22c55e;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-mode {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.timer-time {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.timer-session {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* Controls */
.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pomo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pomo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pomo-btn i {
    width: 18px;
    height: 18px;
}

.pomo-btn-start {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.pomo-btn-pause {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pomo-btn-reset {
    background: rgba(255, 255, 255, 0.1);
}

.pomo-btn-reset:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Settings */
.pomodoro-settings {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.setting-group {
    text-align: center;
}

.setting-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.setting-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-controls button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.setting-controls button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.setting-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.setting-controls span {
    min-width: 50px;
    font-weight: 600;
    color: white;
}

/* History */
.pomodoro-history {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.pomodoro-history h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85rem;
}

.history-time {
    color: var(--text-muted);
}

.history-duration {
    color: white;
}

.history-xp {
    color: #22c55e;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .pomodoro-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pomodoro-timer-display {
        width: 180px;
        height: 180px;
    }

    .timer-time {
        font-size: 2.5rem;
    }

    .pomodoro-settings {
        flex-direction: column;
        gap: 1rem;
    }

    .pomodoro-controls {
        flex-direction: column;
    }

    .pomo-btn {
        width: 100%;
        justify-content: center;
    }
}