/* Navigation Strip */
.nav-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background-color: #2c3e50;
    z-index: 1000; /* Higher than the overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.nav-strip-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-strip-logo .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hamburger-menu {
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    background: #34495e !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    transition: all 0.3s ease;
    position: relative;
    opacity: 1 !important;
}

.hamburger-menu:hover {
    background: #3d566e !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.hamburger-menu:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ecf0f1;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sliding navigation */
.sliding-nav {
    position: fixed;
    top: 0;
    left: 60px;
    width: 300px;
    height: 100%;
    background-color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sliding-nav.open {
    transform: translateX(0);
}

/* Close button styling */
.close-nav {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 5px;
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-nav:hover {
    color: #2c3e50;
    background-color: #f0f0f0;
}

.nav-content {
    padding: 10px 20px 80px 20px; /* Reduced top padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Navigation buttons */
.nav-button {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    margin: 4px 0;
}

.nav-button h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    pointer-events: none; /* Makes the text non-interactive, so clicks pass through to the button */
}

.nav-button h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.nav-button:hover {
    background-color: #f5f5f5;
    color: #2c3e50;
    border-left-color: #2c3e50;
}

.nav-button.active {
    background-color: #f0f7ff;
    color: #0066cc;
    font-weight: 500;
    border-left: 4px solid #2c3e50;
}

.nav-button.active h3 {
    color: #2c3e50;
}

/* Profile section */
.profile-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}

.profile-button {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.profile-button:hover {
    background-color: #f5f5f5;
}

.profile-icon {
    margin-right: 10px;
    color: #6c757d;
}

/* Close button */
.close-nav {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-nav:hover {
    background-color: #f5f5f5;
    color: #333;
}

.close-nav:hover {
    color: #333;
}

/* Main content */
.main-content {
    margin-left: 0;
    padding: 80px 20px 20px;
    transition: margin 0.3s ease;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sliding-nav {
        width: 280px;
    }
    
    .main-content {
        padding: 70px 15px 15px;
    }
}

/* Navigation sections */
.nav-section {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-section h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    pointer-events: none;
}

/* Dashboard list */
.dashboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Accordion Styles */
.accordion-item {
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    padding: 15px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
}

.accordion-header:hover {
    background-color: #f5f5f5;
}

.accordion-header.active {
    background-color: #e9ecef;
}

.accordion-content {
    display: none;
    padding: 10px 15px;
}

.chevron {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.accordion-header.active .chevron {
    transform: rotate(180deg);
}

/* Main Content Layout */
body:not(.dashboard-page) {
    padding-left: 60px;
    margin: 0;
    background-color: #f8f9fa;
    min-height: 100vh;
    overflow-y: auto;
}

body:not(.dashboard-page) .main-content {
    padding: 20px;
}

/* Dashboard specific overrides */
.dashboard-page {
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}

.dashboard-page .nav-strip {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
}

.dashboard-page .sliding-nav {
    position: fixed;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 3;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s ease, visibility 0.3s, opacity 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.dashboard-page .sliding-nav.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.dashboard-page .main-content {
    padding: 0;
    display: flex;
    flex: 1;
    margin-left: 60px; /* Account for nav strip */
    overflow-y: auto;
}
