.file-explorer-content {
    flex-direction: row;
    background-color: #2c2c2c; /* Consistent with app-window background */
}

.file-explorer-sidebar {
    width: 200px;
    background-color: #3f3f3f; /* Slightly darker for sidebar */
    padding: 10px 0;
    border-right: 1px solid #4a4a4a;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #e0e0e0;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-item.active {
    background-color: #0078d4;
    color: white;
    font-weight: bold;
}

.sidebar-item.active img {
    filter: none; /* Revert filter for active icon */
}

.file-explorer-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
}

.address-bar {
    background-color: #333;
    padding: 8px 15px;
    border-bottom: 1px solid #444;
    color: #f0f0f0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* To push button to the right */
}

.file-list {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    padding: 15px;
    gap: 15px; /* Spacing between items */
    overflow-y: auto;
    align-content: flex-start; /* Align content to the top */
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px; /* Fixed width for icon and text */
    padding: 10px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.15s;
    font-size: 13px;
    text-align: center;
    word-wrap: break-word;
}

.file-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.file-item img {
    width: 48px; /* Larger icons for file explorer */
    height: 48px;
    margin-bottom: 8px;
    filter: invert(100%); /* Make icons white */
}

.file-item span {
    color: #f0f0f0;
    white-space: normal;
    word-break: break-all;
    max-width: 100%;
}

/* New style for upload item */
.file-item.upload-item {
    border: 1px dashed #0078d4; /* Dotted border for upload box */
    color: #0078d4;
    cursor: pointer;
    background-color: rgba(0, 120, 212, 0.1); /* Light blue background */
}

.file-item.upload-item:hover {
    background-color: rgba(0, 120, 212, 0.2);
}

.file-item.upload-item img {
    filter: invert(50%) sepia(100%) saturate(2000%) hue-rotate(180deg) brightness(100%); /* Make icon blue */
}

/* Drag and Drop Feedback */
.file-item.folder.drag-over {
    box-shadow: 0 0 0 3px #0078d4; /* Blue border when dragged over */
    background-color: rgba(0, 120, 212, 0.3); /* Slightly more opaque blue */
}

/* Storage Info and Save Button */
.storage-info {
    padding: 10px 15px;
    background-color: #333;
    border-top: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.storage-bar {
    flex-grow: 1;
    height: 10px;
    background-color: #555;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.storage-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #0078d4; /* Blue progress bar */
    width: var(--storage-fill, 0%);
    border-radius: 5px;
    transition: width 0.3s ease-out;
}

#saveFilesButton {
    padding: 5px 12px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

#saveFilesButton:hover {
    background-color: #005a9e;
}

/* Context Menu for File Explorer */
.context-menu {
    position: fixed;
    background-color: #3f3f3f;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Above other windows */
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    color: #e0e0e0;
    font-size: 14px;
}

.context-menu li:hover {
    background-color: #0078d4;
    color: white;
}

/* General button style for headers (like compressor button) */
.header-button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
    margin-left: 10px; /* Space from path display */
}

.header-button:hover {
    background-color: #005a9e;
}