/* ===================================
   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;
    height:100vh;
    position:fixed;
    background:#111827;
    padding:30px 20px;
    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{
    margin-bottom:35px;
}

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

.header p{
    color:#94a3b8;
}

/* ===================================
   GOAL FORM
=================================== */

.goal-form{
    background:#1e293b;
    padding:30px;
    border-radius:18px;
    margin-bottom:35px;
}

.goal-form h2{
    margin-bottom:20px;
}

.goal-form form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.goal-form input,
.goal-form textarea{
    width:100%;
    padding:15px;
    border:none;
    outline:none;
    border-radius:10px;
    background:#334155;
    color:#fff;
    font-size:15px;
}

.goal-form textarea{
    resize:none;
    height:120px;
}

.goal-form button{
    width:220px;
    padding:14px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    background:#0ea5e9;
    color:#fff;
    font-size:15px;
    transition:.3s;
}

.goal-form button:hover{
    background:#0284c7;
}

/* ===================================
   GOAL CARDS
=================================== */

.goal-list{
    margin-bottom:40px;
}

.goal-list h2{
    margin-bottom:20px;
}

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

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

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

.goal-card h3{
    margin-bottom:10px;
}

.goal-card p{
    color:#cbd5e1;
    margin-bottom:15px;
}

.goal-card button{
    margin-top:15px;
    margin-right:10px;
    padding:10px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#38bdf8;
    color:#fff;
    transition:.3s;
}

.goal-card button:hover{
    background:#0284c7;
}

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

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

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

/* ===================================
   DAILY GOAL
=================================== */

.daily-goal{
    margin-bottom:40px;
}

.daily-goal h2{
    margin-bottom:20px;
}

.daily-card{
    background:#1e293b;
    padding:30px;
    border-radius:18px;
    text-align:center;
}

.daily-card h3{
    color:#94a3b8;
}

.daily-card h1{
    margin:20px 0;
    font-size:42px;
}

/* ===================================
   TABLE
=================================== */

.upcoming h2{
    margin-bottom:20px;
}

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

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;
    }

}

@media(max-width:600px){

    .goal-grid{
        grid-template-columns:1fr;
    }

    .goal-form button{
        width:100%;
    }

    table{
        display:block;
        overflow-x:auto;
        font-size:14px;
    }

    .daily-card h1{
        font-size:32px;
    }

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

}