/* Material Design Navigation Drawer */
.navigation {
    position: fixed;
    left: 0;
    top: 60px; /* Below header */
    bottom: 0;
    width: 280px;
    background-color: var(--surface-color);
    box-shadow: 2px 0 4px -1px rgba(0,0,0,0.2), 4px 0 5px 0 rgba(0,0,0,0.14), 1px 0 10px 0 rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 100;
    padding: 0;
    margin: 0;
}

.nav-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    padding-left: 20px; /* 16px + 4px for border */
    margin: 0;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.87);
    border: none;
    border-left: 4px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

.nav-button .material-icons {
    font-size: 24px;
    margin-right: 32px;
    color: rgba(0, 0, 0, 0.54);
    transition: color 0.2s ease;
}

.nav-button .nav-button-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.nav-button.active {
    background-color: rgba(21, 101, 192, 0.12);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-button.active .material-icons {
    color: var(--primary-color);
}

.nav-button.completed {
    color: rgba(0, 0, 0, 0.87);
}

.nav-button.completed::after {
    content: '✓';
    position: absolute;
    right: 16px;
    color: var(--success-color);
    font-size: 14px;
    font-weight: bold;
}

/* Home button styling */
a.nav-button {
    text-decoration: none;
    display: flex;
    box-sizing: border-box;
}

.nav-button.home-button {
    background-color: rgba(0, 0, 0, 0.02);
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.nav-button.home-button:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.nav-button.home-button .material-icons {
    color: var(--primary-color);
}

/* Navigation divider */
.nav-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
    margin: 8px 0;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .navigation {
        transform: translateX(-280px);
        transition: transform 0.3s ease;
    }

    .navigation.open {
        transform: translateX(0);
    }
}

/* Mobile menu button - hidden on desktop */
.mobile-menu-button {
    display: none;
    position: fixed;
    top: 70px;
    left: 10px;
    z-index: 101;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Overlay for mobile */
.navigation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.navigation-overlay.open {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
}