:root {
    --bg-dark: #0f172a;      /* Slate 900 */
    --bg-card: #1e293b;      /* Slate 800 */
    --text-main: #e2e8f0;    /* Slate 200 */
    --text-muted: #94a3b8;   /* Slate 400 */
    --accent-cyan: #22d3ee;  /* Cyan 400 */
    --font-stack: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-stack);
    height: 100vh;
    overflow: hidden; /* Prevent scrolling during session */
}

#app {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Utilities */
.hidden { display: none !important; }
.highlight { color: var(--accent-cyan); }

/* Header */
header { padding: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; }

/* Dashboard Styling */
#dashboard-view { padding: 2rem; flex: 1; overflow-y: auto; }
.hero { text-align: center; margin-bottom: 3rem; margin-top: 2rem; }
.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; }
.sub-hero { color: var(--text-muted); }
.hero p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Technique Cards */
.card {
    background: var(--bg-card);
    border: 1px solid #334155;
    padding: 2rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--text-muted); }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card .sub { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 1rem; }
.card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Session View Styling */
#session-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

/* THE BREATHING CIRCLE ENGINE */
.breathing-container { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }

.circle-track {
    position: absolute;
    width: 260px; height: 260px;
    border: 4px solid #1e293b;
    border-radius: 50%;
}

.circle-main {
    width: 260px; height: 260px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.2;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* CRITICAL: This allows JS to control the speed */
    transition-property: transform;
    transition-timing-function: ease-in-out;
    will-change: transform;
}

/* Inner Text */
.phase-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 1;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.session-info { text-align: center; margin-top: 3rem; }

/* Footer Stats */
footer {
    border-top: 1px solid #1e293b;
    padding: 1.5rem;
    background: var(--bg-dark);
    display: flex;
    justify-content: space-around;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 1.5rem; font-weight: bold; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.stat-icon { color: var(--accent-cyan); margin-bottom: 0.25rem; }