/* ===============================
   GOOGLE FONT & GLOBAL
================================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    display:flex;
    background:#0f172a;
    color:#ffffff;
    min-height:100vh;
}

/* ===============================
   SIDEBAR
================================ */

.sidebar{
    width:250px;
    background:#111827;
    padding:30px 20px;
    position:fixed;
    height:100vh;
    border-right:1px solid rgba(255,255,255,.08);
}

.logo{
    margin-bottom:40px;
}

.logo h2{
    font-size:28px;
}

.logo span{
    color:#38bdf8;
}

nav{
    display:flex;
    flex-direction:column;
    gap:15px;
}

nav a{
    text-decoration:none;
    color:#cbd5e1;
    padding:14px 18px;
    border-radius:12px;
    transition:.3s;
}

nav a:hover,
nav .active{
    background:#1e293b;
    color:#38bdf8;
}

/* ===============================
   MAIN
================================ */

.main{
    flex:1;
    margin-left:250px;
    padding:35px;
}

/* ===============================
   HEADER
================================ */

.header{
    margin-bottom:30px;
}

.header h1{
    font-size:34px;
    margin-bottom:8px;
}

.header p{
    color:#94a3b8;
}

/* ===============================
   TIMER CARD
================================ */

.timer-card{
    background:#1e293b;
    padding:35px;
    border-radius:20px;
    text-align:center;
    margin-bottom:30px;
}

.timer-card h3{
    margin-bottom:15px;
    color:#cbd5e1;
}

.timer-card input{
    width:100%;
    max-width:450px;
    padding:14px;
    border:none;
    border-radius:10px;
    outline:none;
    background:#334155;
    color:#fff;
    margin-bottom:30px;
}

.timer{
    width:220px;
    height:220px;
    border:8px solid #38bdf8;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0 auto 30px;
}

.timer h2{
    font-size:50px;
}

/* ===============================
   BUTTONS
================================ */

.buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.buttons button{
    padding:14px 28px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-size:15px;
    background:#0ea5e9;
    color:#fff;
    transition:.3s;
}

.buttons button:hover{
    background:#0284c7;
    transform:translateY(-4px);
}

/* ===============================
   PRESET
================================ */

.preset-section{
    margin-bottom:30px;
}

.preset-section h2{
    margin-bottom:20px;
}

.preset-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.preset-grid button{
    padding:18px;
    border:none;
    border-radius:15px;
    cursor:pointer;
    background:#1e293b;
    color:#fff;
    transition:.3s;
}

.preset-grid button:hover{
    background:#38bdf8;
}

/* ===============================
   PROGRESS
================================ */

.progress-card{
    background:#1e293b;
    padding:25px;
    border-radius:18px;
    margin:35px 0;
}

.progress-card h2{
    margin-bottom:20px;
}

.progress-bar{
    width:100%;
    height:12px;
    background:#334155;
    border-radius:50px;
    overflow:hidden;
    margin-bottom:15px;
}

.progress-fill{
    width:56%;
    height:100%;
    background:linear-gradient(to right,#06b6d4,#3b82f6);
}

/* ===============================
   STATS
================================ */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin-bottom:35px;
}

.card{
    background:#1e293b;
    padding:25px;
    border-radius:18px;
    text-align:center;
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    color:#94a3b8;
    margin-bottom:12px;
}

.card h2{
    font-size:30px;
}

/* ===============================
   HISTORY
================================ */

.history{
    margin-bottom:35px;
}

.history h2{
    margin-bottom:18px;
}

table{
    width:100%;
    border-collapse:collapse;
    background:#1e293b;
    border-radius:18px;
    overflow:hidden;
}

th{
    background:#111827;
    padding:18px;
}

td{
    text-align:center;
    padding:18px;
    border-top:1px solid rgba(255,255,255,.08);
}

/* ===============================
   QUOTE
================================ */

.quote blockquote{
    background:#1e293b;
    padding:25px;
    border-left:5px solid #38bdf8;
    border-radius:15px;
    color:#e2e8f0;
    font-style:italic;
}

/* ===============================
   SCROLLBAR
================================ */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#38bdf8;
    border-radius:20px;
}

/* ===============================
   RESPONSIVE
================================ */

@media(max-width:900px){

    .sidebar{
        display:none;
    }

    .main{
        margin-left:0;
        padding:20px;
    }

    .timer{
        width:180px;
        height:180px;
    }

    .timer h2{
        font-size:40px;
    }

}

@media(max-width:600px){

    .buttons{
        flex-direction:column;
    }

    .preset-grid,
    .stats{
        grid-template-columns:1fr;
    }

    table{
        font-size:14px;
    }

    .header h1{
        font-size:28px;
    }

}