/* Navigation Drawer Styles */

/* Header */
header {
    background-color: #383B4F;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

header h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #93c5fd;
    margin: 0;
}

/* Navigation Drawer Toggle Button */
.nav-drawer-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-drawer-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #e5e7eb;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-drawer-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-drawer-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-drawer-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #2C2E3B 0%, #383B4F 100%);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-drawer.open {
    left: 0;
}

/* Drawer Header */
.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #4b5563;
    background-color: #383B4F;
}

.nav-drawer-header h2 {
    color: #93c5fd;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.nav-drawer-close {
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-drawer-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Drawer Content */
.nav-drawer-content {
    flex: 1;
    padding: 1rem 0;
}

.nav-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-drawer-item {
    margin: 0;
}

.nav-drawer-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-drawer-link:hover {
    background-color: rgba(147, 197, 253, 0.1);
    color: #93c5fd;
    border-left-color: #93c5fd;
}

.nav-drawer-link.active {
    background-color: rgba(147, 197, 253, 0.15);
    color: #93c5fd;
    border-left-color: #2563eb;
    font-weight: 600;
}

.nav-drawer-link.active::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #2563eb;
    border-radius: 50%;
}

.nav-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Drawer Footer */
.nav-drawer-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #4b5563;
    background-color: #2C2E3B;
}

.nav-drawer-footer p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-drawer {
        width: 280px;
        left: -280px;
    }
    
    .nav-drawer-header h2 {
        font-size: 1.125rem;
    }
    
    .nav-drawer-link {
        padding: 0.875rem 1.25rem;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-drawer {
        width: 100%;
        left: -100%;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    .nav-wrapper {
        padding: 0.75rem 0;
    }
}

/* Focus styles for accessibility */
.nav-drawer-toggle:focus,
.nav-drawer-close:focus,
.nav-drawer-link:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
    .nav-drawer,
    .nav-overlay,
    .hamburger-line,
    .nav-drawer-toggle,
    .nav-drawer-link {
        transition: none;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .nav-drawer {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }
    
    .nav-drawer-header {
        background-color: #2a2a2a;
        border-bottom-color: #404040;
    }
    
    .nav-drawer-footer {
        background-color: #1a1a1a;
        border-top-color: #404040;
    }
}