/* Frontend Sidebar CSS */

.ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.li,
.cat-parent,
.dropdown,
.no-children {
    list-style: none;
    margin: 1px 0 !important;
}

.toggle-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 15px 30px !important;
    background: var(--brand-blue); /* was grey gradient */
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /*border-radius: 5px;*/
}

.toggle-button.active {
    background: var(--brand-red); /* brand blue on active */
}

.toggle-button:hover {
    background: var(--brand-red); /* brand blue on hover */
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-button a {
    width: 100%;
    color: var(--brand-white);
}

.toggle-button:hover a {
    color: #fff !important;
}

.arrow {
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.arrow:hover {
    color: var(--brand-red); /* brand red on arrow hover */
}

.dropdown > ul {
    max-height: 0;
    margin-left: 10px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out,
        transform 0.5s ease-in-out;
}

.dropdown > ul.show {
    max-height: 5000px;
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.dropdown .arrow {
    display: inline-block;
    margin-left: auto;
    position: absolute;
    color: white;
    right: 10px;
    top: 20px;
}

.collapsed {
    transform: rotate(-180deg) !important;
}

.no-children .arrow {
    display: none;
}

.dropdown::before {
    content: "";
    background: var(--brand-red); /* brand red indicator */
    display: block;
    height: 15px;
    width: 3px;
    position: absolute;
    top: 26px;
    transform: translateY(-50%);
    left: 0;
    border-radius: 2px;
}

ul.dropdown::before {
    top: 20px;
}

.more-padding {
    padding: 15px 10px !important;
    margin: 0.5px 0;
}

/* Icon styles */
.sidebarIcon {
    margin-right: 10px;
    font-size: 1.4em;
    transition: transform 0.3s ease, color 0.3s ease;
}
