/* Sidebar Filters - Whooho Digital Experience */
/* Simplified version with visible labels and underline animation */

/* Sidebar Navbar */
.sidebar-navbar {
    position: fixed;
    top: 70vh;
    left: 0;
    background: #fff;
    border-radius: 0 16px 16px 0;
    padding: 20px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 220px;
    border: 2px solid #000;
    border-left: none;
    transition: top 0.3s ease;
}

.sidebar-navbar__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-navbar__item {
    position: relative;
}

.sidebar-navbar__link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-navbar__link svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #111 !important;
    flex-shrink: 0;
    fill: none !important;
}

.sidebar-navbar__link span {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
    white-space: nowrap;
    color: #111 !important;
    position: static !important;
    transform: none !important;
    pointer-events: auto;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Underline animation - same as main menu */
.sidebar-navbar__link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    width: 0%;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.sidebar-navbar__link:hover::after,
.sidebar-navbar__link.active::after {
    width: calc(100% - 40px);
}

.sidebar-navbar__link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.sidebar-navbar__link.active {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Adjust main content when sidebar is present */
@media (min-width: 769px) {
    body.has-sidebar .tools-section {
        margin-left: 240px;
        transition: margin-left 0.3s ease;
    }
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
    .sidebar-navbar {
        display: none;
    }
    
    body.has-sidebar .tools-section {
        margin-left: 0;
    }
    
    /* Keep horizontal filters visible on mobile */
    .tools-filters {
        display: flex !important;
    }
}

/* Force black icons and visible labels - highest priority */
.sidebar-navbar .sidebar-navbar__link svg,
.sidebar-navbar__menu .sidebar-navbar__link svg,
nav.sidebar-navbar svg {
    stroke: #111 !important;
    fill: none !important;
    color: #111 !important;
}

.sidebar-navbar .sidebar-navbar__link span,
.sidebar-navbar__menu .sidebar-navbar__link span,
nav.sidebar-navbar span {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
}

/* Ensure border is visible */
nav.sidebar-navbar {
    border: 2px solid #000 !important;
    border-left: none !important;
}

/* Reduce font size for labels */
.sidebar-navbar__link span {
    font-size: 11px !important;
}

/* Submenu styles */
.sidebar-submenu {
    background: #f8f8f8;
    border-left: 3px solid #FFC700;
    margin-left: 20px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.sidebar-submenu.active {
    max-height: 600px;
    padding: 10px 0;
}

.sidebar-submenu__item {
    display: block;
    padding: 8px 15px;
    font-size: 11px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar-submenu__item:hover {
    background: #fff;
    color: #000;
    border-left-color: #000;
    padding-left: 18px;
}

@media (max-width: 768px) {
    nav.sidebar-navbar {
        display: none;
    }
}
