/* Sidebar Navigation Styles */

/* Sidebar Wrapper */
.gp-sidebar-nav-wrapper {
    position: relative;
    z-index: 1000;
}

/* Toggle Button */
.gp-sidebar-toggle {
    position: fixed;
    left: 10px;
    top: 25vh;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #008a99;
    border: 2px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.gp-sidebar-toggle:hover {
    background: #00a5b5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.05);
}

.gp-sidebar-toggle span {
    display: block !important;
    width: 26px !important;
    height: 3px !important;
    background-color: white !important;
    margin: 3px 0 !important;
    border-radius: 2px !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.gp-sidebar-toggle:hover span {
    background-color: #f0f0f0 !important;
}

/* Hide toggle button when sidebar is active */
.gp-sidebar-toggle.active {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-60px);
}

.gp-sidebar-toggle.active span {
    display: none !important;
}

/* Sidebar Navigation */
.gp-sidebar-nav {
    position: fixed;
    left: -280px;
    top: calc(25vh - 25px);
    transform: none;
    width: 280px;
    height: auto;
    max-height: 75vh;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.gp-sidebar-nav.active {
    left: 0;
}

/* Sidebar Header */
.gp-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    position: relative;
}

.gp-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.gp-sidebar-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    font-weight: normal;
    line-height: 1;
}

.gp-sidebar-close:hover {
    color: #333;
    transform: translateY(-50%) rotate(90deg);
}

/* Sidebar Menu */
.gp-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 15px 0;
    position: relative;
}

