
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --panel: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --danger: #f97373;
  --success: #4ade80;
  --warning: #facc15;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #000 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: var(--text-main);
}

body {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

#root {
  flex: 1;
  display: flex;
}

/* Layout */

.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  width: 100%;
  height: 100vh;
}

/* Sidebar */

.sidebar {
  background: linear-gradient(180deg, #020617 0%, #020617 40%, #020617 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.3);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(75, 85, 99, 0.7);
  margin-bottom: 8px;
}

.logo-orb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #22d3ee, #a855f7, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
  position: relative;
}

.logo-orb-inner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f9fafb, #4b5563);
}

.logo-text-main {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-button {
  border: none;
  border-radius: 9px;
  padding: 7px 10px;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.nav-button-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.nav-button span {
  flex: 1;
}

.nav-button.active {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.4), rgba(79, 70, 229, 0.6));
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7), 0 18px 30px rgba(15, 23, 42, 0.9);
}

.nav-button.active .nav-button-icon {
  background: rgba(15, 23, 42, 0.8);
}

.nav-button:hover:not(.active) {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.9;
}

/* Main */

.main {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-title-pill {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.5);
}

.main-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.main-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 11px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button.primary {
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  color: #020617;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.45);
}

.button.primary:hover {
  filter: brightness(1.07);
}

.button.outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.button.small {
  padding: 5px 9px;
  font-size: 0.75rem;
}

.button.danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.select.select-compact {
  font-size: 0.7rem;
  padding: 3px 6px;
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: flex-start;
}

.card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(3, 7, 18, 1));
  border-radius: 16px;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.85);
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.card-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Stats strip */

.stats-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  flex: 1 1 0;
  min-width: 150px;
  border-radius: 12px;
  padding: 8px 9px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.stat-pill-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.stat-pill-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.stat-pill-caption {
  font-size: 0.7rem;
  color: #bae6fd;
}

/* Tables */

.table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.table thead tr {
  background: rgba(15, 23, 42, 0.9);
}

.table th,
.table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.table tbody tr:hover {
  background: rgba(15, 23, 42, 0.8);
}

.badge {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.7rem;
  border: 1px solid transparent;
}

.badge.new {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
}

.badge.interested {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.7);
}

.badge.not-interested {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.6);
}

.badge.dnc {
  background: rgba(248, 250, 252, 0.05);
  border-color: rgba(148, 163, 184, 0.8);
}

/* Live monitor */

.monitor-log {
  max-height: 260px;
  overflow: auto;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(3, 7, 18, 1));
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.monitor-entry {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.monitor-tag {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 2px 5px;
  border-radius: 999px;
}

.monitor-tag.call {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.monitor-tag.conv {
  background: rgba(129, 140, 248, 0.15);
  color: #c7d2fe;
}

.monitor-tag.rec {
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.monitor-tag.sum {
  background: rgba(251, 191, 36, 0.15);
  color: #fef08a;
}

/* Forms */

.input,
.select {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 6px 7px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  font-size: 0.78rem;
}

textarea.input {
  min-height: 70px;
  resize: vertical;
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.field-row {
  display: flex;
  gap: 6px;
}

.field {
  flex: 1;
}

.field label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* Tabs */

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.tab-button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 8px;
  font-size: 0.72rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.tab-button.active {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

/* Misc */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.kpi-card {
  border-radius: 12px;
  padding: 7px 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.kpi-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.kpi-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}


/* Dashboard Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-tile {
  background: var(--panel);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}


/* === FUTURISTIC STARSHIP HUD DASHBOARD === */

.app-shell {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16) 0, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(129, 140, 248, 0.16) 0, transparent 55%),
    linear-gradient(135deg, #020617 0%, #020617 40%, #020617 100%);
}

/* subtle moving scanlines effect over entire app */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.06) 1px,
    transparent 1px
  );
  background-size: 100% 3px;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  z-index: -1;
}

/* Card : holographic console */
.card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
}

/* animated border sweep */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 120deg,
    transparent 0%,
    rgba(56, 189, 248, 0.2) 20%,
    transparent 40%,
    rgba(129, 140, 248, 0.22) 60%,
    transparent 80%,
    rgba(56, 189, 248, 0.2) 100%
  );
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: hudSweep 12s linear infinite;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(148, 163, 184, 0.35);
  pointer-events: none;
}

/* Header styling: starship label */
.card-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-subtitle {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* HUD STATUS PILL (optional – reuse existing kpi styles if needed) */
.hud-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at top, rgba(34, 197, 235, 0.3), transparent 65%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Stats grid becomes floating holo tiles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.stat-tile {
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  transform: translateY(0) translateZ(0);
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out,
    border-color 180ms ease-out,
    background 220ms ease-out;
}

/* corner accents */
.stat-tile::before,
.stat-tile::after {
  content: "";
  position: absolute;
  width: 40%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(56, 189, 248, 0.7),
    transparent
  );
  top: 0;
  left: 0;
  opacity: 0.6;
}

