/* Shelyag Engineering — File Browser Theme (clean) */

:root {
  --background: #0a0a0a;
  --surface-1: #111111;
  --surface-2: #1a1a1a;
  --border: #252525;
  --text-primary: #e8e8e8;
  --text-secondary: #999;
  --accent: #00E5A0;
  --accent-hover: #00cc8a;
  --accent-dim: rgba(0, 229, 160, 0.1);
  --blue: #00E5A0;
}

body {
  background: var(--background) !important;
  color: var(--text-primary) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

header {
  background: var(--surface-1) !important;
  border-bottom: 1px solid var(--border) !important;
}

nav { background: transparent !important; }

nav a, nav span {
  color: var(--text-secondary) !important;
}
nav a:hover { color: var(--accent) !important; }

.sidebar {
  background: var(--surface-1) !important;
  border-right: 1px solid var(--border) !important;
}

.action, #toolbar {
  background: var(--surface-1) !important;
}

/* Кнопки */
.button--flat { color: var(--accent) !important; }
.button--flat:hover { background: var(--accent-dim) !important; }

.button.button--blue, button[type="submit"] {
  background: var(--accent) !important;
  color: #0a0a0a !important;
  border: none !important;
}
.button.button--blue:hover, button[type="submit"]:hover {
  background: var(--accent-hover) !important;
}

/* Список файлов */
#listing { background: var(--background) !important; }

#listing .item {
  border-radius: 6px !important;
  transition: background 0.15s ease !important;
}
#listing .item:hover {
  background: var(--surface-2) !important;
}
#listing .item .name { color: var(--text-primary) !important; }
#listing .item .size, #listing .item .modified {
  color: var(--text-secondary) !important;
}

#listing .header {
  border-bottom: 1px solid var(--border) !important;
}
#listing .header span {
  color: var(--text-secondary) !important;
}

/* Мозаика */
#listing.mosaic .item {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}
#listing.mosaic .item:hover {
  border-color: var(--accent) !important;
}

/* Иконки и ссылки */
a { color: var(--accent) !important; }
a:hover { color: var(--accent-hover) !important; }

.item i, .action i {
  color: var(--accent) !important;
}

/* Поля ввода */
input[type="text"], input[type="search"], #search input {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text-primary) !important;
}
input:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}

/* Логин */
#login { background: var(--background) !important; }
#login form {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
}
#login input {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}
#login .button {
  background: var(--accent) !important;
  color: #0a0a0a !important;
}

/* Модалки */
.card, .prompt .card, .share__box {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
}

/* Редактор */
.editor textarea, .ace_editor {
  background: var(--surface-1) !important;
  color: var(--text-primary) !important;
}

/* Скроллбар */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* Меню */
.menu {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}
.menu li:hover { background: var(--surface-2) !important; }
.menu li span, .menu li a { color: var(--text-primary) !important; }

/* Загрузка */
.upload-box {
  background: var(--surface-2) !important;
  border: 2px dashed var(--border) !important;
  border-radius: 8px !important;
}
.upload-box:hover { border-color: var(--accent) !important; }

.progress-bar { background: var(--surface-2) !important; }
.progress-bar .progress { background: var(--accent) !important; }

.message {
  background: var(--surface-1) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}
