/* 카운트다운 타이머 전용 스타일 */

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.preset-btn.active {
    background: var(--pastel-blue-1);
    color: white;
    border-color: var(--pastel-blue-1);
}

.time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.time-field {
    width: 80px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem;
}

.time-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.time-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding-bottom: 1.2rem;
}

.timer-display {
    text-align: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--pastel-blue-1);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1;
    font-family: monospace;
    transition: color 0.3s ease;
}

.timer-display.running {
    color: var(--pastel-blue-1);
}

.timer-display.paused {
    color: var(--text-secondary);
}

.timer-display.completed {
    color: #4caf50;
    animation: pulse-glow 1s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.display-separator {
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.display-separator.paused,
.display-separator.idle {
    animation: none;
}

.progress-bar-wrapper {
    background: var(--glass-border);
    border-radius: 100px;
    height: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pastel-blue-1), var(--pastel-blue-2));
    border-radius: 100px;
    width: 100%;
    transition: width 1s linear;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.completed-message {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 600;
    animation: bounce-in 0.4s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .timer-display {
        font-size: 3.5rem;
    }

    .time-field {
        width: 64px;
        font-size: 1rem;
    }
}
