:root {
    --bg: #0f172a;
    --sidebar: #111827;
    --todoElements: #1f293780;
    --nav: #1f2937;
    --nav-hover: #233145;
    --card: rgba(255, 255, 255, .08);
    --card-border: rgba(255, 255, 255, .1);
    --text: #ffffff;
    --text-secondary: #9ca3af;
    --url: url("https://i.pinimg.com/1200x/23/f2/f9/23f2f9e0ea92c3367cec9fb69df1d6ea.jpg")
}

body.light-theme {
    --bg: #f3f4f6;
    --sidebar: #ffffff;
    --todoElements: #e2dfde9e;
    --nav: #f1f5f9;
    --nav-hover: #e2e8f0;
    --card: #ffffff;
    --card-border: #d1d5db;
    --text: #111827;
    --text-secondary: #4b5563;
    --url: url("https://i.pinimg.com/1200x/40/c5/5b/40c55b9592d61cd56df9f408c3d54a2b.jpg")
}

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

body {
    display: flex;
    color: var(--text);
    font-size: large;
    transition: .3s;
}

.bg-img {
    z-index: -10;
    position: fixed;
    height: 100vh;
    width: 100vw;
    background: var(--url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


.theme {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    background: var(--nav);
    transition: .3s;
}

.theme:hover {
    background: var(--nav-hover);
}

.theme i {
    font-size: 22px;
}

.sidebar {
    position: relative;

    width: 280px;
    min-height: 100vh;
    background: var(--sidebar);
    padding: 0px 24px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 0px;
    position: sticky;
    top: 0;
}

.side-nav a {
    display: flex;
    gap: 20px;
    padding: 15px;
    margin: 8px 0;
    background: var(--nav);
    border-radius: 8px
}

.main {
    flex: 1;
}

header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px 10px 32px;
    background-color: var(--sidebar);
}

.view-section-title {
    color: var(--text);
}

.view-section {
    display: none;
    padding: 38px 64px;
}

.view-section.active {
    display: block;
}

#dashboardQuote {
    font-weight: bolder;
    width: 70%;
    font-size: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px var(--nav);
    margin: 100px auto;
    color: var(--text);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

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

.card {
    background: var(--card);
    backdrop-filter: blur(12px);
    padding: 28px;
    border-radius: 18px;
    min-height: 180px;
    border: 1px solid var(--card-border);
}

#darkModeToggle {
    border-radius: 50%;
    height: 30px;
    width: 30px;
    display: flex;
    background-color: var(--nav);
    align-items: center;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all .1s ease;
}

.fill-icon {
    display: none;
}

.outline-icon {
    display: inline-block;
}

.nav-item.active,
.nav-item:hover {
    background: var(--nav-hover);
    color: var(--text);
    transform: translatex(4px) scale(1.04);
}

.nav-item.active .outline-icon {
    display: none;
}

.nav-item.active .fill-icon {
    display: inline-block;
}

.todo-header {
    margin-bottom: 30px;
    color: gray;
}

.todo-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.todo-input-container input {
    flex: 1;
    padding: 15px 18px;
    border: none;
    outline: none;
    border-radius: 12px;
    background: var(--todoElements);
    color: var(--text);
    font-size: 16px;
}

.todo-input-container button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #3b82f6;
    color: white;
    font-weight: 600;
}

.todo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    border: none;
    cursor: pointer;
    background: var(--todoElements);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 30px;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--todoElements);
    padding: 10px 18px;
    border-radius: 12px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--todoElements);
    border-radius: 14px;
}

.task-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.task.completed span {
    text-decoration: line-through;
    opacity: .6;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.task-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.todo-footer {
    padding-left: 5px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar {
    margin-top: 5px;
    width: 250px;
    height: 10px;
    background: var(--todoElements);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: #3b82f6;
    transition: .3s;
}

#clearCompleted {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #f53d3a;
    color: white;
    font-weight: 600;
    transition: .1s;
}

#clearCompleted:hover {
    background-color: #ac3230;
}

.planner-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 25px;
}

.planner-header p {
    color: gray;
}

#clearPlanner {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #ef4444;
    color: white;
    font-weight: bold;
}

#plannerDate {
    margin-bottom: 20px;
}

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

.time-slot {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    align-items: center;
    gap: 20px;
    background: var(--todoElements);
    padding: 18px;
    border-radius: 14px;
}

.time {
    font-weight: bold;
    color: var(--text);
}

