.sidebar-shell {
    width: 255px;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
    padding: 18px 18px 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.sidebar-logo {
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-title {
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-flag {
    padding-top: 10px;
}

.sidebar-nav {
    flex: 1 1 auto;
    overflow: auto;
    padding-top: 12px;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.sidebar {
    position: relative;
    margin: 0;
    padding: 0;
}

.sidebar li {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 8px 0;
    padding: 0;
    border-radius: 4px;
}

.sidebar li a {
    width: 100%;
    padding: 10px 16px;
    text-decoration: none;
    height: 40px;
    color: #999999;
    border-radius: 4px;
    line-height: 24px;
    margin: 0;
    transition: ease-in-out 0.3s all;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.sidebar li a i {
    width: 18px;
    display: inline-flex;
    justify-content: center;
    font-size: 1.05rem;
    opacity: 0.9;
}

.sidebar li a span {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.09);
}

.sidebar li.active > a {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 4px 0 0 rgba(25, 135, 84, 0.95);
}

.sidebar-logout {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    transition: ease-in-out 0.3s all;
}

.sidebar-logout:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.09);
}
