/* =========================
   GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #080b18;
    color: white;
    min-height: 100vh;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;

    width: 240px;
    height: 100vh;

    padding: 25px 15px;

    background: #10152b;
    border-right: 1px solid #252b4a;
}

.sidebar h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar a {
    text-decoration: none;
    color: #b9bfd8;

    padding: 12px 15px;
    border-radius: 10px;

    transition: 0.3s;
}

.sidebar a:hover {
    background: #20284b;
    color: white;
    transform: translateX(5px);
}


/* =========================
   MAIN CONTENT
========================= */

.main-content {
    margin-left: 240px;
    padding: 30px;
}


/* =========================
   TOP BAR
========================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 35px;
}

.topbar h2 {
    font-size: 24px;
}

#darkModeBtn {
    border: none;
    background: #20284b;
    color: white;

    padding: 10px 14px;
    border-radius: 10px;

    cursor: pointer;
    font-size: 18px;
}


/* =========================
   WELCOME
========================= */

.welcome {
    margin-bottom: 30px;
}

.welcome h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.welcome p {
    color: #9da5c5;
}

/* =========================
   STAT CARDS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    margin-bottom: 25px;
}

.card {
    background: #11172d;

    padding: 20px;

    border: 1px solid #252b4a;
    border-radius: 15px;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #6674ff;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    font-size: 30px;
    font-weight: bold;

    margin-bottom: 5px;
}

.card span {
    color: #8f97b5;
    font-size: 14px;
}


/* =========================
   DASHBOARD GRID
========================= */

.dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: #11172d;

    padding: 25px;

    border: 1px solid #252b4a;
    border-radius: 15px;
}

.dashboard-card h2 {
    margin-bottom: 20px;
}


/* =========================
   TO-DO PREVIEW
========================= */

#todoPreview {
    list-style: none;
    margin-bottom: 20px;
}



.dashboard-card a {
    color: #8d98ff;
    text-decoration: none;
}

.dashboard-card a:hover {
    text-decoration: underline;
}


/* =========================
   TIMER
========================= */

#timer {
    text-align: center;

    font-size: 50px;
    font-weight: bold;

    margin: 20px 0;
}

.dashboard-card button {
    border: none;

    padding: 10px 18px;
    margin-right: 8px;

    border-radius: 8px;

    

    cursor: pointer;
}




/* =========================
   QUICK NOTE
========================= */

#quickNote {
    width: 100%;
    height: 120px;

    resize: none;

    padding: 12px;

    background: rgb(7, 8, 31);
    color: white;

    border: 1px solid #30385f;
    border-radius: 10px;

    margin-bottom: 10px;
}

#quickNote:focus {
    outline: none;
    border-color: #6674ff;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .sidebar {
        width: 190px;
    }

    .main-content {
        margin-left: 190px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}
/* =========================
   LIGHT MODE
========================= */

body.light-mode {
    background: #f2f4fa;
    color: #171a2b;
}

body.light-mode .sidebar {
    background: #ffffff;
    border-color: #dddddd;
}

body.light-mode .sidebar a {
    color: #555b72;
}

body.light-mode .sidebar a:hover {
    background: #e9ecf5;
    color: #171a2b;
}

body.light-mode .card{
    background: #ffffff;
    
}
body.light-mode .dashboard-card {
    background: #ffffff;
    border-color: #dddddd;
}

body.light-mode .card span,
body.light-mode .welcome p {
    color: #666b7d;
}

body.light-mode #quickNote {
    background: #f5f6fa;
    color: #171a2b;
}
body.light-mode #todoPreview li{
   background: #ede8e8;
}

/* =========================
   LIGHT MODE - TIMER
========================= */

body.light-mode #startBtn,
body.light-mode #resetBtn,
body.light-mode #pauseBtn {
    background-color: #6674ff ;
    color: #ffffff;
    border: 1px solid #cccccc;
}

body.light-mode #startBtn:hover,
body.light-mode #resetBtn:hover,
body.light-mode #pauseBtn:hover {
    background-color:rgb(69, 107, 222) ;
    color: #ffffff;
}

body.light-mode #saveNoteBtn { background-color: #6674ff; color: white;   }
body.light-mode #saveNoteBtn:hover { background-color:rgb(69, 107, 222) ; color: white;}

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
    }

    .sidebar {
        padding: 18px 12px;
        border-right: 0;
        border-bottom: 1px solid #252b4a;
    }

    .sidebar h1 {
        margin-bottom: 14px;
        font-size: 21px;
    }

    .sidebar nav {
        gap: 6px;
    }

    .sidebar a {
        flex: 1 1 135px;
        padding: 10px;
        text-align: center;
    }

    .sidebar a:hover {
        transform: none;
    }

    .main-content {
        padding: 18px 14px 28px;
    }

    .topbar {
        gap: 12px;
        margin-bottom: 24px;
    }

    .topbar h2 {
        font-size: 20px;
    }

    .welcome h1 {
        font-size: 26px;
    }

    .dashboard-card {
        padding: 18px;
    }

    .dashboard-card button {
        margin: 4px 4px 4px 0;
        min-height: 44px;
    }

    #timer {
        font-size: 42px;
    }
}
