/* ==========================================================================
   NEXON AXIOM — DASHBOARD & BOARD LIBRARY STYLES
   ========================================================================== */

/* ── Toolbar ── */
#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--toolbar-h);
  background: var(--glass-surface);
  border-bottom: 0.5px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 100;
  user-select: none;
}
.tb-brand {
  padding: 0 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-pure);
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 0.5px solid var(--glass-border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}
.tb-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-pure);
  animation: pulse-brand 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--gold-glow-strong);
}
.tb-brand span {
  color: var(--ink-muted);
  font-weight: 300;
}
.tb-nav {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
}
.tb-nav-item {
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-gray);
  cursor: pointer;
  text-transform: uppercase;
  border-right: 0.5px solid var(--glass-border);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.tb-nav-item:hover {
  color: var(--ink-white);
  background: var(--gold-glow);
}
.tb-nav-item.active {
  color: var(--gold-pure);
  border-bottom: 2px solid var(--gold-pure);
}
.tb-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
  padding-right: 18px;
}
.tb-clock {
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-gray);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  border-right: 0.5px solid var(--glass-border);
}
.tb-clock .time {
  color: var(--gold-pure);
  font-size: 13px;
  font-weight: 600;
}
.tb-clock .date {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* ── Main layout ── */
#app {
  position: fixed;
  inset: 0;
  top: var(--toolbar-h);
  z-index: 1;
  display: flex;
  overflow: hidden;
}

/* ── Sidebar ── */
#sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--glass-card);
  border-right: 0.5px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  overflow-y: auto;
  user-select: none;
}
.sb-section-label {
  padding: 0 22px 8px;
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 6px;
}
.sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-gray);
  transition: all var(--transition-fast);
  text-decoration: none;
  border-left: 2.5px solid transparent;
}
.sb-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sb-item:hover {
  color: var(--ink-white);
  background: var(--gold-glow);
}
.sb-item.active {
  color: var(--gold-pure);
  border-left-color: var(--gold-pure);
  background: var(--gold-glow);
  font-weight: 500;
}
.sb-item svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.sb-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--gold-glow);
  color: var(--gold-pure);
  border: 0.5px solid var(--glass-border);
}
.sb-divider {
  height: 0.5px;
  background: var(--glass-border);
  margin: 14px 18px;
}
.sb-new-btn {
  margin: 0 18px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--gold-glow-strong);
  border: 0.5px solid var(--gold-border-subtle);
  color: var(--gold-pure);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.sb-new-btn:hover {
  background: var(--gold-glow-strong);
  border-color: var(--gold-pure);
  box-shadow: 0 0 16px var(--gold-glow);
  transform: translateY(-1px);
}
.sb-new-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

/* ── Main content ── */
#main {
  flex: 1;
  overflow-y: auto;
  padding: 32px 42px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Hero section ── */
.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 0.5px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 20px;
}
.hero-eyebrow {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--gold-pure);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink-white);
  line-height: 1.15;
  font-style: italic;
}
.hero-title b {
  font-style: normal;
  font-weight: 700;
  color: var(--gold-pure);
}
.hero-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-gray);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 10px 18px;
  border-left: 1px solid var(--glass-border);
  background: var(--gold-glow);
  border-radius: 0 8px 8px 0;
}
.stat-val {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-pure);
  font-family: var(--font-mono);
}
.stat-lbl {
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ── Search & Filter Toolbar ── */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 38px;
  background: var(--glass-card);
  border: 0.5px solid var(--glass-border);
  border-radius: 8px;
  color: var(--ink-white);
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
  transition: all var(--transition-fast);
}
.search-input:focus {
  border-color: var(--gold-pure);
  box-shadow: 0 0 12px var(--gold-glow-strong);
}
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
}
.search-clear:hover {
  color: var(--ink-white);
}
.search-clear.visible {
  display: block;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sort-select {
  height: 38px;
  padding: 0 14px;
  background: var(--glass-card);
  border: 0.5px solid var(--glass-border);
  border-radius: 8px;
  color: var(--ink-white);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sort-select:focus {
  border-color: var(--gold-pure);
}

/* ── New Board CTA ── */
.new-board-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--gold-glow);
  border: 1px dashed var(--gold-border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.new-board-card:hover {
  background: var(--gold-glow-strong);
  border-color: var(--gold-pure);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.nbc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gold-glow-strong);
  border: 0.5px solid var(--gold-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nbc-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-pure);
  stroke-width: 2;
}
.nbc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-white);
  margin-bottom: 3px;
}
.nbc-sub {
  font-size: 12px;
  color: var(--ink-gray);
  font-family: var(--font-mono);
}
.nbc-arrow {
  margin-left: auto;
  color: var(--gold-dim);
  transition: transform var(--transition-fast);
}
.new-board-card:hover .nbc-arrow {
  transform: translateX(4px);
  color: var(--gold-pure);
}
.nbc-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

