/* =========================
   GLOBAL
========================= */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Segoe UI, Arial;
}

body{
    background: radial-gradient(circle at top,#0f172a,#020617);
    color:#e5e7eb;
    padding-top:70px;   /* for fixed header */
}

/* =========================
   FIXED HEADER
========================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:70px;
    background:rgba(15,23,42,0.95);
    backdrop-filter: blur(10px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    border-bottom:1px solid rgba(255,255,255,0.1);
    z-index:1000;
}

.logo{
    font-size:20px;
    font-weight:bold;
    color:#6366f1;
}

nav a{
    color:#9ca3af;
    margin-left:15px;
    text-decoration:none;
    font-size:14px;
}

nav a:hover{
    color:white;
}

/* =========================
   PAGE LAYOUT
========================= */

.page{
    display:grid;
    grid-template-columns:220px 1fr 220px;
    min-height:100vh;
}

/* ADS */
.ad-box{
    margin:12px;
    border-radius:14px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#9ca3af;
    font-size:13px;
}

/* MAIN */
.main{
    padding:25px;
}

header h1{
    font-size:28px;
}

/* CARD */
.card{
    margin-top:20px;
    padding:25px;
    border-radius:18px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1);
    text-align:center;
}

/* BUTTON */
#startStopBtn{
    display:inline-block;
    padding:14px 35px;
    border:2px solid #6366f1;
    border-radius:12px;
    cursor:pointer;
    margin-bottom:15px;
}
#startStopBtn:hover{background:#6366f1;}

/* PROGRESS */
.progress-container{
    width:100%;
    height:10px;
    background:#111827;
    border-radius:20px;
    overflow:hidden;
    margin:15px 0;
}

#progressBar{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#6366f1,#22c55e);
    transition:0.2s;
}

/* RESULTS */
.results{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.box{
    background:rgba(255,255,255,0.05);
    padding:15px;
    border-radius:12px;
}

.value{
    font-size:22px;
    font-weight:bold;
    margin-top:5px;
}

/* GRAPH */
#chartContainer{
    margin-top:20px;
    display:none;
    background:rgba(255,255,255,0.05);
    padding:15px;
    border-radius:12px;
}

/* =========================
   FOOTER
========================= */

footer{
    width:100%;
    background:rgba(15,23,42,0.98);
    border-top:1px solid rgba(255,255,255,0.1);
    padding:20px;
}

.footer-container{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:20px;
    max-width:1100px;
    margin:auto;
}

.footer-col h3{
    font-size:14px;
    margin-bottom:10px;
    color:white;
}

.footer-col p,
.footer-col a{
    font-size:13px;
    color:#9ca3af;
    text-decoration:none;
    display:block;
    margin-bottom:6px;
}

.footer-col a:hover{
    color:white;
}

.footer-bottom{
    margin-top:15px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,0.1);
    text-align:center;
    font-size:12px;
    color:#9ca3af;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:900px){

    .page{
        grid-template-columns:1fr;
    }

    .ad-box{
        display:none;
    }

    .results{
        grid-template-columns:1fr;
    }

    nav{
        display:none;
    }

    .footer-container{
        grid-template-columns:1fr;
        text-align:center;
    }
}