/* ════════════════════════════════════════════════════════════════════════
   GravityVault — BLACKSITE Theme
   High-contrast black & red • Boxy • Terminal aesthetic
   ════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'Orbitron', 'Plus Jakarta Sans', sans-serif;

  --bg-base: #000000;
  --bg-surface: #080808;
  --bg-elevated: #111111;
  --bg-hover: #1a1a1a;

  --glass-border: #1c1c1c;
  --glass-border-hover: #ff0033;

  --text-1: #e8e8e8;
  --text-2: #888888;
  --text-3: #505050;

  --accent: #ff0033;
  --accent-hover: #cc0029;
  --accent-soft: rgba(255, 0, 51, 0.10);
  --accent-gradient: linear-gradient(135deg, #ff0033, #cc0029);
  --accent-glow: 0 0 12px rgba(255, 0, 51, 0.35);

  --success: #00ff41;
  --success-soft: rgba(0, 255, 65, 0.08);
  --danger: #ff0033;
  --danger-soft: rgba(255, 0, 51, 0.10);
  --warning: #ff8800;
  --warning-soft: rgba(255, 136, 0, 0.10);

  --radius: 2px;
  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 3px;
  --transition: all 0.15s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hidden { display: none !important; }
input, button, textarea { font-family: var(--font); }

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════
   LOGIN SCREEN
   ════════════════════════════════════════════════════════════════════════ */
#login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  position: relative;
  overflow: hidden;
}
/* Scan line overlay */
#login-screen::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 0, 51, 0.03) 0px,
    rgba(255, 0, 51, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}
/* Red ambient glow orbs */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float-orb 12s ease-in-out infinite;
}
.login-orb-1 { width: 500px; height: 500px; background: #ff0033; top: -200px; left: -100px; }
.login-orb-2 { width: 400px; height: 400px; background: #990000; bottom: -150px; right: -50px; animation-delay: -4s; }
.login-orb-3 { width: 300px; height: 300px; background: #ff0033; top: 50%; left: 60%; animation-delay: -8s; }

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.login-card {
  position: relative; z-index: 2;
  background: #050505;
  border: 1px solid var(--accent-soft);
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 0 40px var(--accent-soft), inset 0 0 40px var(--accent-soft);
}
.login-logo {
  display: flex; justify-content: center; margin-bottom: 24px;
}
.login-logo svg { filter: drop-shadow(0 0 8px var(--accent-soft)); }
.login-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.6rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--accent-soft);
}
.login-subtitle {
  text-align: center; color: var(--text-3);
  font-size: 0.75rem; margin-bottom: 28px;
  letter-spacing: 1px; text-transform: uppercase;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.input-group { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #ff003366; pointer-events: none;
}
.input-group input {
  width: 100%; padding: 14px 14px 14px 44px;
  background: #0a0a0a; border: 1px solid #1a1a1a;
  color: var(--text-1); font-size: 0.9rem;
  outline: none; transition: var(--transition);
}
.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}
.input-group input::placeholder { color: #333; }
.login-error {
  color: var(--danger); font-size: 0.8rem; text-align: center;
  padding: 8px; border: 1px solid var(--danger-soft); background: var(--danger-soft);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  background: var(--accent); color: #000;
  border: 1px solid var(--accent);
  font-weight: 700; font-size: 0.82rem;
  cursor: pointer; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: var(--accent-glow);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: transparent; border: 1px solid #333;
  color: var(--text-2); font-weight: 500; font-size: 0.82rem;
  cursor: pointer; transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: transparent; border: 1px solid #1a1a1a;
  color: var(--text-2); font-weight: 500; font-size: 0.8rem;
  cursor: pointer; transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-soft);
}

.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--danger-soft); border: 1px solid var(--danger);
  color: var(--danger); font-weight: 600; font-size: 0.82rem;
  cursor: pointer; transition: var(--transition);
}
.btn-danger:hover { background: var(--danger); color: #000; }

.btn-full { width: 100%; }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0; color: #333; font-size: 0.7rem;
  letter-spacing: 2px; text-transform: uppercase;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: #1a1a1a;
}

.guest-role-badge {
  font-size: 0.65rem; padding: 3px 8px;
  border: 1px solid #ff003344; color: #ff0033;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
  margin-left: 8px;
}

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-2); cursor: pointer;
  transition: var(--transition); position: relative;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