/* Vertical line */
.gp-sidebar-menu::before {
    content: '';
    position: absolute;
    left: 31px; /* Centered with circles: 25px (left position) + 6px (half of 12px circle width) */
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.gp-sidebar-item {
    position: relative;
    margin: 0;
}

.gp-sidebar-link {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 50px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

/* Circle indicator */
.gp-sidebar-link::before {
    content: '';
    position: absolute;
    left: 25px;
    width: 12px;
    height: 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.gp-sidebar-link:hover {
    color: #333;
}

.gp-sidebar-link:hover::before {
    border-color: #00d1e4;
    background: #e5f3f5;
}

.gp-sidebar-link.active,
.gp-sidebar-link.current-section {
    color: #00d1e4;
    font-weight: 600;
}

.gp-sidebar-link.active::before,
.gp-sidebar-link.current-section::before {
    border-color: #00d1e4;
    background: #00d1e4;
    box-shadow: 0 0 0 4px rgba(0, 209, 228, 0.2);
}

.gp-sidebar-icon {
    display: none;
}

.gp-has-submenu.expanded .gp-sidebar-link {
    color: #00d1e4;
}

.gp-sidebar-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

/* Submenu */
.gp-sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.gp-has-submenu.expanded .gp-sidebar-submenu {
    max-height: 500px;
}

.gp-sidebar-submenu li {
    position: relative;
}

.gp-sidebar-submenu a {
    display: block;
    padding: 6px 20px 6px 65px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

/* Small circle for submenu items */
.gp-sidebar-submenu a::before {
    content: '';
    position: absolute;
    left: 29px; /* Centered with line: 31px (line position) - 3px (half of 6px circle width) + 1px (border) */
    width: 6px;
    height: 6px;
    border: 1px solid #d0d0d0;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.gp-sidebar-submenu a:hover {
    color: #333;
}

.gp-sidebar-submenu a:hover::before {
    border-color: #00d1e4;
    background: #e5f3f5;
}

.gp-sidebar-submenu a.current-section {
    color: #00d1e4;
    font-weight: 500;
}

.gp-sidebar-submenu a.current-section::before {
    border-color: #00d1e4;
    background: #00d1e4;
}

/* Overlay - completely removed to not gray out the screen */
.gp-sidebar-overlay {
    display: none !important; /* Force hide always */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.gp-sidebar-overlay.active {
    display: none !important; /* Force hide even when active */
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .gp-sidebar-toggle {
        left: 10px;
        top: 25vh;
    }
    
    .gp-sidebar-nav {
        width: 280px;
        left: -300px;
        top: calc(25vh - 25px);
        transform: none;
    }
    
    .gp-sidebar-nav.active {
        left: 0;
    }
    
    /* Don't shift content - overlay instead */
    body.sidebar-active #gp-content-wrapper {
        margin-left: 0;
    }
    
    /* Overlay disabled on desktop too */
    .gp-sidebar-overlay {
        display: none !important;
    }
    
    .gp-sidebar-overlay.active {
        display: none !important; /* Keep hidden even when active */
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
    .gp-sidebar-nav {
        width: 260px;
        left: -280px;
        top: calc(25vh - 25px);
        transform: none;
    }
    
    .gp-sidebar-nav.active {
        left: 0;
    }
    
    .gp-sidebar-toggle {
        left: 10px;
        top: 25vh;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .gp-sidebar-toggle {
        position: fixed;
        top: auto !important;
        bottom: 25vh !important;
        left: 10px;
        transform: none !important;
        width: 40px;
        height: 40px;
        padding: 8px;
        z-index: 10001;
        background: #008a99;
        border: 2px solid #fff;
        box-shadow: 0 3px 10px rgba(0,0,0,0.4);
        border-radius: 10px;
    }
    
    .gp-sidebar-toggle span {
        width: 18px !important;
        height: 2px !important;
        margin: 2px 0 !important;
    }
    
    .gp-sidebar-toggle.active {
        transform: translateX(-40px);
    }
    
    .gp-sidebar-nav {
        position: fixed;
        width: 85%;
        max-width: 280px;
        left: -100%;
        top: auto !important;
        bottom: 25vh !important;
        transform: none !important;
        max-height: 70vh;
    }
    
    .gp-sidebar-nav.active {
        left: 0;
    }
    
    .gp-sidebar-header {
        padding: 12px 15px;
    }
    
    .gp-sidebar-header h3 {
        font-size: 14px;
    }
    
    .gp-sidebar-close {
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
    
    .gp-sidebar-link {
        padding: 10px 15px 10px 45px;
        font-size: 13px;
    }
    
    .gp-sidebar-text {
        font-size: 13px;
    }
    
    .gp-sidebar-submenu a {
        padding: 8px 15px 8px 55px;
        font-size: 12px;
    }
    
    /* Adjust circle indicators for mobile */
    .gp-sidebar-menu::before {
        left: 20px;
    }
    
    .gp-sidebar-link::before {
        left: 15px;
        width: 10px;
        height: 10px;
    }
    
    .gp-sidebar-submenu a::before {
        left: 18px;
        width: 5px;
        height: 5px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Highlight current section */
.gp-sidebar-link.current-section {
    background: #e5f3f5;
    color: #00d1e4;
    font-weight: 600;
    border-left: 3px solid #00d1e4;
}

/* Animation for first load */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gp-sidebar-nav.active .gp-sidebar-item {
    animation: slideIn 0.3s ease forwards;
}

.gp-sidebar-nav.active .gp-sidebar-item:nth-child(1) { animation-delay: 0.05s; }
.gp-sidebar-nav.active .gp-sidebar-item:nth-child(2) { animation-delay: 0.1s; }
.gp-sidebar-nav.active .gp-sidebar-item:nth-child(3) { animation-delay: 0.15s; }
.gp-sidebar-nav.active .gp-sidebar-item:nth-child(4) { animation-delay: 0.2s; }
.gp-sidebar-nav.active .gp-sidebar-item:nth-child(5) { animation-delay: 0.25s; }
.gp-sidebar-nav.active .gp-sidebar-item:nth-child(6) { animation-delay: 0.3s; }
.gp-sidebar-nav.active .gp-sidebar-item:nth-child(7) { animation-delay: 0.35s; }
