/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-bg: #596a74;
    --sidebar-bg: #f3f4f6;
    --main-bg: #f3f4f6;
    --footer-bg: #596a74;
    --text-color: #070b11;
    --light-text: #f9fafb;
    --accent: #29343b;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Base Layout */
body {
    color: var(--text-color);
    background: #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    /* Improves readability */
    color: #333;
    /* Dark grey text for contrast */
}

/* Header */
.header {
    background: var(--header-bg);
    color: white;
    padding: 1rem;
    text-align: center;
}

.header nav {
    margin-top: 0.5rem;
}

.header nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

.header nav a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    flex-grow: 1;
}

/* Sidebar */
.sidebar {
    background-color: #ffffff;
    background: var(--main-bg);
    /* Light, modern background */
    padding: 20px;
    border-right: 1px solid #e0e0e0;
    /* Subtle divider */
    width: 220px;
    min-height: 100vh;
    /* Full height */
    position: sticky;
    /* Stays in place on scroll */
    top: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1d;
    text-align: center;
    letter-spacing: 0.5px;
}

.task-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Space between links */
}

.task-nav a {
    text-decoration: none;
    color: #444;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.task-nav a:hover {
    background: #007bff;
    color: #fff;
    transform: translateX(5px);
    /* Smooth slide on hover */
}

.task-nav a.active {
    background: #007bff;
    /* Highlight current section */
    color: #fff;
}

.btn {
    display: inline-block;
    background: #596a74;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0b0c0c;
}

/* Main Content */
.main {
    margin-bottom: 30px;
    background-color: #ffffff;
    border-radius: 6px;
    background: var(--main-bg);
    padding: 1.5rem;
    box-shadow: 10px;
}

.main h2 {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--light-text);
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        display: block;
    }

    .header {
        text-align: center;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        position: static;
        min-height: auto;
    }

    .task-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .task-nav a {
        flex: 1 1 auto;
        text-align: center;
    }
}