.icon-btn-sm {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: transparent; border: none;
  color: var(--text-3); cursor: pointer; transition: var(--transition);
}
.icon-btn-sm:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════════ */
#header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: #050505;
  border-bottom: 1px solid #1a1a1a;
  position: sticky; top: 0; z-index: 100;
}
.header-left, .header-right { display: flex; align-items: center; gap: 8px; }
.header-center { flex: 1; margin: 0 24px; max-width: 500px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase;
  text-shadow: 0 0 10px var(--accent-soft);
}
.logo svg { color: var(--accent); filter: drop-shadow(0 0 4px var(--accent-soft)); }

.search-container {
  position: relative; display: flex; align-items: center; width: 100%;
}
.search-icon {
  position: absolute; left: 12px;
  color: #333; pointer-events: none;
}
#search-input {
  width: 100%; padding: 10px 60px 10px 38px;
  background: #0a0a0a; border: 1px solid #1a1a1a;
  color: var(--text-1); font-size: 0.85rem;
  outline: none; transition: var(--transition);
}
#search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-soft);
}
#search-input::placeholder { color: #333; }
.search-kbd {
  position: absolute; right: 10px;
  background: #111; border: 1px solid #222;
  color: #444; padding: 2px 8px;
  font-size: 0.7rem; font-family: var(--font);
}

/* ── Disk Indicator ────────────────────────────────────────────────────── */
.disk-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: transparent; border: 1px solid #1a1a1a;
  color: var(--text-2); font-size: 0.78rem;
  cursor: pointer; transition: var(--transition);
}
.disk-indicator:hover { border-color: #ff003333; color: var(--text-1); }
.disk-dot {
  width: 8px; height: 8px;
  background: #00ff41; box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.disk-dot.caution { background: var(--warning); box-shadow: 0 0 6px rgba(255, 136, 0, 0.4); }
.disk-dot.warning { background: #ff4400; box-shadow: 0 0 6px rgba(255, 68, 0, 0.4); }
.disk-dot.critical { background: #ff0033; box-shadow: 0 0 6px rgba(255, 0, 51, 0.6); animation: pulse-critical 1s ease infinite; }

@keyframes pulse-critical {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(255, 0, 51, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 12px rgba(255, 0, 51, 0.8); }
}

/* ── Disk Bar ──────────────────────────────────────────────────────────── */
#disk-bar-container {
  padding: 10px 24px 14px;
  background: #050505; border-bottom: 1px solid #1a1a1a;
}
.disk-bar-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 0.75rem; color: var(--text-3);
}
.disk-bar-left, .disk-bar-right { display: flex; align-items: center; gap: 4px; }
.disk-bar-sep { color: #222; margin: 0 2px; }
.disk-bar-info span:first-child { color: var(--text-2); font-weight: 500; }
.disk-bar-track {
  width: 100%; height: 4px; background: #111;
  overflow: hidden;
}
.disk-bar-fill {
  height: 100%;
  background: #ff0033;
  transition: width 0.5s ease;
}
.disk-bar-fill.caution { background: var(--warning); }
.disk-bar-fill.warning { background: #ff4400; }
.disk-bar-fill.critical { background: #ff0033; animation: pulse-bar 1s ease infinite; }
@keyframes pulse-bar { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ════════════════════════════════════════════════════════════════════════
   TOOLBAR
   ════════════════════════════════════════════════════════════════════════ */
#toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: #030303;
  border-bottom: 1px solid #111;
}
#breadcrumbs {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; flex: 1;
}
.breadcrumb-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: transparent; border: none;
  color: var(--text-3); font-size: 0.8rem;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; font-family: var(--font);
}
.breadcrumb-item:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-1); font-weight: 600; }
.breadcrumb-home svg { color: var(--accent-soft); }
.breadcrumb-sep { color: #222; font-size: 0.7rem; user-select: none; }
.toolbar-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════════
   FILE GRID & LIST
   ════════════════════════════════════════════════════════════════════════ */
#main-content {
  padding: 20px 24px; min-height: calc(100vh - 140px);
  position: relative;
}

.file-container.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.file-container.list-view { display: flex; flex-direction: column; }

/* ── Grid Card ─────────────────────────────────────────────────────────── */
.file-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 22px 14px 16px;
  background: #080808;
  border: 1px solid #151515;
  cursor: pointer; transition: var(--transition);
  position: relative; text-align: center;
}
.file-card:hover {
  border-color: var(--accent-soft);
  background: #0d0d0d;
  box-shadow: var(--accent-glow);
}

