/* File Explorer Application Styling */
.file-explorer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

/* Menu Bar */
.explorer-menubar {
    height: 20px;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.explorer-menubar .menu-item {
    padding: 2px 8px;
    cursor: pointer;
    position: relative;
    border-radius: 1px;
}

.explorer-menubar .menu-item:hover {
    background: linear-gradient(to bottom, #e0e0e0 0%, #d0d0d0 50%, #c0c0c0 100%);
    border: 1px solid #808080;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    padding: 1px 7px;
}

/* Toolbar */
.explorer-toolbar {
    height: 32px;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
}

.toolbar-btn {
    width: 24px;
    height: 24px;
    background: linear-gradient(to bottom, #d4d4d4 0%, #c0c0c0 50%, #b0b0b0 100%);
    border: 1px outset #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 1px;
}

.toolbar-btn:hover {
    background: linear-gradient(to bottom, #e0e0e0 0%, #d0d0d0 50%, #c0c0c0 100%);
}

.toolbar-btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #a0a0a0 0%, #b0b0b0 50%, #c0c0c0 100%);
}

/* Address Bar */
.explorer-addressbar {
    height: 24px;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

#address-input {
    flex: 1;
    padding: 2px 4px;
    border: 1px inset #c0c0c0;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    background: white;
}

#address-input:focus {
    outline: none;
}

/* Content Area */
.explorer-content {
    flex: 1;
    display: flex;
    background: white;
}

/* Tree View */
.explorer-tree {
    width: 200px;
    background: white;
    border-right: 1px solid #808080;
    overflow-y: auto;
    font-size: 11px;
}

.explorer-tree::-webkit-scrollbar {
    width: 16px;
}

.explorer-tree::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.explorer-tree::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4d4d4 0%, #c0c0c0 50%, #b0b0b0 100%);
    border: 1px outset #c0c0c0;
}

/* File List */
.explorer-files {
    flex: 1;
    background: white;
    overflow: auto;
}

.explorer-files::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.explorer-files::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.explorer-files::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4d4d4 0%, #c0c0c0 50%, #b0b0b0 100%);
    border: 1px outset #c0c0c0;
}

.explorer-files::-webkit-scrollbar-corner {
    background: #c0c0c0;
}

/* File List Table */
.explorer-files table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.explorer-files th {
    text-align: left;
    padding: 4px;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border: 1px solid #808080;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    font-weight: normal;
}

.explorer-files td {
    padding: 2px 4px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.explorer-files tr {
    cursor: pointer;
}

.explorer-files tr:hover {
    background: #e0e0ff;
}

.explorer-files tr.selected {
    background: #0080ff;
    color: white;
}

/* Icon View */
.icon-view {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
}

.icon-item {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
    text-align: center;
}

.icon-item:hover {
    background: #e0e0ff;
}

.icon-item.selected {
    background: #0080ff;
    color: white;
}

.icon-item img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.icon-item span {
    font-size: 10px;
    word-wrap: break-word;
    max-width: 72px;
    line-height: 1.2;
}

/* Status Bar */
.explorer-statusbar {
    height: 20px;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border-top: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
}

.explorer-statusbar #status-text {
    flex: 1;
}

.explorer-statusbar #item-count {
    margin-left: auto;
    color: #666666;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border: 1px solid #808080;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    z-index: 1000;
    font-size: 11px;
}

.menu-option {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 1px;
}

.menu-option:hover {
    background: linear-gradient(to right, #0080ff 0%, #0060d0 100%);
    color: white;
}

.menu-separator {
    height: 1px;
    background: #808080;
    margin: 2px 4px;
    border-bottom: 1px solid #dfdfdf;
}

/* Tree View Styling */
.tree-item {
    margin-left: 16px;
    font-size: 11px;
}

.tree-header {
    display: flex;
    align-items: center;
    padding: 1px 0;
    cursor: pointer;
}

.tree-header:hover {
    background: #e0e0ff;
}

.tree-header.selected {
    background: #0080ff;
    color: white;
}

.tree-children {
    margin-left: 16px;
}

/* Properties Dialog */
.properties-dialog {
    padding: 16px;
    font-size: 11px;
}

.properties-dialog h3 {
    margin: 0 0 16px 0;
    font-size: 12px;
    font-weight: bold;
}

.properties-dialog p {
    margin: 4px 0;
    line-height: 1.4;
}

.properties-dialog .button {
    background: linear-gradient(to bottom, #d4d4d4 0%, #c0c0c0 50%, #b0b0b0 100%);
    border: 1px solid #808080;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    padding: 4px 12px;
    cursor: pointer;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.properties-dialog .button:hover {
    background: linear-gradient(to bottom, #e0e0e0 0%, #d0d0d0 50%, #c0c0c0 100%);
}

.properties-dialog .button:active {
    background: linear-gradient(to bottom, #a0a0a0 0%, #b0b0b0 50%, #c0c0c0 100%);
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
}