/* ============================================
   Desktop Virtual — estilo
   ============================================ */
:root {
  --bg-1: #1a1f2e;
  --bg-2: #2c3142;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --text: #f4f5f9;
  --text-dim: #a8aebd;
  --panel: rgba(20, 24, 36, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --danger: #ff5e6c;
  --ok: #3ddc97;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}

/* ============================================
   Login
   ============================================ */
.login-body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(79, 140, 255, 0.18), transparent 60%),
    radial-gradient(800px 600px at 80% 90%, rgba(124, 92, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #0e1220, #1a1f2e);
}
.login-card {
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  padding: 40px;
  border-radius: 20px;
  width: 380px;
  max-width: 92vw;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-logo { font-size: 56px; }
.login-card h1 { margin: 8px 0 6px; font-size: 26px; }
.login-card .muted { margin: 0 0 28px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.login-card label span { color: var(--text-dim); }
.login-card input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.login-card input:focus { border-color: var(--accent); background: rgba(255,255,255,.08); }
.login-card button[type="submit"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: transform .1s;
}
.login-card button[type="submit"]:hover { transform: translateY(-1px); }
.error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.muted { color: var(--text-dim); font-size: 14px; }

/* ============================================
   Desktop
   ============================================ */
#desktop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-1);
  transition: background-image .4s ease;
}

/* Barra superior */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0));
  z-index: 50;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-left, .topbar-right { display: flex; gap: 8px; align-items: center; }
.badge {
  background: rgba(61, 220, 151, 0.15);
  color: var(--ok);
  border: 1px solid rgba(61, 220, 151, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.user-label {
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.btn {
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: rgba(255,255,255,.18); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 6px 10px; font-size: 12px; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.10); }

/* Área dos ícones */
#iconArea { position: absolute; inset: 0; }

/* Ícone de arquivo */
.file-icon {
  position: absolute;
  width: 76px;
  text-align: center;
  cursor: grab;
  user-select: none;
  padding: 4px;
  border-radius: 8px;
  transition: background .15s, transform .1s;
  touch-action: none;
}
.file-icon.selected { background: rgba(79,140,255,.40); outline: 2px solid rgba(79,140,255,1); box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.file-icon.drop-target { background: rgba(61,220,151,.28); outline: 2px solid rgba(61,220,151,.85); }
.file-icon.has-auth .icon-img::after {
  content: '🔒';
  position: absolute;
  bottom: -2px; right: -4px;
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.file-icon .icon-img { position: relative; }

/* Modal genérico */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  width: min(440px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  animation: winPop .15s ease-out;
}
.modal > header { padding: 16px 20px; border-bottom: 1px solid var(--panel-border); }
.modal > header h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.modal-body label { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.modal-body input[type="text"], .modal-body input[type="password"] {
  width: 100%;
  background: rgba(0,0,0,.35);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.modal-body input:focus { border-color: var(--accent); }
.input-row { display: flex; gap: 6px; align-items: center; }
.input-row input { flex: 1; }
.modal > footer {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--panel-border);
}
.auth-result {
  margin-top: 10px; padding: 12px;
  background: rgba(61,220,151,.10);
  border: 1px solid rgba(61,220,151,.35);
  border-radius: 8px;
  font-size: 13px;
}
.auth-result code {
  background: rgba(0,0,0,.4);
  padding: 4px 8px; border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.auth-result-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Árvore de pastas no modal "Mover para..." */
.folder-tree {
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  background: rgba(0,0,0,.30);
  border-radius: 6px;
  border: 1px solid var(--panel-border);
}
.folder-tree-item {
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  display: flex; align-items: center; gap: 8px;
  user-select: none;
  font-size: 13px;
}
.folder-tree-item:hover:not(.disabled) { background: rgba(255,255,255,.08); }
.folder-tree-item.selected { background: rgba(79,140,255,.30); }
.folder-tree-item.disabled { opacity: .4; cursor: not-allowed; }

/* Painel de progresso de upload */
.upload-panel {
  position: fixed;
  bottom: 16px; right: 16px;
  width: min(380px, 92vw);
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  z-index: 300;
  overflow: hidden;
  animation: winPop .15s ease-out;
}
.upload-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0,0,0,.30);
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
}
.upload-x {
  background: none; border: none; color: var(--text);
  font-size: 18px; cursor: pointer; line-height: 1;
  padding: 0 4px;
}
.upload-list {
  max-height: 320px;
  overflow: auto;
  padding: 8px 12px;
}
.upload-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
}
.upload-item:last-child { border-bottom: 0; }
.upload-item .row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 12px;
}
.upload-item .name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-item .pct { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.upload-item .bar {
  height: 5px;
  background: rgba(255,255,255,.10);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}
.upload-item .bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  transition: width .12s linear;
}
.upload-item .row2 {
  display: flex; gap: 12px;
  font-size: 11px; color: var(--text-dim);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.upload-item.done .bar > div { background: var(--ok); }
.upload-item.error .bar > div { background: var(--danger); }
.upload-item.error .pct { color: var(--danger); }

/* Breadcrumb como alvo de drop ao arrastar ícones */
.breadcrumb .crumb.drop-target {
  background: rgba(61,220,151,.30);
  outline: 2px solid rgba(61,220,151,.85);
}

/* Breadcrumb de navegação de pastas */
.breadcrumb {
  position: absolute;
  top: var(--topbar-h, 56px); left: 0; right: 0;
  padding: 6px 16px;
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(8px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  z-index: 5;
  border-bottom: 1px solid var(--panel-border);
}
.breadcrumb .crumb {
  background: none; border: none; color: var(--text);
  padding: 4px 8px; border-radius: 4px; cursor: pointer;
  font-size: 13px;
}
.breadcrumb .crumb:hover { background: rgba(255,255,255,.10); }
.breadcrumb .crumb.current { color: var(--text-dim); cursor: default; }
.breadcrumb .crumb.current:hover { background: none; }
.breadcrumb .sep { color: var(--text-dim); padding: 0 2px; }
.file-icon:hover { background: rgba(255,255,255,.10); }
.file-icon.dragging { opacity: .85; cursor: grabbing; transform: scale(1.05); z-index: 100; }
.file-icon.remote-moving { outline: 2px dashed rgba(79,140,255,.7); outline-offset: 2px; }
.file-icon .icon-img {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
}
.file-icon .icon-thumb {
  width: 50px; height: 50px;
  margin: 0 auto;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.4);
}

/* Dropdown da topbar */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  z-index: 90;
  display: flex; flex-direction: column;
}
.dropdown-menu button {
  background: none; border: none; color: var(--text);
  text-align: left; padding: 8px 12px; border-radius: 4px;
  cursor: pointer; font-size: 13px;
}
.dropdown-menu button:hover { background: rgba(255,255,255,.10); }

/* Lasso / marquee selection */
.marquee {
  position: fixed;
  background: rgba(79,140,255,0.15);
  border: 1px solid rgba(79,140,255,0.75);
  pointer-events: none;
  z-index: 50;
}

/* Janelas de visualização/edição */
.app-window {
  position: fixed;
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 320px;
  min-height: 200px;
  resize: both;
  animation: winPop .15s ease-out;
}
@keyframes winPop {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.app-window > header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0,0,0,.30);
  cursor: move;
  user-select: none;
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
  touch-action: none;
}
.app-window > header h3 {
  margin: 0; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; padding-right: 12px;
}
.app-window > header .win-actions { display: flex; gap: 6px; }
.app-window > header button {
  background: rgba(255,255,255,.08);
  border: none; color: var(--text);
  width: 26px; height: 26px;
  border-radius: 4px; cursor: pointer;
  font-size: 14px; line-height: 1;
}
.app-window > header button:hover { background: rgba(255,255,255,.18); }
.app-window > header button.win-close { background: rgba(255,90,108,.18); }
.app-window > header button.win-close:hover { background: rgba(255,90,108,.5); }
.app-window .win-body {
  flex: 1;
  overflow: auto;
  display: flex;
  background: rgba(0,0,0,.25);
  min-height: 0;
}
.app-window .win-body img {
  margin: auto;
  max-width: 100%; max-height: 100%;
  display: block;
}
.app-window .win-body iframe {
  flex: 1;
  width: 100%; height: 100%;
  border: 0;
  background: white;
}
.app-window .win-body textarea {
  flex: 1;
  background: rgba(10,12,20,.55);
  color: var(--text);
  border: 0;
  padding: 14px;
  font-family: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  outline: none;
  tab-size: 2;
}
.app-window .md-preview {
  flex: 1;
  overflow: auto;
  padding: 18px 24px;
  background: rgba(10,12,20,.55);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.app-window .md-preview h1, .app-window .md-preview h2, .app-window .md-preview h3 { margin-top: 1.2em; }
.app-window .md-preview h1 { font-size: 1.6em; border-bottom: 1px solid var(--panel-border); padding-bottom: 4px; }
.app-window .md-preview h2 { font-size: 1.3em; }
.app-window .md-preview a { color: var(--accent); }
.app-window .md-preview code {
  background: rgba(255,255,255,.08);
  padding: 1px 6px; border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .92em;
}
.app-window .md-preview pre {
  background: rgba(0,0,0,.4);
  padding: 12px 14px; border-radius: 6px; overflow: auto;
}
.app-window .md-preview pre code { background: transparent; padding: 0; }
.app-window .md-preview blockquote {
  border-left: 3px solid var(--accent);
  margin: 8px 0; padding: 4px 12px;
  color: var(--text-dim);
}
.app-window .md-preview img { max-width: 100%; }

/* Visualizador de .docx (mammoth.js → HTML) */
.app-window .doc-preview {
  flex: 1;
  overflow: auto;
  padding: 28px 36px;
  background: #ffffff;
  color: #1c1f2a;
  font-family: 'Segoe UI', Calibri, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.app-window .doc-preview p { margin: 0 0 .6em; }
.app-window .doc-preview h1,
.app-window .doc-preview h2,
.app-window .doc-preview h3,
.app-window .doc-preview h4 {
  color: #1c1f2a;
  margin: 1.2em 0 .4em;
}
.app-window .doc-preview a { color: #2563eb; }
.app-window .doc-preview img { max-width: 100%; }
.app-window .doc-preview table {
  border-collapse: collapse;
  margin: 8px 0;
}
.app-window .doc-preview table td,
.app-window .doc-preview table th {
  border: 1px solid #ccd; padding: 4px 8px;
}

/* Visualizador de planilha (.xlsx/.xls/.ods via SheetJS) */
.app-window .sheet-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  color: #1c1f2a;
}
.app-window .sheet-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  background: #f1f3f7;
  border-bottom: 1px solid #d0d4dc;
  flex-shrink: 0;
  font-size: 13px;
  color: #1c1f2a;
}
.app-window .sheet-toolbar .muted { color: #4b5163; font-size: 12px; }
.app-window .sheet-toolbar select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #c7cbd4;
  background: white;
  color: #1c1f2a;
  font-size: 13px;
  max-width: 60vw;
}
.app-window .sheet-preview {
  flex: 1;
  overflow: auto;
  padding: 0;
}
.app-window .sheet-preview table {
  border-collapse: collapse;
  font-size: 13px;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
}
.app-window .sheet-preview td,
.app-window .sheet-preview th {
  border: 1px solid #d0d4dc;
  padding: 4px 8px;
  white-space: nowrap;
  background: white;
  color: #1c1f2a;
  vertical-align: top;
}
.app-window .sheet-preview tr:first-child td {
  background: #eef1f6;
  font-weight: 600;
}
.app-window .win-footer button.toggle-active {
  background: rgba(79,140,255,.5);
}
.app-window .win-fallback {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
}
.app-window .win-fallback .big-emoji { font-size: 56px; }
.app-window .win-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,.30);
  border-top: 1px solid var(--panel-border);
  flex-shrink: 0;
}
.app-window .win-status { flex: 1; font-size: 12px; color: var(--text-dim); }
.app-window .win-status.dirty { color: #ffc266; }
.app-window .win-status.saved { color: var(--ok); }
.file-icon .icon-name {
  font-size: 12px;
  margin-top: 4px;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  max-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.file-icon .icon-meta {
  font-size: 10px;
  color: rgba(255,255,255,.7);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.icon-rename {
  width: 100%;
  font-size: 12px;
  text-align: center;
  background: rgba(0,0,0,.5);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 3px;
  outline: none;
  padding: 1px 2px;
}

/* Overlay de drop */
.drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(79, 140, 255, 0.25);
  border: 4px dashed rgba(79, 140, 255, 0.8);
  display: grid;
  place-items: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.drop-overlay-inner {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  background: rgba(0,0,0,.5);
  padding: 24px 36px;
  border-radius: 16px;
}
.drop-icon { font-size: 64px; margin-bottom: 8px; }

/* ============================================
   Painéis laterais
   ============================================ */
.side-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 380px;
  max-width: 90vw;
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--panel-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,.4);
  animation: slideIn .2s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.side-panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
}
.side-panel header h2 { margin: 0; font-size: 16px; }
.side-panel .close {
  background: none; border: none; color: var(--text);
  font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px;
}
.panel-body { padding: 16px 20px; overflow-y: auto; }
.section { margin-bottom: 24px; }
.section h3 { font-size: 13px; color: var(--text-dim); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .5px; }

/* Log */
.log-list { padding: 8px; overflow-y: auto; flex: 1; }
.log-item {
  display: flex; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 4px;
  background: rgba(255,255,255,.03);
}
.log-item:hover { background: rgba(255,255,255,.07); }
.log-item .log-icon { font-size: 16px; flex-shrink: 0; }
.log-item .log-body { flex: 1; min-width: 0; }
.log-item .log-line { word-break: break-word; }
.log-item .log-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* Galeria de backgrounds */
.bg-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bg-thumb {
  aspect-ratio: 16/9;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .1s;
}
.bg-thumb:hover { border-color: var(--accent); transform: translateY(-2px); }

.url-row { display: flex; gap: 6px; }
.url-row input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.url-row input:focus { border-color: var(--accent); }

input[type=file] {
  width: 100%;
  background: rgba(255,255,255,.05);
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
}

/* Menu de contexto */
.ctx-menu {
  position: fixed;
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 6px;
  z-index: 300;
  box-shadow: var(--shadow);
  min-width: 160px;
}
.ctx-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.ctx-menu button:hover { background: rgba(255,255,255,.10); }
.ctx-menu button.danger { color: var(--danger); }
.ctx-menu button.danger:hover { background: rgba(255, 94, 108, .15); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 400;
  box-shadow: var(--shadow);
  animation: toastIn .2s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Responsivo */
@media (max-width: 600px) {
  .side-panel { width: 100%; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .file-icon { width: 80px; }
  .file-icon .icon-img { font-size: 44px; }
}