.file-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #1a1a1a;
  transition: var(--transition);
}
.file-card:hover .file-icon { border-color: var(--accent-soft); }

/* Type-specific icon colors */
.type-folder .file-icon { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.type-image .file-icon { background: #00ff4108; color: #00ff41; border-color: #00ff4118; }
.type-video .file-icon { background: #ff003308; color: #ff6666; border-color: #ff003318; }
.type-audio .file-icon { background: #ff880008; color: #ff8800; border-color: #ff880018; }
.type-document .file-icon { background: #0088ff08; color: #4499ff; border-color: #0088ff18; }
.type-archive .file-icon { background: #ff880008; color: #ff8800; border-color: #ff880018; }
.type-code .file-icon { background: #00ff4108; color: #00ff41; border-color: #00ff4118; }
.type-other .file-icon { background: #88888808; color: #666; border-color: #33333318; }

.file-name {
  font-size: 0.78rem; font-weight: 500; color: var(--text-1);
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-info { font-size: 0.7rem; color: var(--text-3); }

.file-card-actions {
  position: absolute; top: 8px; right: 8px;
  opacity: 0; transition: var(--transition);
  display: flex; gap: 4px;
}
.file-card:hover .file-card-actions { opacity: 1; }

.file-dl-btn, .file-actions-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #111111; border: 1px solid #222222;
  color: #888888; border-radius: 3px;
  cursor: pointer; transition: var(--transition);
}
.file-dl-btn:hover, .file-actions-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* ── List View ─────────────────────────────────────────────────────────── */
.file-container.list-view {
  display: flex; flex-direction: column;
  background: #060606;
  border: 1px solid #1a1a1a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Default (Selection Mode OFF): 0px checkbox column -> NAME sits flush on far left edge */
.list-header {
  display: grid; grid-template-columns: 0px 1fr 120px 150px 60px;
  align-items: center;
  padding: 12px 18px; gap: 12px;
  background: #0b0b0b;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.72rem; font-weight: 700; color: #777777;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.list-item {
  display: grid; grid-template-columns: 0px 1fr 120px 150px 60px;
  padding: 12px 18px; gap: 12px;
  align-items: center;
  border-bottom: 1px solid #111111;
  cursor: pointer; transition: grid-template-columns 0.15s ease, background 0.15s ease;
  position: relative;
}

/* Active Selection Mode: 32px left checkbox column opens up */
.selection-mode-active .list-header,
.selection-mode-active .list-item {
  grid-template-columns: 32px 1fr 120px 150px 60px;
}

.list-col-cb {
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.list-col-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-col-size { font-weight: 700; color: #777777; }
.list-col-date { font-weight: 700; color: #777777; }
.list-col-actions { display: flex; justify-content: flex-end; }

/* ── Sortable Column Headers ────────────────────────────────────────────── */
.list-header .sortable {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.15s ease;
}
.list-header .sortable:hover { color: #ffffff; }
.list-header .sortable.active { color: var(--accent); font-weight: 800; }
.list-header .sort-icon { font-size: 0.65rem; color: var(--accent); margin-left: 2px; }

.list-item:last-child { border-bottom: none; }
.list-item:hover {
  background: rgba(255, 0, 51, 0.05);
  border-bottom-color: rgba(255, 0, 51, 0.2);
}
.list-item.selected {
  background: rgba(255, 0, 51, 0.08);
}

.list-name {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; overflow: hidden;
  font-family: var(--font);
  font-size: 0.88rem; font-weight: 500; color: #ffffff;
  letter-spacing: 0.1px;
}
.list-name .file-icon {
  width: 28px; height: 28px;
  flex-shrink: 0 !important; min-width: 28px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.list-name span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1;
}
.list-size { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; letter-spacing: 0.3px; }
.list-date { font-size: 0.8rem; color: #888888; }
.list-item .file-card-actions { position: static; opacity: 0; display: flex; gap: 4px; justify-content: flex-end; }
.list-item:hover .file-card-actions { opacity: 1; }

/* ── Empty State ───────────────────────────────────────────────────────── */
#empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 20px; gap: 12px; text-align: center;
}
.empty-title { color: var(--text-2); font-size: 1rem; font-weight: 500; }
.empty-subtitle { color: var(--text-3); font-size: 0.82rem; }

/* ── Drop Zone ─────────────────────────────────────────────────────────── */
#drop-overlay {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.2s ease;
}
.drop-zone {
  border: 2px dashed var(--accent); padding: 60px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--accent);
}
.drop-text { font-size: 1.1rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.drop-subtext { font-size: 0.82rem; color: var(--text-3); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ════════════════════════════════════════════════════════════════════════
   UPLOAD PANEL
   ════════════════════════════════════════════════════════════════════════ */
#upload-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 380px; max-height: 400px;
  background: #080808; border: 1px solid #1a1a1a;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  display: flex; flex-direction: column;
}
.upload-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #151515;
}
.upload-panel-header h3 {
  font-size: 0.85rem; font-weight: 600; color: var(--text-1);
  text-transform: uppercase; letter-spacing: 1px;
}
#upload-list { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.upload-item {
  padding: 10px 12px;
  border: 1px solid #151515;
  background: #0a0a0a;
}
.upload-item-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.upload-item-name {
  font-size: 0.8rem; color: var(--text-1); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.upload-item-status { font-size: 0.72rem; font-weight: 600; margin-left: 8px; }
.upload-item-status.uploading { color: var(--accent); }
.upload-item-status.complete { color: #00ff41; }
.upload-item-status.error { color: var(--danger); }

.upload-progress-bar {
  width: 100%; height: 3px; background: #111; overflow: hidden;
}
.upload-progress-fill {
  height: 100%; background: var(--accent);
  transition: width 0.3s ease;
  box-shadow: var(--accent-glow);
}

/* ════════════════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════════════════ */
#modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, 0.85);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease;
}
.modal-card {
  background: #080808; border: 1px solid var(--accent-soft);
  padding: 32px; width: 100%; max-width: 440px;
  box-shadow: 0 0 40px var(--accent-soft);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 2px;
}
.modal-subtitle { color: var(--text-3); font-size: 0.82rem; margin-bottom: 16px; }
.modal-warning { color: var(--text-2); font-size: 0.88rem; line-height: 1.5; margin-bottom: 16px; }
.modal-input {
  width: 100%; padding: 12px 14px;
  background: #0a0a0a; border: 1px solid #1a1a1a;
  color: var(--text-1); font-size: 0.9rem;
  outline: none; transition: var(--transition);
  margin-bottom: 8px;
}
.modal-input:focus { border-color: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ════════════════════════════════════════════════════════════════════════
   PREVIEW OVERLAY
   ════════════════════════════════════════════════════════════════════════ */
#preview-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: #000; display: flex; flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: #050505; border-bottom: 1px solid #1a1a1a;
}
#preview-title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.preview-actions { display: flex; gap: 4px; }
#preview-content {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 20px;
}
#preview-content img,
#preview-content video,
.preview-video {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
  border: 1px solid #1c1c1c;
}
#preview-content audio {
  width: 100%; max-width: 500px;
}
#preview-content iframe,
.preview-iframe {
  width: 100%;
  height: calc(100vh - 80px);
  border: none;
  background: #ffffff;
}
#preview-content pre {
  width: 100%; max-height: 100%; overflow: auto;
  padding: 24px; background: #080808; border: 1px solid #151515;
  font-family: var(--font); font-size: 0.85rem;
  color: #00ff41; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all;
  align-self: flex-start;
}

/* ════════════════════════════════════════════════════════════════════════
   CONTEXT MENU
   ════════════════════════════════════════════════════════════════════════ */
#context-menu {
  position: fixed; z-index: 300;
  background: #080808; border: 1px solid #1a1a1a;
  padding: 6px 0; min-width: 180px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.ctx-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 18px;
  background: none; border: none;
  color: var(--text-2); font-size: 0.82rem;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font);
}
.ctx-btn:hover { background: var(--accent-soft); color: var(--accent); }
.ctx-btn svg { color: var(--text-3); transition: var(--transition); }
.ctx-btn:hover svg { color: var(--accent); }
.ctx-danger:hover { color: var(--danger) !important; }
.ctx-separator { height: 1px; background: #1a1a1a; margin: 4px 0; }

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Small Screens
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #header { padding: 10px 16px; }
  .header-center { margin: 0 12px; }
  .search-kbd { display: none; }
  .disk-indicator span { display: none; }
  #toolbar { padding: 10px 16px; flex-wrap: wrap; }
  .toolbar-actions { width: 100%; justify-content: flex-end; }
}

/* ── Task Monitor Panel ───────────────────────────────────────────────── */
#task-monitor-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-base);
  display: flex; flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.remote-panel {
  display: flex; flex-direction: column; height: 100%;
  max-width: 900px; width: 100%; margin: 0 auto;
}
.remote-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #1a1a1a;
}
.remote-header-left {
  display: flex; align-items: center; gap: 12px; color: var(--text-1);
}
.remote-header-left h2 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent);
}
.remote-header-left svg { color: var(--accent); }
.remote-header-actions {
  display: flex; align-items: center; gap: 8px;
}
.btn-sm {
  font-size: 0.75rem; padding: 6px 12px;
  display: flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.remote-url-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid #1a1a1a;
}
.remote-url-bar svg { color: var(--text-3); flex-shrink: 0; }
.remote-url-bar input {
  flex: 1; background: #0a0a0a; border: 1px solid #1a1a1a;
  padding: 10px 14px;
  color: var(--text-1); font-family: var(--font); font-size: 0.85rem;
  outline: none; transition: var(--transition);
}
.remote-url-bar input:focus { border-color: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }
.remote-url-bar input::placeholder { color: #333; }
.remote-url-bar .btn-primary { flex-shrink: 0; white-space: nowrap; }

.remote-list {
  flex: 1; overflow-y: auto; padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.remote-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 80px 0; color: var(--text-3); text-align: center;
}
.remote-empty p { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.remote-empty span { font-size: 0.82rem; }

.remote-item {
  background: #080808; border: 1px solid #151515;
  padding: 16px 18px;
  transition: var(--transition);
}
.remote-item:hover { border-color: var(--accent-soft); }

.remote-item-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.remote-item-name {
  font-weight: 500; font-size: 0.85rem; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.remote-item-status {
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px;
  flex-shrink: 0; text-transform: uppercase; letter-spacing: 1px;
  border: 1px solid;
}
.remote-item-status.downloading {
  border-color: var(--accent-soft); color: var(--accent); background: var(--accent-soft);
}
.remote-item-status.paused {
  border-color: #ff880033; color: var(--warning); background: #ff880008;
}
.remote-item-status.completed {
  border-color: #00ff4133; color: #00ff41; background: #00ff4108;
}
.remote-item-status.error {
  border-color: var(--danger-soft); color: var(--danger); background: var(--danger-soft);
}

.remote-progress-bar {
  width: 100%; height: 4px; background: #111;
  overflow: hidden; margin-bottom: 10px;
}
.remote-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.5s ease;
  box-shadow: var(--accent-glow);
}
.remote-progress-fill.completed {
  background: #00ff41;
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}
.remote-progress-fill.error { background: var(--danger); }
.remote-progress-fill.paused { background: var(--warning); box-shadow: none; }

.remote-item-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.remote-item-info {
  font-size: 0.75rem; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.remote-item-actions { display: flex; gap: 6px; }
.remote-action-btn {
  background: #111; border: 1px solid #1a1a1a;
  color: var(--text-2); padding: 6px 12px;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: var(--transition); font-family: var(--font);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.remote-action-btn:hover { background: #1a1a1a; color: var(--text-1); border-color: #333; }
.remote-action-btn.danger { color: #ff0033; }
.remote-action-btn.danger:hover { background: #ff003310; border-color: #ff003344; }

.remote-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #000;
  font-size: 0.6rem; font-weight: 800;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#task-monitor-btn { position: relative; }

/* ── Task type badges ─────────────────────────────────────────────────── */
.task-type-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
  border: 1px solid;
}
.task-type-badge.download {
  border-color: var(--accent-soft); color: var(--accent); background: var(--accent-soft);
}
.task-type-badge.extract {
  border-color: #ff880033; color: #ff8800; background: #ff880008;
}

/* ── Extraction progress shimmer ──────────────────────────────────────── */
.remote-progress-fill.extracting {
  background: linear-gradient(90deg, #ff8800 0%, #ffaa00 50%, #ff8800 100%);
  background-size: 200% 100%;
  animation: shimmer-extract 1.5s ease infinite;
  box-shadow: 0 0 6px rgba(255, 136, 0, 0.3);
}
.remote-item-status.extracting {
  border-color: #ff880033; color: #ff8800; background: #ff880008;
  animation: pulse-download 2s ease infinite;
}
.remote-item-status.queued {
  border-color: #ff003322; color: #ff003388;
}
.remote-item-status.cancelled {
  border-color: #222; color: var(--text-3);
}

@keyframes shimmer-extract {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes pulse-download {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.remote-item-status.downloading {
  animation: pulse-download 2s ease infinite;
}

/* ── Cyberpunk Theme Accent Presets ────────────────────────────────────── */
body.theme-matrix {
  --accent: #00ff41;
  --accent-hover: #00cc33;
  --accent-soft: rgba(0, 255, 65, 0.10);
  --accent-gradient: linear-gradient(135deg, #00ff41, #00cc33);
  --accent-glow: 0 0 12px rgba(0, 255, 65, 0.35);
  --glass-border-hover: #00ff41;
}

body.theme-cyan {
  --accent: #00e5ff;
  --accent-hover: #00b3cc;
  --accent-soft: rgba(0, 229, 255, 0.10);
  --accent-gradient: linear-gradient(135deg, #00e5ff, #00b3cc);
  --accent-glow: 0 0 12px rgba(0, 229, 255, 0.35);
  --glass-border-hover: #00e5ff;
}

body.theme-amber {
  --accent: #ff8800;
  --accent-hover: #cc6600;
  --accent-soft: rgba(255, 136, 0, 0.10);
  --accent-gradient: linear-gradient(135deg, #ff8800, #cc6600);
  --accent-glow: 0 0 12px rgba(255, 136, 0, 0.35);
  --glass-border-hover: #ff8800;
}
body.theme-amber .logo,
body.theme-amber .logo svg,
body.theme-amber .login-title,
body.theme-amber .modal-title,
body.theme-amber .remote-header-left h2,
body.theme-amber .remote-header-left svg { color: #ff8800; }
body.theme-amber .btn-primary { background: #ff8800; color: #000; border-color: #ff8800; }
body.theme-amber .btn-primary:hover { background: #cc6600; border-color: #cc6600; }

/* ── Category Filter Bar ───────────────────────────────────────────────── */
#filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px;
  background: #050505; border-bottom: 1px solid #111;
  gap: 12px; flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 4px; overflow-x: auto; }
.filter-tab {
  background: transparent; border: 1px solid #1a1a1a;
  color: var(--text-3); padding: 5px 12px;
  font-size: 0.72rem; font-weight: 700; cursor: pointer;
  letter-spacing: 1px; transition: var(--transition);
  font-family: var(--font);
}
.filter-tab:hover { color: var(--accent); border-color: var(--accent); }
.filter-tab.active {
  background: var(--accent-soft); color: var(--accent);
  border-color: var(--accent);
}

/* ── Bulk Actions Bar ──────────────────────────────────────────────────── */
.bulk-bar {
  display: flex; align-items: center; gap: 14px;
  background: #0e0e0e; border: 1px solid var(--accent);
  padding: 4px 14px; animation: fadeIn 0.15s ease;
}
.bulk-select-all {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-1); font-weight: 600;
  cursor: pointer; user-select: none;
}
.bulk-select-all input { accent-color: var(--accent); cursor: pointer; }
.bulk-actions { display: flex; gap: 6px; }

/* ── Custom Cyber Checkbox ───────────────────────────────────────────── */
input[type="checkbox"].file-select-cb,
input[type="checkbox"].list-header-cb,
.bulk-select-all input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px;
  background: #0d0d0d;
  border: 1px solid #333333;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  outline: none;
  flex-shrink: 0;
}
input[type="checkbox"].file-select-cb:hover,
input[type="checkbox"].list-header-cb:hover,
.bulk-select-all input[type="checkbox"]:hover {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-soft);
}
input[type="checkbox"].file-select-cb:checked,
input[type="checkbox"].list-header-cb:checked,
.bulk-select-all input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
input[type="checkbox"].file-select-cb:checked::after,
input[type="checkbox"].list-header-cb:checked::after,
.bulk-select-all input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 4px; height: 9px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── File Checkbox Hidden By Default (Clean UX) ─────────────────────── */
.file-card .file-select-cb,
.list-item .file-select-cb,
.list-header-cb {
  display: none;
  opacity: 0; pointer-events: none;
}

.file-card .file-select-cb {
  position: absolute; top: 10px; left: 10px; z-index: 10;
}
.list-item .file-select-cb {
  position: static; justify-self: center; align-self: center; margin-right: 4px;
}
.list-header-cb {
  justify-self: center; align-self: center; margin-right: 4px;
}

/* Active Selection Mode Reveals Checkboxes & Takes 0px space when off */
.selection-mode-active .file-select-cb,
.selection-mode-active .list-header-cb,
.file-select-cb:checked,
.list-header-cb:checked {
  display: block !important;
  opacity: 1 !important; pointer-events: auto !important;
}

.file-card.selected, .list-item.selected {
  border-color: var(--accent); background: var(--accent-soft);
}

/* ── Terminal Console Drawer ───────────────────────────────────────────── */
.terminal-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  height: 200px; background: #030303; border-top: 1px solid var(--accent);
  display: flex; flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9);
  animation: slideUp 0.2s ease;
}
.terminal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: #080808; border-bottom: 1px solid #151515;
}
.terminal-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; font-family: var(--font-display);
}
.terminal-dot {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 6px var(--accent);
}
.terminal-actions { display: flex; gap: 6px; }
.terminal-body {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  font-family: var(--font); font-size: 0.78rem; color: #00ff41;
  display: flex; flex-direction: column; gap: 4px;
}
.log-line { line-height: 1.4; word-break: break-all; }
.log-line.info { color: #00ff41; }
.log-line.warn { color: var(--warning); }
.log-line.error { color: var(--danger); }
.log-line.cmd { color: var(--accent); font-weight: 600; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ── In-Browser File Editor ────────────────────────────────────────────── */
.editor-container {
  display: flex; flex-direction: column; width: 100%; height: 100%; gap: 10px;
}
.editor-textarea {
  width: 100%; height: 60vh; background: #050505;
  border: 1px solid #1c1c1c; color: #00ff41;
  font-family: var(--font); font-size: 0.85rem; line-height: 1.5;
  padding: 16px; outline: none; resize: none; tab-size: 2;
}
.editor-textarea:focus { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-soft); }
.editor-bar {
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Responsive & Touch Device Support ───────────────────────────────── */
@media (hover: none), (max-width: 1024px) {
  .file-card-actions,
  .list-item .file-card-actions {
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  html, body, #app {
    max-width: 100vw;
    overflow-x: hidden !important;
  }
  #header {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-left { flex-shrink: 0; }
  .header-center {
    order: 3;
    width: 100%;
    margin: 4px 0 0 0;
    max-width: 100%;
  }
  .header-right { gap: 4px; }
  #disk-text { display: none !important; }
  .disk-indicator { padding: 6px 8px; }
  #toolbar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #breadcrumbs { width: 100%; overflow-x: auto; }
  .toolbar-actions {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .toolbar-actions .btn-ghost,
  .toolbar-actions .btn-primary {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
    font-size: 0.72rem;
  }
  #main-content { padding: 10px 12px; max-width: 100vw; overflow-x: hidden; }
  .file-container.grid-view { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .file-card { padding: 14px 8px 10px; }
  .list-header { grid-template-columns: 0px 1fr 60px; padding: 10px 10px; }
  .list-col-size, .list-col-date { display: none; }
  .list-item { grid-template-columns: 0px 1fr 60px; padding: 10px 10px; }
  .selection-mode-active .list-header { grid-template-columns: 28px 1fr 60px; }
  .selection-mode-active .list-item { grid-template-columns: 28px 1fr 60px; }
  .list-size, .list-date { display: none; }
  .file-card-actions { opacity: 1 !important; }
  .list-item .file-card-actions { opacity: 1 !important; }
  #upload-panel { right: 0; left: 0; width: 100%; }
  .login-card { margin: 16px; padding: 24px 16px; width: calc(100vw - 32px); }
  .modal-card { margin: 16px; padding: 20px; width: calc(100vw - 32px); }
  .drop-zone { padding: 24px 16px; }
  #disk-bar-container { padding: 8px 12px; }
  .disk-bar-info { flex-direction: column; align-items: flex-start; gap: 4px; }
  .remote-url-bar { flex-wrap: wrap; }
  .remote-url-bar svg { display: none; }
  .remote-url-bar input { width: 100%; }
  .remote-url-bar .btn-primary { width: 100%; justify-content: center; }
  .remote-header { padding: 14px 16px; }
  .remote-list { padding: 12px 16px; }
  #filter-bar { padding: 8px 12px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .filter-tabs { width: 100%; overflow-x: auto; padding-bottom: 2px; }
}
@media (max-width: 480px) {
  .logo span { display: none; }
  .file-container.grid-view { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ════════════════════════════════════════════════════════════════════════
   CLOUD BROWSER PANEL & TAB SYSTEM
   ════════════════════════════════════════════════════════════════════════ */
#cloud-browser-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-base); display: flex; flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.cloud-browser-container {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background: #030303;
}
.cloud-browser-header {
  display: flex; align-items: center; background: #070707;
  border-bottom: 1px solid #181818; padding: 4px 12px 0 12px; gap: 8px;
}
.cloud-tabs-bar {
  display: flex; gap: 4px; overflow-x: auto; flex: 1; align-items: flex-end;
}
.cloud-tab-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: #101010; border: 1px solid #1c1c1c; border-bottom: none;
  border-radius: 4px 4px 0 0; color: var(--text-2); font-size: 0.78rem;
  max-width: 200px; cursor: pointer; user-select: none; transition: var(--transition);
}
.cloud-tab-pill:hover { background: #181818; color: var(--text-1); }
.cloud-tab-pill.active {
  background: #050505; color: var(--accent); font-weight: 600;
  border-color: var(--accent-soft); border-bottom: 1px solid #050505;
}
.cloud-tab-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.cloud-tab-close {
  background: none; border: none; color: var(--text-3); font-size: 0.75rem;
  cursor: pointer; padding: 0 2px; line-height: 1; border-radius: 2px;
}
.cloud-tab-close:hover { color: var(--danger); background: var(--danger-soft); }
.cloud-tab-add {
  padding: 6px 12px; background: transparent; border: 1px solid #1a1a1a;
  color: var(--text-2); font-size: 1rem; cursor: pointer; font-weight: 700;
  margin-bottom: 4px; transition: var(--transition);
}
.cloud-tab-add:hover { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.cloud-browser-close {
  padding: 6px 12px; background: transparent; border: none;
  color: var(--text-2); font-size: 1.1rem; cursor: pointer; margin-bottom: 4px;
}
.cloud-browser-close:hover { color: var(--danger); }

.cloud-browser-navbar {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: #050505; border-bottom: 1px solid #181818;
}
#cloud-url-input {
  flex: 1; padding: 8px 14px; background: #0c0c0c; border: 1px solid #1a1a1a;
  color: var(--text-1); font-size: 0.85rem; outline: none; transition: var(--transition);
}
#cloud-url-input:focus { border-color: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }

.cloud-browser-viewport {
  flex: 1; position: relative; background: #ffffff;
}
.cloud-browser-iframe {
  width: 100%; height: 100%; border: none; background: #ffffff;
}

/* ════════════════════════════════════════════════════════════════════════
   FOLDER PICKER MODAL
   ════════════════════════════════════════════════════════════════════════ */
.folder-picker-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.folder-picker-modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; width: 90%; max-width: 500px; max-height: 70vh;
  display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.folder-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.folder-picker-header h3 {
  margin: 0; font-size: 1rem; color: var(--accent);
  font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase;
}
.folder-picker-breadcrumbs {
  display: flex; align-items: center; gap: 4px; padding: 10px 20px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.folder-picker-breadcrumbs .breadcrumb-item {
  background: none; border: none; color: var(--text-2); font-size: 0.8rem;
  cursor: pointer; padding: 2px 6px; border-radius: 3px;
}
.folder-picker-breadcrumbs .breadcrumb-item:hover { background: var(--bg-hover); color: var(--text-1); }
.folder-picker-breadcrumbs .breadcrumb-sep { color: var(--text-3); font-size: 0.75rem; }
.folder-picker-list {
  flex: 1; overflow-y: auto; padding: 8px 12px; min-height: 150px; max-height: 40vh;
}
.folder-picker-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 4px; cursor: pointer; transition: var(--transition);
  color: var(--text-1); font-size: 0.85rem;
}
.folder-picker-item:hover { background: var(--bg-hover); }
.folder-picker-item.active { background: var(--accent-soft); color: var(--accent); }
.folder-picker-item svg { color: var(--accent); flex-shrink: 0; }
.folder-picker-empty {
  color: var(--text-3); text-align: center; padding: 30px; font-size: 0.85rem;
}
.folder-picker-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--border); gap: 12px;
}
#folder-picker-selected {
  font-size: 0.78rem; color: var(--text-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.folder-picker-btns { display: flex; gap: 8px; }

/* ════════════════════════════════════════════════════════════════════════
   DRAG & DROP FILE MOVE HIGHLIGHTS
   ════════════════════════════════════════════════════════════════════════ */
.file-card.drag-over,
.list-item.drag-over {
  outline: 2px solid var(--accent) !important;
  outline-offset: -2px;
  background: var(--accent-soft) !important;
}
.file-card.dragging,
.list-item.dragging {
  opacity: 0.4;
}
