/* 计时器外圈容器，保持正方形，方便内部绝对定位居中 */
.timer-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.5rem;
}

/* SVG 圆环，整体逆时针旋转 90 度，让进度从 12 点方向开始 */
.timer-ring {
    width: 100%;
    height: 100%;
    display: block;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 10;
}

.ring-progress {
    fill: none;
    stroke: #dc3545;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset .2s linear, stroke .3s ease;
}

/* 圆环内部的文字层，不响应鼠标事件 */
.timer-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.timer-time {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums; /* 数字等宽，避免跳动 */
    color: #dc3545;
    transition: color .3s ease;
}

.timer-label {
    margin-top: .55rem;
    font-size: .8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6c757d;
}

/* 不同模式对应的主题色 */
.timer-wrap.mode-focus .ring-progress { stroke: #dc3545; }
.timer-wrap.mode-focus .timer-time     { color: #dc3545; }

.timer-wrap.mode-short .ring-progress { stroke: #198754; }
.timer-wrap.mode-short .timer-time     { color: #198754; }

.timer-wrap.mode-long .ring-progress { stroke: #0d6efd; }
.timer-wrap.mode-long .timer-time     { color: #0d6efd; }

/* 模式切换标签 */
#modeTabs .nav-link {
    color: #6c757d;
    font-size: .9rem;
    font-weight: 500;
    border-radius: 999px;
    padding: .4rem 1.15rem;
}

#modeTabs .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
}

/* 圆形控制按钮（重置 / 跳过） */
.ctrl-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: #f1f3f5;
    border: none;
    color: #495057;
    transition: background .2s, color .2s, transform .1s;
}

.ctrl-btn:hover  { background: #e2e6ea; color: #212529; }
.ctrl-btn:active { transform: scale(.94); }

#startBtn {
    min-width: 160px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* 已完成的番茄圆点 */
.pomo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-block;
    transition: background .2s, transform .2s;
}

.pomo-dot.active {
    background: #dc3545;
    transform: scale(1.1);
}

/* 小屏幕适配 */
@media (max-width: 400px) {
    .timer-time  { font-size: 2.4rem; }
    .timer-label { font-size: .72rem; }
}