.stat-tile::after {
  top: auto;
  bottom: 0;
  left: auto;
  right: 0;
  background: linear-gradient(
    to left,
    rgba(129, 140, 248, 0.7),
    transparent
  );
}

/* hover: float and glow */
.stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.9);
}

/* stat text */
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
}

/* subtle small caption under grid */
.card-body > p {
  opacity: 0.8;
}

/* SPECIAL TILES */

/* Avg duration tile: waveform bar feel */
.stat-tile--duration .stat-value {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stat-tile--duration .hud-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
}

.stat-tile--duration .hud-wave span {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.9));
  animation: hudWave 1.2s ease-in-out infinite;
}

.stat-tile--duration .hud-wave span:nth-child(2) {
  animation-delay: 0.1s;
}
.stat-tile--duration .hud-wave span:nth-child(3) {
  animation-delay: 0.2s;
}
.stat-tile--duration .hud-wave span:nth-child(4) {
  animation-delay: 0.3s;
}
.stat-tile--duration .hud-wave span:nth-child(5) {
  animation-delay: 0.4s;
}

/* Hot lead rate tile: radar ring */
.stat-tile--hotrate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.stat-tile--hotrate .stat-main {
  display: flex;
  flex-direction: column;
}

.stat-tile--hotrate .stat-value {
  font-size: 1.5rem;
}

.hud-radar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(circle at center, rgba(15, 23, 42, 1) 55%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hud-radar::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(56, 189, 248, 0),
    rgba(56, 189, 248, 0.7),
    rgba(56, 189, 248, 0)
  );
  transform-origin: center center;
  animation: hudSweepRadar 2.4s linear infinite;
}

.hud-radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

/* KEYFRAMES */

@keyframes hudSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes hudWave {
  0%,
  100% {
    height: 4px;
    opacity: 0.4;
  }
  50% {
    height: 14px;
    opacity: 1;
  }
}

@keyframes hudSweepRadar {
  0% {
    transform: rotate(0deg);
    opacity: 0.7;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.4;
  }
}



/* Import modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  backdrop-filter: blur(6px);
}
.modal {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 55%), var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  width: min(720px, 100% - 32px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 0.95rem;
  font-weight: 600;
}
.modal-body {
  padding: 14px 18px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-footer {
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.csv-preview {
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  padding: 8px 10px;
}
.csv-preview-header {
  font-size: 0.75rem;
  color: #e5e7eb;
  margin-bottom: 6px;
}
.csv-preview-table-wrapper {
  max-height: 180px;
  overflow: auto;
}
.table.compact th,
.table.compact td {
  padding: 4px 6px;
  font-size: 0.75rem;
}
.field-help {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 4px;
}


/* Campaigns layout refinements */
.campaigns-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 18px;
}
.campaigns-right .field input,
.campaigns-right .field select {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 8px 10px;
  font-size: 0.85rem;
}
.campaigns-right .field input:focus,
.campaigns-right .field select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.8), 0 0 24px rgba(37, 99, 235, 0.35);
}
.campaigns-right .section-heading {
  margin-bottom: 6px;
}

/* Import modal */
.import-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.import-modal {
  width: min(720px, 100% - 32px);
  max-height: 80vh;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%), #020617;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.import-modal-title {
  font-size: 1rem;
  font-weight: 600;
}

.import-modal-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
}

.icon-button {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 6px;
  border-radius: 999px;
}
.icon-button:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
}

.import-preview {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.9);
}

.import-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.import-preview-table-wrapper {
  max-height: 180px;
  overflow: auto;
}

.table-compact th,
.table-compact td {
  padding: 2px 6px;
  font-size: 0.7rem;
}

.import-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

/* Campaigns layout polish */
.campaigns-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 18px;
}
.campaigns-left {
  min-width: 0;
}
.campaigns-right {
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 14px 14px 12px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%), rgba(15, 23, 42, 0.96);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 18px 60px rgba(15, 23, 42, 0.9);
}
.campaigns-table th,
.campaigns-table td {
  font-size: 0.78rem;
}
.campaigns-right .field input,
.campaigns-right .field select {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #e5e7eb;
}
.campaigns-right .field input:focus,
.campaigns-right .field select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.9), 0 0 18px rgba(37, 99, 235, 0.9);
}

/* Usage strip in dashboard */
.usage-strip {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: radial-gradient(circle at left, rgba(56, 189, 248, 0.16), transparent 60%);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.usage-strip-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 4px;
}
.usage-strip-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.usage-strip-main strong {
  font-size: 0.9rem;
}
.usage-strip-bar {
  margin-top: 6px;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}
.usage-strip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
}


/* Lead detail meta (list name) */
.lead-meta-row {
  margin-bottom: 8px;
}
.lead-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-muted);
}
.lead-meta-pill strong {
  color: var(--text-main);
  font-weight: 600;
}
