:root {
  --bg-1: #fef5e7;
  --bg-2: #e7f7f5;
  --ink: #1c2a2f;
  --muted: #6b7a80;
  --brand: #0d9488;
  --brand-deep: #0f766e;
  --accent: #f97316;
  --panel: rgba(255, 255, 255, 0.84);
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: linear-gradient(125deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 12%, rgba(249, 115, 22, 0.22), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(13, 148, 136, 0.2), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(14, 165, 233, 0.14), transparent 30%);
}

.main-shell {
  backdrop-filter: blur(1px);
  min-height: 100vh;
}

.sidebar-wrap {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 94, 89, 0.98), rgba(13, 78, 93, 0.96));
  color: #eaf8f5;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.logo-kicker {
  letter-spacing: 0.12em;
  color: #9fe7df;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.menu-label {
  margin-bottom: 0.65rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(232, 255, 251, 0.72);
}

.nav-panel .nav-link {
  color: #d6faf5;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.2rem;
  transition: transform 0.18s ease, background-color 0.2s ease;
}

.nav-panel .nav-link:hover,
.nav-panel .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.alert-panel {
  background: rgba(255, 255, 255, 0.12);
  color: #eaf8f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.content-wrap {
  color: var(--ink);
  contain: layout paint;
}

.panel-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

@media (hover: hover) and (pointer: fine) {
  .panel-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.11);
  }
}

.tiny-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  color: var(--brand-deep);
  font-weight: 600;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 1.9vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.btn-brand {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--brand), #0ea5a0);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.26);
}

.btn-brand:hover {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0d9488);
}

.btn-outline-brand {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-outline-brand:hover {
  color: #fff;
  background-color: var(--brand-deep);
}

.btn-light-ghost {
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.09);
}

.stats-grid .metric-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 0.95rem;
  height: 100%;
}

.metric-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.metric-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.status-tabs .nav-link {
  border-radius: 999px;
  color: #4a5a60;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid transparent;
  padding: 0.42rem 0.8rem;
  font-size: 0.84rem;
}

.status-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  width: 100%;
}

.table-responsive {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.55);
  -webkit-overflow-scrolling: touch;
}

.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  border-bottom-color: rgba(15, 23, 42, 0.11);
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.96);
  z-index: 1;
}

.table tbody td {
  border-color: rgba(15, 23, 42, 0.07);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background: rgba(13, 148, 136, 0.06);
}

.badge-prospect {
  background: #e2e8f0;
  color: #334155;
}

.badge-lead {
  background: #d1fae5;
  color: #065f46;
}

.badge-client {
  background: #dbeafe;
  color: #1e40af;
}

.row-rejected {
  background: rgba(254, 226, 226, 0.6);
}

.table-footer {
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
  padding-top: 0.75rem;
  color: #5b6870;
}

.column-menu {
  min-width: 13.5rem;
}

.column-menu li {
  margin-bottom: 0.35rem;
}

.column-menu label {
  width: 100%;
  font-size: 0.9rem;
  cursor: pointer;
  color: #34434a;
}

.column-menu input {
  margin-right: 0.48rem;
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.13);
  min-height: 2.65rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

.status-chip {
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-dnc { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.status-ni { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.status-dnq { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.status-na { background: #e0f2fe; border-color: #bae6fd; color: #075985; }
.status-cb { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.status-lead { background: #dbeafe; border-color: #bfdbfe; color: #1d4ed8; }

.timeline-list {
  display: grid;
  gap: 0.7rem;
}

.timeline-item {
  border-left: 3px solid rgba(13, 148, 136, 0.45);
  padding-left: 0.75rem;
}

.timeline-item p {
  color: #30444a;
}

.timeline-item small {
  color: #64748b;
}

.pagination .page-link {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  min-width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.55rem;
  font-size: 0.9rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.9);
}

.pagination .page-item.active .page-link {
  background-color: var(--brand);
  border-color: var(--brand);
}

.pagination {
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-size: 0.82rem;
  font-weight: 600;
  padding-inline: 0.65rem;
}

.pagination .page-item.disabled .page-link {
  background: rgba(241, 245, 249, 0.8);
  color: #94a3b8;
}

.modal-content {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.reveal-item {
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn 0.35s ease forwards;
}

.reveal-item:nth-child(2) { animation-delay: 0.08s; }
.reveal-item:nth-child(3) { animation-delay: 0.14s; }
.reveal-item:nth-child(4) { animation-delay: 0.2s; }
.reveal-item:nth-child(5) { animation-delay: 0.26s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    min-height: auto;
    height: auto;
    position: relative;
    overflow: visible;
  }

  .sidebar-wrap {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .content-wrap {
    padding-top: 1rem !important;
  }

  .main-shell {
    backdrop-filter: none;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.35rem;
  }

  .panel-card {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 148, 136, 0.55) rgba(15, 23, 42, 0.08);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.85), rgba(15, 118, 110, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
