﻿.pomodoro-container {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
    position: relative;
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.card-surface {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.focus-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.focus-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.focus-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 500;
    width: 100%;
    outline: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

    .focus-input:focus {
        border-bottom: 2px solid var(--accent);
    }

.timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.phase-selector {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    width: 100%;
    justify-content: space-between;
}

.phase-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: 26px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .phase-btn.active {
        background: var(--bg-surface-hover);
        color: var(--text-main);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

.timer-display {
    font-size: 6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    letter-spacing: -2px;
    line-height: 1;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-surface-hover);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 100%;
    transition: width 1s linear;
}

.controls {
    display: flex;
    gap: 1rem;
    width: 100%;
}

button {
    cursor: pointer;
}

.btn-primary {
    flex: 2;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.1s, filter 0.2s;
}

    .btn-primary:active {
        transform: scale(0.97);
    }

    .btn-primary:hover {
        filter: brightness(1.1);
    }

.btn-secondary {
    flex: 1;
    background: var(--bg-surface-hover);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

    .btn-secondary:hover {
        background: rgba(255,255,255,0.1);
    }

.stats-section {
    text-align: center;
}

.stat-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

    .stat-badge strong {
        color: var(--text-main);
    }

/* App Settings Input */
.app-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-base);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .timer-display {
        font-size: 4.5rem;
    }

    .phase-selector {
        flex-direction: column;
    }

    .phase-btn {
        padding: 0.8rem;
    }

    .controls {
        flex-direction: column;
    }
}
