/* Navigation System Styles - BioRemPP v1.0 */

/* ========================================
   Smooth Scroll Behavior
   ======================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Account for fixed header */
}

/* Scroll margin for target sections */
[id] {
    scroll-margin-top: 100px;
}

/* ========================================
   Navigation Button Animations
   ======================================== */
#nav-toggle-button {
    transition: all 0.3s ease;
}

#nav-toggle-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}
}

/* ========================================
   Offcanvas Customization
   ======================================== */
#navigation-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
    padding: 1.5rem;
}

#navigation-offcanvas .offcanvas-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

#navigation-offcanvas .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#navigation-offcanvas .btn-close:hover {
    opacity: 1;
}

/* Offcanvas body padding and background */
#navigation-offcanvas .offcanvas-body {
    padding: 1.5rem;
    background-color: #f1f8f4;
}

/* Custom scrollbar for offcanvas */
#navigation-offcanvas .offcanvas-body::-webkit-scrollbar {
    width: 8px;
}

#navigation-offcanvas .offcanvas-body::-webkit-scrollbar-track {
    background: #e8f5e9;
    border-radius: 10px;
}

#navigation-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
    background: #81c784;
    border-radius: 10px;
}

#navigation-offcanvas .offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: #66bb6a;
}

/* Firefox scrollbar */
#navigation-offcanvas .offcanvas-body {
    scrollbar-width: thin;
    scrollbar-color: #81c784 #e8f5e9;
}

/* ========================================
   Navigation Items Styling
   ======================================== */
#navigation-offcanvas .list-group-item {
    background-color: transparent;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

#navigation-offcanvas .list-group-item:hover {
    background-color: #e8f5e9;
    padding-left: 1.25rem;
    border-left: 3px solid #66bb6a;
}

#navigation-offcanvas .list-group-item:active {
    background-color: #c8e6c9;
}

/* Indented use case items */
#navigation-offcanvas .list-group-item.ps-4:hover {
    padding-left: 2rem !important;
}

/* Section headers */
#navigation-offcanvas h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2e7d32;
}

/* Icon styling */
#navigation-offcanvas .list-group-item i {
    width: 20px;
    text-align: center;
    opacity: 0.7;
    color: #66bb6a;
}

#navigation-offcanvas .list-group-item:hover i {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* ========================================
   Active Section Highlighting
   ======================================== */
#navigation-offcanvas .list-group-item.active {
    background-color: #66bb6a;
    color: white;
    border-left: 3px solid #43a047;
    font-weight: 600;
}

#navigation-offcanvas .list-group-item.active i {
    opacity: 1;
    color: white;
}

/* ========================================
   Mobile Responsiveness
   ======================================== */
@media (max-width: 768px) {

    /* Wider offcanvas on mobile */
    #navigation-offcanvas {
        width: 100% !important;
        max-width: 400px;
    }

    /* Adjust button size and position */
    #navigation-button-container {
        bottom: 60px !important;
        right: 15px !important;
    }

    #nav-toggle-button {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }

    /* Reduce scroll padding on mobile */
    html {
        scroll-padding-top: 80px;
    }

    [id] {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 576px) {

    /* Full width offcanvas on small screens */
    #navigation-offcanvas {
        width: 100% !important;
        max-width: 100%;
    }

    /* Compact button on very small screens */
    #nav-toggle-button span {
        display: none;
    }

    #nav-toggle-button {
        border-radius: 50% !important;
        width: 50px;
        height: 50px;
        padding: 0 !important;
    }

    #nav-toggle-button i {
        margin: 0 !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    #navigation-button-container,
    #navigation-offcanvas {
        display: none !important;
    }
}

/* ========================================
   Accessibility Enhancements
   ======================================== */
/* Focus styles for keyboard navigation */
#nav-toggle-button:focus {
    outline: 3px solid rgba(102, 187, 106, 0.5);
    outline-offset: 2px;
}

#navigation-offcanvas .list-group-item:focus {
    outline: 2px solid #66bb6a;
    outline-offset: -2px;
    background-color: #e8f5e9;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #nav-toggle-button,
    #navigation-offcanvas .list-group-item,
    #navigation-offcanvas .list-group-item i {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================================
   Loading State
   ======================================== */
#navigation-offcanvas.loading .offcanvas-body {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   Tooltip Enhancements (Optional)
   ======================================== */
.nav-tooltip {
    font-size: 0.85rem;
    max-width: 250px;
}