:root {
    --user-sidebar-width: 230px;
    --user-sidebar-bg: #243a51;
    --user-sidebar-accent: #ff9400;
    --user-sidebar-text: #ffffff;
}

.user-sidebar {
    position: fixed;
    left: 0;
    top: 36px;
    bottom: 0;
    width: var(--user-sidebar-width);
    background: var(--user-sidebar-bg);
    color: var(--user-sidebar-text);
    z-index: 1020;
    padding: 12px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.user-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 6px 8px 10px;
    margin-bottom: 10px;
}

.user-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.user-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-sidebar-nav {
    flex: 1;
}

.user-sidebar-list li {
    margin: 0 0 6px;
}

.user-sidebar-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.user-sidebar-list a {
    display: block;
    color: var(--user-sidebar-text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.user-sidebar-logout {
    width: 100%;
    display: block;
    color: var(--user-sidebar-text);
    text-align: left;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.user-sidebar-list a:hover,
.user-sidebar-list a:focus {
    color: #0f2538;
    background: #f5f8fc;
    border-color: #d7e2ec;
}

.user-sidebar-logout:hover,
.user-sidebar-logout:focus {
    color: #0f2538;
    background: #f5f8fc;
    border-color: #d7e2ec;
}

.user-sidebar-list a.active {
    background: rgba(255, 148, 0, 0.2);
    border-color: rgba(255, 148, 0, 0.45);
    color: #ffd7a3;
    font-weight: 700;
}

body.has-user-sidebar {
    padding-left: var(--user-sidebar-width);
}

@media (max-width: 991.98px) {
    .user-sidebar {
        position: static;
        width: 100%;
        top: auto;
        bottom: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 12px;
    }

    body.has-user-sidebar {
        padding-left: 0;
    }
}
