/* Breathing Exercise Timer */

#statusBadge {
    background-color: #6c757d;
    color: white;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#statusBadge.inhale { background-color: #0d6efd; }
#statusBadge.hold { background-color: #6f42c1; }
#statusBadge.exhale { background-color: #20c997; }
#statusBadge.ready { background-color: #ffc107; color: #000; }
#statusBadge.completed { background-color: #198754; }

/* Main Visual */
.breath-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

/* Breathing Circle */
.breath-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

[data-bs-theme="dark"] .breath-circle {
    background: linear-gradient(145deg, #1e3a5f, #0d253f);
}

/* Inhale - expand */
.breath-visual.inhale .breath-circle {
    width: 220px;
    height: 220px;
    background: linear-gradient(145deg, #cfe2ff, #9ec5fe);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.3);
}

[data-bs-theme="dark"] .breath-visual.inhale .breath-circle {
    background: linear-gradient(145deg, #084298, #052c65);
}

/* Hold */
.breath-visual.hold .breath-circle {
    background: linear-gradient(145deg, #e2d9f3, #c5b3e6);
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.3);
}

[data-bs-theme="dark"] .breath-visual.hold .breath-circle {
    background: linear-gradient(145deg, #432874, #2c1a4d);
}

/* Exhale - contract */
.breath-visual.exhale .breath-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #d1f2eb, #a3e4d7);
    box-shadow: 0 5px 20px rgba(32, 201, 151, 0.3);
}

[data-bs-theme="dark"] .breath-visual.exhale .breath-circle {
    background: linear-gradient(145deg, #0d503c, #082e23);
}

/* Completed */
.breath-visual.completed .breath-circle {
    background: linear-gradient(145deg, #d1e7dd, #a3cfbb);
    box-shadow: 0 15px 40px rgba(25, 135, 84, 0.3);
    animation: celebrate 0.6s ease-out;
}

/* Countdown */
.breath-countdown {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0d6efd;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .breath-countdown {
    color: #6ea8fe;
}

.breath-visual.inhale .breath-countdown { color: #0d6efd; }
.breath-visual.hold .breath-countdown { color: #6f42c1; }
.breath-visual.exhale .breath-countdown { color: #20c997; }
.breath-visual.completed .breath-countdown { color: #198754; font-size: 2.5rem; }

/* Lung Icons */
.breath-icon {
    position: absolute;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.breath-icon-left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.breath-icon-right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
}

.breath-visual.inhale .breath-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.breath-visual.inhale .breath-icon-right {
    transform: translateY(-50%) scaleX(-1) scale(1.2);
}

.breath-visual.inhale .breath-icon img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(95%) saturate(1735%) hue-rotate(206deg) brightness(97%) contrast(99%);
}

.breath-visual.exhale .breath-icon {
    opacity: 0.5;
    transform: translateY(-50%) scale(0.8);
}

.breath-visual.exhale .breath-icon-right {
    transform: translateY(-50%) scaleX(-1) scale(0.8);
}

.breath-visual.exhale .breath-icon img {
    filter: brightness(0) saturate(100%) invert(64%) sepia(47%) saturate(482%) hue-rotate(115deg) brightness(92%) contrast(91%);
}

/* Animations */
@keyframes celebrate {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Buttons */
#startBtn { transition: all 0.3s ease; }
#startBtn.btn-warning { color: #000; }
#resetBtn:hover:not(:disabled) { transform: rotate(-180deg); }

#settingsChevron { transition: transform 0.3s ease; }
[aria-expanded="true"] #settingsChevron { transform: rotate(180deg); }
#settingsCollapse .form-control:disabled,
#settingsCollapse .form-select:disabled { opacity: 0.5; }

#hintText {
    max-width: 400px;
    margin: 0 auto;
    min-height: 48px;
}
