/* PDFForge Dashboard Styles */
:root {
  --bg: #0b0b10;
  --card: #13131a;
  --fg: #f0ede8;
  --fg-muted: #9a9aaa;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.12);
  --border: rgba(255,255,255,0.07);
  --success: #22c55e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dash-nav {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
}
.dash-nav-right { display: flex; align-items: center; gap: 12px; }
.btn-new-pdf {
  background: var(--accent);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-new-pdf:hover { background: #ea6c0e; }

.dash-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px;
}
.dash-header { margin-bottom: 36px; }
.dash-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin-bottom: 8px;
}
.dash-subtitle { color: var(--fg-muted); font-size: 15px; }

.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  color: var(--fg-muted);
}
.loader-ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.06);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 0;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.empty-state p { color: var(--fg-muted); font-size: 14px; margin-bottom: 24px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover { background: #ea6c0e; }
.hidden { display: none !important; }

.pdf-list { display: flex; flex-direction: column; gap: 12px; }
.pdf-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s;
}
.pdf-row:hover { border-color: rgba(255,255,255,0.12); }
.pdf-row-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.pdf-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-muted);
}
.status-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.status-draft { background: rgba(255,255,255,0.06); color: var(--fg-muted); }
.status-outline_generated { background: rgba(249,115,22,0.12); color: var(--accent); }
.status-content_generated { background: rgba(249,115,22,0.12); color: var(--accent); }
.status-pdf_generated { background: rgba(34,197,94,0.12); color: #22c55e; }
.status-published { background: rgba(34,197,94,0.15); color: #22c55e; }

.pdf-row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--fg); }
.pending-label { font-size: 12px; color: var(--fg-muted); opacity: 0.5; }
.pdf-price-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.btn-sell { color: var(--accent) !important; border-color: rgba(249,115,22,0.3) !important; }
.btn-sell:hover { background: var(--accent-dim) !important; }

@media (max-width: 640px) {
  .dash-nav { padding: 14px 20px; }
  .dash-main { padding: 24px 20px; }
  .pdf-row { flex-direction: column; align-items: flex-start; }
  .pdf-row-actions { margin-top: 8px; }
}