*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    overflow:hidden;
    background:rgb(7, 146, 201);
    color:rgb(65, 24, 214);
}

/* 🌌 TUNNEL BACKGROUND */
#bgCanvas{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    z-index:-1;
    pointer-events:none;
}

/* APP */
.app{
    position:relative;
    z-index:1;
    max-width:420px;
    margin:0 auto;
    padding:14px;
    min-height:100vh;
}

/* NAV */
.nav{
    display:flex;
    gap:8px;
    margin-bottom:14px;
}

.nav button{
    flex:1;
    padding:12px;
    border:none;
    border-radius:14px;
    background:#00e5ff;
    color:rgb(41, 12, 206);
}

/* SPA */
.page{ display:none; }
.page.active{ display:block; }

/* TIMER CIRCLE */
.circle-container{
    position:relative;
    width:200px;
    height:200px;
    margin:10px auto 18px;
}

svg{
    width:200px;
    height:200px;
    transform:rotate(-90deg);
}

.bg-ring{
    fill:none;
    stroke:rgb(31, 10, 171);
    stroke-width:10;
}

.progress-ring{
    fill:none;
    stroke:#00e5ff;
    stroke-width:10;
    stroke-linecap:round;
    stroke-dasharray:565;
    filter:drop-shadow(0 0 8px #00e5ff);
}

#timeDisplay{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:32px;
    font-weight:800;
}

/* CONTROLS */
.controls,
.presets,
.actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:center;
    margin-top:12px;
}

.controls input{
    flex:1;
    padding:12px;
    border-radius:12px;
    border:none;
    background:#00e5ff;
    color:rgb(9, 26, 209);
}

button{
    border:none;
    border-radius:12px;
    padding:12px;
    background:#00e5ff;
    color:rgb(9, 48, 220);
}

.actions button{
    flex:1;
}

/* SETTINGS */
#settingsPage h2{
    text-align:center;
    margin-bottom:12px;
}

.setting-card{
    background:#00e5ff;
    padding:12px;
    border-radius:14px;
    margin-bottom:10px;
    backdrop-filter: blur(8px);
}

.setting-card label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
}

.setting-card select,
.setting-card input{
    width:100%;
    padding:10px;
    border:none;
    border-radius:10px;
    background:rgba(0,0,0,0.3);
    color:white;
}

/* 🌙 DARK MODE */
body.dark{
    background:#0b0b0b;
    color:rgb(11, 113, 230);
}