.plan-input {
    padding: 14px;
    border: none;
    outline: none;
    border-radius: 10px;
    background: var(--sidebar);
    color: var(--text);
}

.save-plan {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #3b82f6;
    color: white;
    font-size: 18px;
}

.current-hour {
    border-left: 5px solid #3b82f6;
}

.goals-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 25px;
}

.goals-header p {
    color: gray;
}

#clearGoals {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #ef4444;
    color: white;
    font-weight: bold;
}

.goal-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.goal-input-container input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    border-radius: 10px;
    background: var(--todoElements);
    color: var(--text);
}

.goal-input-container button {
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
}

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

.goal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--todoElements);
    padding: 18px;
    border-radius: 12px;
}

.goal-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.goal.completed span {
    text-decoration: line-through;
    opacity: .6;
}

.goal-actions {
    display: flex;
    gap: 10px;
}

.goal-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.goal-progress {
    width: 300px;
    height: 10px;
    background: var(--todoElements);
    border-radius: 30px;
    margin-top: 10px;
    overflow: hidden;
}

#goalProgressFill {
    width: 0;
    height: 100%;
    background: #3b82f6;
    transition: .3s;
}

.pomodoro-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.timer-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.mode-btn {
    border: none;
    background: #1f2937;
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
}

.mode-btn.active {
    background: #3b82f6;
}

.timer-circle {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 40px auto;
}

.timer-circle svg {
    transform: rotate(-90deg);
}

.bg-circle {
    fill: none;
    stroke: #334155;
    stroke-width: 12;
}

.progress-circle {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 691;
    stroke-dashoffset: 0;
    transition: .5s linear;
}

.timer-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.timer-controls button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: #3b82f6;
    color: white;
    font-size: 24px;
}

.session-info {
    margin-top: 30px;
    font-size: 20px;
}

.weather-header {
    color: gray;
}

.weather-search {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.weather-search input {
    flex: 1;
    padding: 16px;
    border: none;
    outline: none;
    border-radius: 12px;
    background: var(--todoElements);
    color: var(--text);
}

.weather-search button {
    width: 60px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #3b82f6;
    color: white;
}

.weather-card {
    margin: 0 auto;
    max-width: 400px;
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    background: var(--todoElements);
}

.weather-card img {
    width: 120px;
}

.weather-card h1 {
    font-size: 4rem;
}

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

.detail-card {
    padding: 25px;
    border-radius: 18px;
    background: var(--todoElements);
    text-align: center;
}

.detail-card i {
    font-size: 30px;
    color: #3b82f6;
    margin-bottom: 10px;
}

.detail-card span {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.quotes-header {
    text-align: center;
    margin-bottom: 40px;
    color: gray;
}

.quote-card {
    max-width: 750px;
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    background: var(--todoElements);
    text-align: center;
}

.quote-icon {
    font-size: 60px;
    color: #3b82f6;
}

#quoteText {
    font-size: 28px;
    line-height: 1.6;
    margin: 25px 0;
}

#quoteAuthor {
    color: #9ca3af;
    margin-bottom: 30px;
}

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

.quote-buttons button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #3b82f6;
    color: white;
    transition: .3s;
}

.quote-buttons button:hover {
    transform: translateY(-3px);
}

.dashboard-top {
    background-color: var(--todoElements);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

.dashboard-card {
    background: var(--todoElements);
    padding: 25px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-card i {
    font-size: 35px;
    color: #3b82f6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-panel {
    background: var(--todoElements);
    padding: 25px;
    border-radius: 18px;
    min-height: 250px;
}

.dashboard-panel h3 {
    margin-bottom: 20px;
}

/* hamburger menu*/

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--nav);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.463);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 98;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width:768px) {

    .menu-btn {
        display: flex;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 260px;
        height: 100vh;
        z-index: 99;
        transition: .3s;
        padding: 20px;
    }

    .dashboard-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .sidebar.show {
        left: 0;
    }

    .logo-img {
        display: block;
    }

    .side-nav nav {
        display: block;
    }

    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .nav-item span {
        font-size: 16px;
    }

    .main {
        width: 100%;
    }
}


/* fpr tablet view */

@media (max-width:1024px) {
    .view-section-title{
        font-size: larger;
    }

    .sidebar {
        width: 220px;
        padding: 0 16px;
    }

    .view-section {
        padding: 28px;
    }

    header {
        padding: 24px;
    }

    #dashboardQuote {
        width: 100%;
        font-size: 24px;
    }

    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
}
