/* =========================================
   App 4-7-8 Specific Styles
   ========================================= */

/* Canvas Background */
canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: var(--bg);
}

/* Breathing UI Elements */
.ui-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    pointer-events: none;
}

#circle-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.breathing-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.02);
    /* Transition is handled by JS but we provide a base */
    transition: width 0.1s linear, height 0.1s linear, box-shadow 0.1s linear, border-color 0.1s linear;
}

/* Ausdehnung Einatmen */
.breathing-circle.inhale {
    width: 280px;
    height: 280px;
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.6);
    box-shadow: 0 0 60px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15),
        inset 0 0 40px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
}

/* Halten */
.breathing-circle.hold {
    width: 280px;
    height: 280px;
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.4);
    box-shadow: 0 0 40px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1),
        inset 0 0 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.05);
}

/* Ausatmen (wie default) */
.breathing-circle.exhale {
    width: 100px;
    height: 100px;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.02);
}

/* Phase Text inside circle */
#phase-text {
    position: absolute;
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 5;
    text-transform: uppercase;
    transition: opacity 0.5s ease;
}

/* Base Controls Container */
.controls-container {
    display: flex;
    gap: 15px;
    z-index: 15;
    pointer-events: auto;
    margin-bottom: 20px;
}

#timer-display {
    font-family: var(--font-head);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 60px;
    text-align: center;
}

/* App-specific phase indicator and counters */
#phase-indicator {
    position: fixed;
    width: 100%;
    top: 25%;
    text-align: center;
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 1s, color 1s;
    opacity: 0;
}

#cycle-counter {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 90px));
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 5;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Notification Button */
#notif-btn {
    font-size: 14px;
    padding: 8px 12px;
    min-width: 0;
}