.sidebar {
    width: 280px;
    height: 100vh;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    transition: transform 0.3s ease-in-out;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-container {
    border-bottom: 1px solid #dee2e6;
}

#searchInput {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

#folderNavigation {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

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

.folder-item {
    margin: 2px 0;
}

.folder-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.folder-header:hover {
    background-color: #e9ecef;
}

.folder-header.has-children {
    font-weight: 500;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
}

.spacer {
    width: 20px;
    margin-right: 0.5rem;
}

.folder-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-item.active > .folder-header {
    background-color: #e2e6ea;
    color: #0056b3;
}

/* Nested folders indentation */
.folder-list .folder-list {
    margin-left: 1.5rem;
}

/* Breadcrumb styles */
.breadcrumb {
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #003d82;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #6c757d;
    margin: 0 0.25rem;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 48px;
        bottom: 0;
        top: unset;
    }

    .sidebar-content{
        flex-direction: unset;
        overflow: unset;
    }

    #folderNavigation{
        overflow-x: auto;
        padding: 0;
    }

    .folder-list{
        display: flex;
    }

    .folder-list .folder-list{
        margin: 0;
    }

    .folder-item{
        display: flex;
    }

    .sidebar.collapsed {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 101;
    }
}

/* Animation classes */
.folder-list {
    transition: height 0.3s ease-in-out;
}

/* Custom scrollbar */
#folderNavigation::-webkit-scrollbar {
    width: 8px;
}

#folderNavigation::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#folderNavigation::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#folderNavigation::-webkit-scrollbar-thumb:hover {
    background: #555;
}