/* ===== Container ===== */
.pomodoro-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.pomodoro-container h1 {
    margin-bottom: 10px;
}

/* ===== Progress Ring ===== */
.progress-ring {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 20px auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 10;
}

/* Background ring */
.progress-ring .bg {
    stroke: #334155;
}

/* Gradient progress ring */
.progress-ring .progress {
    stroke: url(#progressGradient);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

/* ===== Timer (CENTER FIXED) ===== */
.timer-display {
    position: relative;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    z-index: 2;
}

/* ===== Stats ===== */
.stats {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Buttons ===== */
.controls button {
    margin: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #38bdf8;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.controls button:hover {
    background: #0ea5e9;
}

/* ===== Settings ===== */
.settings {
    margin-top: 20px;
    text-align: left;
}

.settings label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

.settings input {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: none;
    margin-top: 5px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #38bdf8;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    z-index: 9999;
}

/* ===== Mobile Fix ===== */
@media (max-width: 480px) {

    .pomodoro-container {
        margin: 20px;
        padding: 20px;
    }

    .progress-ring {
        width: 150px;
        height: 150px;
    }

    .timer-display {
        font-size: 26px;
    }
}