:root {
  --bl-navy: #102a43;
  --bl-ink: #1f2933;
  --bl-muted: #627d98;
  --bl-green: #19c37d;
  --bl-green-dark: #0f9f68;
  --bl-bg: #f4f7fb;
  --bl-line: #d9e2ec;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bl-bg);
  color: var(--bl-ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  font-size: 14px;
}

a {
  color: var(--bl-green-dark);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  background: #ffffff;
}

.auth-visual {
  background:
    linear-gradient(rgba(16, 42, 67, 0.72), rgba(16, 42, 67, 0.74)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-copy {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.auth-carousel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-carousel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 42, 67, 0.74);
  z-index: 1;
}

.auth-carousel-bg .carousel-inner,
.auth-carousel-bg .carousel-item,
.auth-carousel-image {
  height: 100%;
}

.auth-carousel-image {
  background-size: cover;
  background-position: center;
}

.auth-proof span {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.auth-panel {
  display: flex;
  align-items: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
}

.brand-logo {
  width: 180px;
  height: auto;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 264px;
  flex: 0 0 264px;
  background: #ffffff;
  border-right: 1px solid var(--bl-line);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
}

.main {
  flex: 1;
  min-width: 0;
}

.topbar {
  min-height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--bl-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
}

.content {
  padding: 22px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--bl-ink);
  text-decoration: none;
  border-radius: 8px;
  min-height: 38px;
  position: relative;
}

.nav-pill:hover,
.nav-pill.active {
  background: #eefcf6;
  color: var(--bl-green-dark);
}

.menu-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.metric {
  background: #ffffff;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
  padding: 14px;
  min-height: 110px;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--bl-navy);
}

.panel {
  background: #ffffff;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
}

.panel-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bl-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-body {
  padding: 14px;
}

.form-label {
  font-size: 13px;
  margin-bottom: 4px;
}

.form-control,
.form-select,
.btn {
  font-size: 14px;
}

.form-control,
.form-select {
  min-height: 38px;
}

.table {
  font-size: 14px;
}

.btn-primary {
  background: var(--bl-green);
  border-color: var(--bl-green);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--bl-green-dark);
  border-color: var(--bl-green-dark);
}

.btn-outline-primary {
  color: var(--bl-green-dark);
  border-color: var(--bl-green);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--bl-green);
  border-color: var(--bl-green);
}

.badge-status {
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 600;
}

.funnel-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(126px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.funnel-step {
  background: #ffffff;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
  padding: 10px;
  min-height: 84px;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.lead-row-actions {
  min-width: 230px;
}

.plan-card {
  min-height: 100%;
}

.pix-code {
  word-break: break-all;
  font-size: 13px;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bl-line);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-fallback {
  color: var(--bl-green-dark);
  background: #eefcf6;
}

.flow-card {
  border: 1px solid var(--bl-line);
  border-radius: 8px;
  padding: 14px;
  min-height: 132px;
  background: #ffffff;
}

.flow-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eefcf6;
  color: var(--bl-green-dark);
}

.capture-hint {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bl-muted);
  background: #f8fafc;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.bulk-lead-list {
  max-height: 330px;
  overflow: auto;
  background: #ffffff;
}

.capture-progress-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
}

.sem-telefone-search {
  width: min(100%, 340px);
}

.mobile-menu {
  display: none;
}

@media (max-width: 992px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 280px;
    align-items: center;
    padding: 28px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
    position: fixed;
    z-index: 1040;
    inset: 0 auto 0 0;
  }

  .sidebar.show {
    display: block;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar,
  .content {
    padding: 16px;
  }

  .funnel-list {
    grid-template-columns: repeat(7, 160px);
  }
}
