﻿

.bar {
    width: 250px;
    height: 100vh;
    background-color: white;
    border-right: 1px solid var(--color-beige);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
}

.bar-brand {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.bar-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem;
}

.bar-item {
    display: block;
    width: 100%;
}

    .bar-item a,
    .bar-item .bar-dropdown-toggle {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        font-family: var(--nav-font);
        font-size: 16px;
        color: var(--nav-color);
        text-decoration: none;
        transition: background-color 0.3s;
    }

        .bar-item a:hover,
        .bar-item .bar-dropdown-toggle:hover {
            background-color: var(--accent-color);
            color: var(--contrast-color);
            border-radius: 4px;
        }

.dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    padding-left: 1rem;
    margin-top: 0.3rem;
}

.bar-item:hover .dropdown-menu,
.bar-item:focus-within .dropdown-menu {
    display: flex;
}

.dropdown-item {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--nav-dropdown-color);
}

    .dropdown-item:hover {
        color: var(--nav-dropdown-hover-color);
    }

    .dropdown-item img {
        height: 30px;
        width: 30px;
        object-fit: contain;
        margin-right: 0.5rem;
    }
