/* Page Navigation Menu Styles */

/* Main Navigation Panel */
.navigation-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1900;
    pointer-events: none;
}

.navigation-panel.menu-open {
    pointer-events: auto;
}

/* Navigation Menu - Side Menu */
.navigation-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid var(--primary-color);
    overflow-y: auto;
    z-index: 1901;
}

.navigation-menu.active {
    right: 0;
}

/* Menu Overlay */
.navigation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1900;
}

.navigation-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Header */
.navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary-color);
    color: white;
    margin: 0;
}

.navigation-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.navigation-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Controls Section */
.navigation-controls {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

/* Sections Navigation */
.sections-nav {
    flex: 1;
}

.sections-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    overflow-y: auto;
}

.section-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    text-align: right;
    justify-content: flex-end;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.section-item:hover {
    background: var(--primary-color);
    color: white;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 500;
}



/* Notification */
.navigation-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.3s ease;
}

.navigation-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Scrollbar Styling */
.sections-list::-webkit-scrollbar {
    width: 6px;
}

.sections-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sections-list::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.sections-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation-menu {
        width: 320px;
        right: -320px;
    }
    

    
    .navigation-notification {
        left: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .navigation-menu {
        width: 280px;
        right: -280px;
    }
    

}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navigation-toggle {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .navigation-menu {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
}

/* Focus management for keyboard navigation */
.navigation-menu:focus-within {
    outline: none;
}

.nav-btn:focus-visible {
    outline: 3px solid rgba(30, 24, 98, 0.5);
    outline-offset: 2px;
}

/* Prevent navigation panel from being affected by accessibility features */
.invert-colors .navigation-panel {
    filter: invert(1) hue-rotate(180deg);
}

/* Ensure navigation menu stays within viewport */
.navigation-menu.position-left {
    right: auto;
    left: 80px;
}

/* Animation for smooth transitions */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
} 