/* css/explorer.css - Windows 98 File Explorer */

/* Explorer Chrome */
.explorer-chrome {
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}

/* Menu Bar */
.explorer-menubar {
  height: 18px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: #c0c0c0;
  font-size: 11px;
  border-bottom: 1px solid #fff;
}

.explorer-menu-item {
  padding: 2px 8px;
  cursor: pointer;
}

.explorer-menu-item:hover {
  background: #000080;
  color: #fff;
}

/* Toolbar */
.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #fff;
}

.explorer-btn {
  width: 24px;
  height: 22px;
  background: #c0c0c0;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

.explorer-btn:hover {
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.explorer-btn:active {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.explorer-btn--go {
  width: 40px;
  font-size: 11px;
  font-weight: bold;
}

.explorer-divider {
  width: 1px;
  height: 18px;
  background: #808080;
  margin: 0 2px;
}

/* Address Bar */
.explorer-addressbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}

.explorer-addressbar__label {
  font-size: 11px;
  font-weight: bold;
  min-width: 50px;
}

.explorer-addressbar__input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px 4px;
  height: 20px;
}

.explorer-addressbar__icon {
  font-size: 12px;
  line-height: 1;
}

.explorer-addressbar__input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 11px;
  background: transparent;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
}

/* Explorer Content Layout */
.explorer-content {
  display: flex;
  height: calc(100% - 18px - 70px - 20px);
  background: #fff;
}

/* Sidebar */
.explorer-sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid #808080;
  overflow-y: auto;
  padding: 8px 0;
}

.explorer-tree {
  font-size: 11px;
}

.explorer-tree-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.explorer-tree-item:hover {
  background: #000080;
  color: #fff;
}

.explorer-tree-item--child {
  padding-left: 24px;
}

.explorer-tree-item--child2 {
  padding-left: 40px;
}

.explorer-tree-item--expanded .explorer-tree-icon::before {
  content: '▼ ';
  font-size: 8px;
}

.explorer-tree-icon {
  font-size: 14px;
  line-height: 1;
}

.explorer-tree-label {
  flex: 1;
}

/* Main Panel */
.explorer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Column Headers */
.explorer-headers {
  display: flex;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
}

.explorer-header {
  padding: 0 8px;
  border-right: 1px solid #808080;
}

.explorer-header--name {
  flex: 1;
  min-width: 200px;
}

.explorer-header--size {
  width: 80px;
}

.explorer-header--type {
  width: 120px;
}

.explorer-header--modified {
  width: 140px;
}

/* File List */
.explorer-files {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  position: relative;
}

.explorer-file-item {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 11px;
  border: 1px solid transparent;
}

.explorer-file-item:hover {
  background: #000080;
  color: #fff;
  border: 1px dotted #fff;
}

.explorer-file-item--selected {
  background: #000080;
  color: #fff;
}

.explorer-file-icon {
  font-size: 16px;
  margin-right: 8px;
  width: 20px;
}

.explorer-file-name {
  flex: 1;
  min-width: 200px;
}

.explorer-file-size {
  width: 80px;
  text-align: right;
}

.explorer-file-type {
  width: 120px;
}

.explorer-file-modified {
  width: 140px;
}

/* Dropzone */
.explorer-dropzone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.explorer-dropzone--active {
  pointer-events: all;
  opacity: 1;
  background: rgba(0, 0, 128, 0.1);
  border: 2px dashed #000080;
}

.explorer-dropzone__content {
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 2px solid #000080;
}

.explorer-dropzone__icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.explorer-dropzone__text {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.explorer-dropzone__hint {
  font-size: 11px;
  color: #666;
}

/* Status Bar */
.explorer-statusbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  background: #c0c0c0;
  border-top: 1px solid #fff;
  font-size: 11px;
}

.explorer-statusbar__left,
.explorer-statusbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Scrollbar for explorer */
.explorer-sidebar::-webkit-scrollbar,
.explorer-files::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.explorer-sidebar::-webkit-scrollbar-track,
.explorer-files::-webkit-scrollbar-track {
  background: #c0c0c0;
}

.explorer-sidebar::-webkit-scrollbar-thumb,
.explorer-files::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 1px solid #000;
}

.explorer-sidebar::-webkit-scrollbar-button,
.explorer-files::-webkit-scrollbar-button {
  background: #c0c0c0;
  border: 1px solid #000;
  height: 16px;
  width: 16px;
}