/* ══════════════════════════════════════════════════════════════════════
   NEXUS Unfold — estilos específicos do produto
   (overrides e adições sobre tokens.css + shell.css + components.css)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Logo animado do Unfold (U·N·F·O·L·D) ──────────────────────────── */
.nexus .uf-logo-anim {
  width: 100%;
  max-width: 120px;
  height: auto;
  overflow: visible;
  color: var(--ink-white);
}

.nexus .uf-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 72px;
  border-bottom: none;
  margin-bottom: var(--s-2);
}

/* Faces: começam invisíveis, dobradas */
.nexus .uf-face {
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.nexus .uf-face-u { transform: none; }
.nexus .uf-face-n { transform-origin: 52.1px 102.2px; transform: scaleY(0); }
.nexus .uf-face-f { transform-origin: 104.2px 154.3px; transform: scaleX(0); }
.nexus .uf-face-o { transform-origin: 204.4px 154.3px; transform: scaleX(0); }
.nexus .uf-face-l { transform-origin: 308.6px 154.3px; transform: scaleX(0); }
.nexus .uf-face-d { transform-origin: 256.5px 206.4px; transform: scaleY(0); }

/* Estados desdobrados */
.nexus .uf-face.unfolded { opacity: 1; }
.nexus .uf-face-n.unfolded { transform: scaleY(1); }
.nexus .uf-face-f.unfolded { transform: scaleX(1); }
.nexus .uf-face-o.unfolded { transform: scaleX(1); }
.nexus .uf-face-l.unfolded { transform: scaleX(1); }
.nexus .uf-face-d.unfolded { transform: scaleY(1); }

/* Dobras (dashes amarelos) + letras */
.nexus .uf-fold { opacity: 0; transition: opacity 0.25s ease-out; }
.nexus .uf-fold.visible { opacity: 1; }
.nexus .uf-letter { opacity: 0; transition: opacity 0.3s ease-out; }
.nexus .uf-letter.visible { opacity: 1; }

/* ── Nav no topbar (movido da sidebar) ──────────────────────────── */
.nexus .topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nexus .topbar-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-white-70);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color var(--t-base) ease, background var(--t-base) ease, border-color var(--t-base) ease;
}
.nexus .topbar-nav-link svg { flex-shrink: 0; }
.nexus .topbar-nav-link:hover {
  color: var(--ink-white);
  background: rgba(255, 255, 255, 0.04);
}
.nexus .topbar-nav-link.active {
  color: var(--brand-yellow);
  background: rgba(250, 176, 5, 0.08);
  border-color: rgba(250, 176, 5, 0.35);
}

/* ── Upload area full-width da home ─────────────────────────────── */
.nexus .uf-upload-area {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: 32px;
  margin: 0;
  width: 100%;
  min-height: calc(100vh - 90px);
  background: var(--bg-column);
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
}
.nexus .uf-upload-card {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  width: 60%;
  max-width: none;
  align-items: stretch;
}
.nexus .uf-upload-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.nexus .uf-upload-card .uf-upload-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  color: var(--brand-yellow);
  flex-shrink: 0;
  margin: 0;
  font-size: inherit;
  font-weight: normal;
}
.nexus .uf-upload-card .uf-upload-title {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--ink-white);
  margin: 0;
  text-transform: uppercase;
  line-height: 1;
}
.nexus .uf-upload-zone {
  min-height: 180px;
  padding: 48px 60px 68px 60px;
  border: none;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: center;
  transition: background var(--t-base) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nexus .uf-upload-zone:hover,
.nexus .uf-upload-zone.dragover {
  background: rgba(250, 176, 5, 0.06);
}
.nexus .uf-upload-zone-icon {
  color: var(--ink-white-50);
  margin-bottom: 6px;
}
.nexus .uf-upload-zone-text {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-white);
  font-weight: 500;
}
.nexus .uf-upload-zone-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-white-30);
  letter-spacing: 0.04em;
}
.nexus .uf-upload-zone-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-yellow);
  margin-top: 8px;
}
.nexus .uf-btn,
.nexus .uf-upload-card .uf-btn {
  height: 40px;
  padding: 0 24px;
  background: var(--brand-yellow);
  color: var(--ink-card);
  border: 1px solid var(--brand-yellow);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: filter var(--t-base) ease, transform var(--t-fast) ease;
  align-self: flex-start;
  width: auto;
  box-shadow: none;
}
.nexus .uf-btn:hover:not(:disabled),
.nexus .uf-upload-card .uf-btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(250, 176, 5, 0.2);
}
.nexus .uf-btn:active:not(:disabled),
.nexus .uf-upload-card .uf-btn:active:not(:disabled) {
  transform: translateY(0);
}
.nexus .uf-btn:disabled,
.nexus .uf-upload-card .uf-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-white-30);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
  border-radius: var(--r-pill);
}

/* Override main padding para Unfold (mais compacto) */
.nexus .main { padding: 4px 12px 12px 4px; }

/* ── Topbar inline actions (ex-uf-topbar-action) ─────────────── */
.nexus .topbar-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: var(--s-2);
}
.nexus button.topbar-nav-link {
  background: transparent;
  cursor: pointer;
  font: inherit;
}

/* ── Jobs list: layout dentro do .main do Nexus ──────────────── */
.nexus .uf-jobs-layout {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: calc(100vh - 90px);
  margin: 0;
  background: var(--bg-column);
  border-radius: var(--r-md);
  overflow: hidden;
}
.nexus .uf-jobs-sidebar {
  width: 220px;
  min-width: 220px;
  padding: 20px 0;
  background: transparent;
}
.nexus .uf-jobs-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-white-50);
  text-decoration: none;
  transition: color var(--t-base) ease;
}
.nexus .uf-jobs-sidebar-item:hover {
  color: var(--ink-white);
}
.nexus .uf-jobs-sidebar-item.active {
  color: var(--brand-yellow);
}
.nexus .uf-jobs-sidebar-item span:first-of-type {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nexus .uf-jobs-sidebar-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-white-30);
}
.nexus .uf-jobs-main {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.nexus .uf-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
