/* Ajustes mobile-first para uso durante o treino */

.step-card {
    cursor: pointer;
    transition: background-color .15s ease, opacity .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.step-card .form-check-input {
    width: 1.6em;
    height: 1.6em;
    flex-shrink: 0;
}

.step-card.done {
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
}

.step-card.done .step-title {
    text-decoration: line-through;
    color: var(--bs-secondary-color);
}

.btn-action {
    padding: .9rem 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.progress {
    height: 1.4rem;
}

.progress-bar {
    font-weight: 600;
}

#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
}

#loading-overlay.d-none {
    display: none;
}

#loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Modo automático: anel de progresso + cronômetro */

.auto-ring-wrap {
    position: relative;
    width: min(220px, 60vw);
    margin-inline: auto;
}

.auto-ring {
    width: 100%;
    height: auto;
    transform: rotate(-90deg);
}

.auto-ring-track,
.auto-ring-progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.auto-ring-track {
    stroke: var(--bs-secondary-bg);
}

.auto-ring-progress {
    stroke: var(--bs-primary);
    stroke-dasharray: 565.49;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .25s linear;
}

.auto-timer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.auto-phrase {
    min-height: 3rem;
    font-size: 1.1rem;
}

.auto-phrase-in {
    animation: auto-fade-in .6s ease both;
}

@keyframes auto-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auto-pulse {
    animation: auto-pulse .45s ease;
}

@keyframes auto-pulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}
