/* OutboundOS Dashboard — extends theme.css */

.dashboard-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 4rem 6rem;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.stat-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-card.highlight {
  border-color: rgba(200,255,0,0.3);
  background: var(--lime-dim);
}
.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-card:not(.highlight) .stat-val { color: var(--text); }
.stat-lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Campaign list */
.campaign-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.campaign-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.campaign-card:hover { border-color: rgba(200,255,0,0.2); }
.campaign-card.active { border-color: var(--lime); }
.cc-name { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 0.5rem; }
.cc-meta { display: flex; gap: 0.75rem; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.cc-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--surface-2);
  text-transform: capitalize;
}
.cc-status.status-running { background: rgba(200,255,0,0.15); color: var(--lime); }
.cc-status.status-draft { background: var(--surface-2); color: var(--text-muted); }
.cc-status.status-completed { background: var(--surface-2); color: var(--lime); }
.cc-status.status-new { background: rgba(200,255,0,0.1); color: var(--lime); }
.cc-status.status-contacted { background: rgba(255,200,0,0.1); color: #ffc800; }
.cc-status.status-replied { background: rgba(0,200,100,0.1); color: #00c864; }
.cc-status.status-booked { background: rgba(0,200,255,0.1); color: #00c8ff; }

/* Campaign panel */
.campaign-panel { background: var(--surface); border: var(--border); border-radius: var(--radius); padding: 2rem; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.panel-header h3 { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700; }
.panel-actions { display: flex; gap: 0.75rem; }

/* Funnel */
.funnel { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--surface-2); border-radius: var(--radius); }
.funnel-step { text-align: center; flex: 1; }
.funnel-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text-muted); }
.funnel-lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.funnel-arrow { font-size: 1.25rem; color: var(--text-muted); }

.panel-sub { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; }

/* Prospect table */
.prospect-table { overflow-x: auto; }
.prospects-tbl { width: 100%; border-collapse: collapse; }
.prospects-tbl th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-bottom: var(--border);
}
.prospects-tbl td { padding: 0.75rem 1rem; border-bottom: var(--border); font-size: 0.9rem; }
.prospects-tbl tr:last-child td { border-bottom: none; }
.prospects-tbl tr:hover td { background: var(--surface-2); }

/* Buttons */
.btn-primary {
  background: var(--lime); color: #0c0c14; font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.85rem; padding: 0.6rem 1.25rem; border: none;
  border-radius: 8px; cursor: pointer; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary {
  background: var(--surface-2); color: var(--text); font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.85rem; padding: 0.6rem 1.25rem; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--lime); }
.btn-ghost {
  background: transparent; color: var(--text-muted); font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.85rem; padding: 0.6rem 1.25rem; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
}
.btn-xs {
  background: var(--surface-2); color: var(--text-muted); font-size: 0.75rem;
  padding: 0.3rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
}
.btn-xs:hover { border-color: var(--lime); color: var(--text); }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-body {
  background: var(--surface); border: var(--border); border-radius: var(--radius);
  padding: 2rem; width: 560px; max-width: 90vw; max-height: 90vh; overflow-y: auto;
}
.modal-body h3 { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 1.5rem; }
.modal-body label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-body input, .modal-body textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.9rem; padding: 0.65rem 0.85rem;
  margin-bottom: 1rem; font-family: 'DM Sans', sans-serif;
}
.modal-body input:focus, .modal-body textarea:focus { outline: none; border-color: var(--lime); }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 0.5rem; }

/* States */
.loading, .empty-state { color: var(--text-muted); font-size: 0.9rem; padding: 2rem; text-align: center; }

/* Alert box */
.alert-box {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: var(--surface); border: 1px solid var(--lime); border-radius: var(--radius);
  padding: 1.5rem; max-width: 500px; color: var(--text); font-size: 0.9rem;
}
.alert-box pre { white-space: pre-wrap; margin-top: 0.75rem; font-size: 0.85rem; }
.alert-box button {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  float: right; font-size: 1rem; line-height: 1; padding: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-wrap { padding: 2rem 2rem 4rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .funnel { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .campaign-list { grid-template-columns: 1fr; }
}