.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #1d2021;
    color: #ebdbb2;
    font-family: "Iosevka", "Fira Code", "JetBrains Mono", monospace;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
    z-index: 100;
    border-right: 2px solid #3c3836;
}

.sidebar-item {
    cursor: pointer;
    padding: 6px 12px;
    margin: 1px 0;
    white-space: nowrap;
    line-height: 1.5;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background-color: #3c3836;
    border-left-color: #fabd2f;
}

.sidebar-item.selected {
    background-color: #458588;
    color: #fbf1c7;
    font-weight: 500;
    border-left-color: #83a598;
}

.sidebar-status {
    margin-top: auto;
    padding: 8px;
    font-size: 13px;
    color: #fabd2f;
    border-top: 2px solid #3c3836;
    background-color: #32302f;
    font-family: "Iosevka", "Fira Code", monospace;
}

.file-icon {
    display: inline-block;
    width: 18px;
    margin-right: 10px;
    vertical-align: middle;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #504945;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #665c54;
}
