/* --- Scrollbar --- */

#navigationSidebarLeft .u-sidebar__scroller::-webkit-scrollbar {
    width: 6px;
}

#navigationSidebarLeft .u-sidebar__scroller::-webkit-scrollbar-track {
    background: transparent;
}

#navigationSidebarLeft .u-sidebar__scroller::-webkit-scrollbar-thumb {
    background: #dcdfe4;
    border-radius: 3px;
}

#navigationSidebarLeft .u-sidebar__scroller::-webkit-scrollbar-thumb:hover {
    background: #bcc0c6;
}

/* --- Sidebar --- */

.css-sidebar.u-sidebar {
    display: none;
    width: 88%;
    max-width: 360px;
    background: #ffffff;
    box-shadow: 16px 0 32px rgba(25, 31, 38, 0.14);
}

.css-sidebar.u-sidebar.u-unfold--css-animation {
    display: block;
}

.css-sidebar.u-sidebar.u-unfold--css-animation.u-unfold--hidden {
    display: none;
}

#navigationSidebarLeft .u-sidebar__container,
#navigationSidebarLeft .u-sidebar__body {
    height: auto;
}

.css-sidebar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 12px 0 16px;
    background: #ffffff;
    border-bottom: 3px solid #ee1a19;
}

.css-sidebar-head-title {
    color: #1b1f24;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.css-sidebar-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f4f6f8;
    border: 0;
    border-radius: 50%;
    color: #6f767f;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.25s ease;
}

.css-sidebar-close:hover {
    background: #ee1a19;
    color: #ffffff;
    transform: rotate(90deg);
}

.css-sidebar-body {
    padding: 10px 12px 28px 12px;
}

.css-sidebar-section {
    margin-top: 8px;
    padding: 12px 4px 6px 4px;
    border-top: 1px solid #edeff2;
    color: #9aa1a9;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.css-sidebar-body > .css-sidebar-section:first-child {
    margin-top: 0;
    padding-top: 8px;
    border-top: 0;
}

.css-sidebar-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 4px 0;
}

.css-sidebar-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    background: #f4f6f8;
    border-radius: 10px;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.css-sidebar-tile-label {
    display: -webkit-box;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.css-sidebar-tile-wide {
    grid-column: 1 / -1;
}

.css-sidebar-tile:hover {
    background: #fff2f1;
    color: #ee1a19;
    text-decoration: none;
}

.css-sidebar-item {
    margin-bottom: 2px;
}

.css-sidebar-link,
.css-sidebar-sublink,
.css-sidebar-nested-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.css-sidebar-link {
    min-height: 46px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

.css-sidebar-link:hover,
.css-sidebar-sublink:hover,
.css-sidebar-nested-link:hover {
    background: #f5f7f9;
    color: #ee1a19;
    text-decoration: none;
}

.css-sidebar-link-toggle[aria-expanded="true"] {
    background: #fff2f1;
    color: #ee1a19;
}

.css-sidebar-ico {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
    border-radius: 9px;
    color: #6b727b;
    font-size: 13px;
}

.css-sidebar-ico img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.css-sidebar-tile .css-sidebar-ico {
    background: #ffffff;
}

.css-sidebar-tile:hover .css-sidebar-ico,
.css-sidebar-link-toggle[aria-expanded="true"] .css-sidebar-ico {
    background: #ffffff;
    color: #ee1a19;
}

.css-sidebar-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.css-sidebar-count {
    flex-shrink: 0;
    min-width: 18px;
    padding: 1px 5px;
    background: #eef0f3;
    border-radius: 999px;
    color: #8b929a;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.css-sidebar-link-toggle[aria-expanded="true"] .css-sidebar-count {
    background: #ffe4e1;
    color: #ee1a19;
}

.css-sidebar-caret {
    margin-left: auto;
    flex-shrink: 0;
    color: #c3c8cf;
    font-size: 11px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.css-sidebar-link-toggle[aria-expanded="true"] .css-sidebar-caret {
    transform: rotate(180deg);
    color: #ee1a19;
}

.css-sidebar-sublist {
    margin: 0 0 6px 16px;
    padding: 4px 0 6px 10px;
    border-left: 2px solid #edeff2;
}

.css-sidebar-sublink {
    min-height: 38px;
    padding: 6px 8px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 13px;
}

.css-sidebar-sublink-all {
    color: #ee1a19;
    font-size: 12px;
    font-weight: 600;
}

.css-sidebar-sublink-all:hover {
    background: #fff2f1;
    color: #ee1a19;
}

.css-sidebar-nested {
    margin: 0 0 4px 12px;
    padding: 2px 0 2px 8px;
    border-left: 2px solid #f3f4f6;
}

.css-sidebar-nested-link {
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #6b7280;
    font-size: 12.5px;
}

.css-sidebar-all {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    margin: 10px 0 4px 0;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e6eb;
    border-radius: 8px;
    color: #4f565f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.css-sidebar-all i {
    margin-left: auto;
    font-size: 11px;
}

.css-sidebar-all:hover {
    border-color: #ee1a19;
    color: #ee1a19;
    text-decoration: none;
}

/* --- Password toggle --- */

.css-pw-toggle {
    border-color: #ced4da;
    color: #6c757d;
    padding: 0 10px;
    background: #fff;
}

.css-pw-toggle:hover,
.css-pw-toggle:focus {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #343a40;
    box-shadow: none;
}

@media (min-width: 768px) {
    #navigationSidebarLeft {
        display: none;
    }
}
