/* Fixed Left Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    padding: 30px 0;
    z-index: 1000;
    overflow-y: auto;
}

/* Gallery Title */
.gallery-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 10px 20px 20px 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    letter-spacing: 0.5px;
}

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

.nav-links > li {
    margin: 0;
    width: 100%;
    list-style: none;
    position: relative;
}

.nav-links > li > a {
    display: block;
    padding: 15px 25px;
    width: 100%;
    font-size: 16px;
    color: #6D6968;
    text-decoration: none;
    transition: all 0.2s;
    text-align: left;
}

.nav-links > li > a:hover {
    color: #222;
    font-weight: 600;
    background-color: #f0f0f0;
}

.nav-links > li > a.active {
    color: #222;
    font-size: 16px;
    text-decoration: underline;
}

/* Submenu Flyout */
.has-submenu {
    position: relative;
}

.submenu-flyout {
    position: fixed;
    left: 200px;
    top: 0;
    width: 180px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    padding: 30px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
}

.has-submenu:hover .submenu-flyout {
    opacity: 1;
    visibility: visible;
}

.submenu-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.submenu-links li {
    margin: 0;
    width: 100%;
}

.submenu-links a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    color: #8D918D;
    text-decoration: none;
    transition: all 0.2s;
    text-align: left;
}

.submenu-links a:hover {
    color: #222;
    background-color: #f9f9f9;
    padding-left: 25px;
}

.submenu-links a.active {
    color: #222;
    font-size: 13px;
    text-decoration: underline;
}

/* Adjust body for sidebar offset and top spacing */
body {
    margin-left: 200px;
    padding-top: 70px; /* Space for header (10px + 18px text + 20px + 2px border + some margin) */
}

/* Page header space - aligned with sidebar title */
.page-header {
    position: fixed;
    top: 0;
    left: 200px;
    right: 0;
    height: auto;
    background-color: #ffffff;
    border-bottom: none;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 10px 30px 20px 30px;
}

.page-header span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

/* Hide legacy horizontal navigation */
.tabs,
.tab-links,
.show,
.show-legacy,
.show ul,
.show-links {
    display: none !important;
}