/* ── Section headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.section-title {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--gold-pure);
  text-transform: uppercase;
}
.section-action {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-action:hover {
  color: var(--gold-pure);
}

/* ── File Grid ── */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.file-card {
  background: var(--glass-card);
  border: 0.5px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}
.file-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.fc-preview {
  height: 140px;
  position: relative;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 0.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-canvas-preview {
  width: 100%;
  height: 100%;
  display: block;
}
.fc-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fc-date {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
}
.fc-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.fc-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gold-glow);
  color: var(--gold-pure);
  border: 0.5px solid var(--glass-border);
}

/* Card Action Buttons */
.fc-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 10;
}
.file-card:hover .fc-actions {
  opacity: 1;
}
.fc-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--glass-surface);
  border: 0.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--ink-gray);
  backdrop-filter: blur(8px);
}
.fc-action-btn:hover {
  border-color: var(--gold-pure);
  color: var(--gold-pure);
  background: var(--gold-glow);
}
.fc-action-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}
.fc-action-btn.del:hover {
  border-color: var(--ink-crimson);
  color: var(--ink-crimson);
  background: rgba(239, 68, 68, 0.1);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  gap: 14px;
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  background: var(--gold-glow);
}
.empty-icon {
  color: var(--gold-dim);
}
.empty-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.4;
}
.empty-title {
  font-size: 15px;
  color: var(--ink-white);
  font-family: var(--font-mono);
  font-weight: 500;
}
.empty-sub {
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  text-align: center;
  max-width: 380px;
}
.empty-cta {
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--gold-glow-strong);
  border: 0.5px solid var(--gold-border-subtle);
  border-radius: 6px;
  color: var(--gold-pure);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.empty-cta:hover {
  background: var(--gold-pure);
  color: #000;
}

/* ── Drop zone overlay ── */
#dropZone {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(3, 3, 3, 0.90);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 2px dashed var(--gold-pure);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
#dropZone.active {
  opacity: 1;
  pointer-events: all;
}
.dz-icon svg {
  width: 54px;
  height: 54px;
  stroke: var(--gold-pure);
  stroke-width: 1.4;
  animation: pulse-brand 2s infinite;
}
.dz-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-pure);
  font-family: var(--font-mono);
}
.dz-sub {
  font-size: 13px;
  color: var(--ink-gray);
  font-family: var(--font-mono);
}

/* Modal Inputs & Buttons */
.modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-void);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--ink-white);
  font-family: var(--font-ui);
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
}
.modal-input:focus {
  border-color: var(--gold-pure);
  box-shadow: 0 0 12px var(--gold-glow-strong);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.modal-btn {
  padding: 9px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 0.5px solid var(--glass-border);
  background: transparent;
  color: var(--ink-gray);
}
.modal-btn:hover {
  color: var(--ink-white);
  background: var(--gold-glow);
}
.modal-btn.primary {
  background: var(--gold-pure);
  color: #000000;
  font-weight: 600;
  border-color: var(--gold-pure);
}
.modal-btn.primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 16px var(--gold-glow-strong);
}
.modal-btn.danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--ink-crimson);
}
.modal-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 820px) {
  #sidebar {
    width: 200px;
  }
  #main {
    padding: 24px 20px;
  }
  .hero-title {
    font-size: 26px;
  }
}
@media (max-width: 680px) {
  #app {
    flex-direction: column;
  }
  #sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 0.5px solid var(--glass-border);
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }
  .sb-section-label, .sb-divider {
    display: none;
  }
  .sb-new-btn {
    margin: 0 8px 0 0;
    padding: 8px 14px;
    white-space: nowrap;
  }
  .sb-item {
    padding: 8px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .sb-item.active {
    border-bottom-color: var(--gold-pure);
  }
  .tb-clock {
    display: none;
  }
}
