@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;600;700&family=Barlow+Condensed:wght@300;400;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  --nl-navy-deep:  #000e38;
  --nl-navy:       #00195c;
  --nl-orange:     #ed8220;
  --nl-off-white:  #f4f3ef;
  --nl-off-white-2:#e4e2db;
  --nl-gray:       #5a6378;
  --nl-dark:       #080e22;
  --nl-green:      #1a6640;
  --nl-red:        #bd0e20;
  --nl-radius-btn: 3px;
  --nl-radius-card:8px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  background: var(--nl-off-white);
  color: var(--nl-dark);
}

/* ============================================================
   LAYOUT
============================================================ */
.nl-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nl-main {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ============================================================
   HEADER
============================================================ */
.nl-header {
  background: var(--nl-navy-deep);
  height: 56px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 24px;
}

.nl-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.nl-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #fff;
  letter-spacing: 1px;
}

.nl-header-rep {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--nl-off-white-2);
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
.nl-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  color: var(--nl-dark);
}
.nl-headline-lg { font-size: 48px; }
.nl-headline-md { font-size: 36px; }
.nl-headline-sm { font-size: 28px; }

.nl-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 11px;
  color: var(--nl-gray);
}

.nl-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--nl-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nl-off-white-2);
}

.nl-section { margin-bottom: 40px; }

/* ============================================================
   BUTTONS
============================================================ */
.nl-btn {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--nl-radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.nl-btn-primary {
  background: var(--nl-orange);
  color: #fff;
  border-color: var(--nl-orange);
}
.nl-btn-primary:hover:not(:disabled) { opacity: 0.88; }

.nl-btn-secondary {
  background: transparent;
  color: var(--nl-navy);
  border-color: var(--nl-navy);
}
.nl-btn-secondary:hover:not(:disabled) { background: var(--nl-navy); color: #fff; }

.nl-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.nl-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.1); }

.nl-btn-sm  { padding: 6px 14px; font-size: 11px; }
.nl-btn-lg  { padding: 14px 36px; font-size: 15px; letter-spacing: 2.5px; }

/* ============================================================
   CARDS
============================================================ */
.nl-card {
  background: #fff;
  border-radius: var(--nl-radius-card);
  box-shadow: 0 2px 8px rgba(0,14,56,0.07);
  border: 1px solid var(--nl-off-white-2);
}

.nl-card-body { padding: 20px; }

.nl-card-navy  { background: var(--nl-navy);      color: #fff; box-shadow: none; border: none; }
.nl-card-dark  { background: var(--nl-navy-deep);  color: #fff; box-shadow: none; border: none; }

/* ============================================================
   BADGES — DIAGNOSIS STATES
============================================================ */
.nl-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.nl-badge-invisible    { background: #fce8ea; color: var(--nl-red); }
.nl-badge-outgunned    { background: #fdf0e3; color: #a85a10; }
.nl-badge-emerging     { background: #fef9e3; color: #92720a; }
.nl-badge-undersignaled{ background: #eef0f4; color: var(--nl-gray); }
.nl-badge-contender    { background: #e8eef8; color: #1e40af; }
.nl-badge-anchor       { background: #e4f0ea; color: var(--nl-green); }

/* ============================================================
   BADGES — LEAD STATUS
============================================================ */
.nl-status-new         { background: #eef0f4; color: var(--nl-gray); }
.nl-status-contacted   { background: #e8eef8; color: #1e40af; }
.nl-status-replied     { background: #e6f4f4; color: #0e5f5f; }
.nl-status-qualified   { background: #f0e8f8; color: #6b21a8; }
.nl-status-call-booked { background: #e4f0ea; color: var(--nl-green); }
.nl-status-closed-won  { background: #e4f0ea; color: var(--nl-green); }
.nl-status-closed-lost { background: #fce8ea; color: var(--nl-red); }

/* ============================================================
   STATS BAR
============================================================ */
.nl-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.nl-stat-card {
  background: #fff;
  border-radius: var(--nl-radius-card);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,14,56,0.07);
  border: 1px solid var(--nl-off-white-2);
}

.nl-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: var(--nl-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.nl-stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nl-gray);
}

/* ============================================================
   ACTION QUEUE (LEAD CARDS)
============================================================ */
.nl-action-queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.nl-lead-card {
  background: #fff;
  border-radius: var(--nl-radius-card);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,14,56,0.07);
  border: 1px solid var(--nl-off-white-2);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.nl-lead-card:hover {
  box-shadow: 0 4px 16px rgba(0,14,56,0.13);
  border-color: var(--nl-navy);
}

.nl-lead-card-badges {
  display: -webkit-flex;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.nl-lead-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--nl-dark);
  margin-bottom: 2px;
}

.nl-lead-card-meta {
  font-size: 13px;
  color: var(--nl-gray);
  margin-bottom: 6px;
}

.nl-lead-card-summary {
  font-size: 13px;
  color: var(--nl-gray);
  line-height: 1.55;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nl-lead-card-footer {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--nl-off-white-2);
  font-size: 12px;
  color: var(--nl-gray);
}

/* ============================================================
   TABLE
============================================================ */
.nl-table-wrap { overflow-x: auto; }

.nl-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--nl-radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,14,56,0.07);
}

.nl-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nl-gray);
  padding: 12px 16px;
  background: var(--nl-off-white);
  border-bottom: 1px solid var(--nl-off-white-2);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.nl-table th:hover { color: var(--nl-navy); }
.nl-table th.sort-asc::after  { content: ' ↑'; }
.nl-table th.sort-desc::after { content: ' ↓'; }

.nl-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--nl-off-white-2);
  font-size: 14px;
  color: var(--nl-dark);
  vertical-align: middle;
}

.nl-table tr:last-child td { border-bottom: none; }
.nl-table tbody tr { cursor: pointer; }
.nl-table tbody tr:hover td { background: var(--nl-off-white); }

/* ============================================================
   FORMS
============================================================ */
.nl-form-group { margin-bottom: 18px; }

.nl-label-field {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nl-gray);
  margin-bottom: 6px;
}

.nl-input,
.nl-select,
.nl-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--nl-dark);
  background: #fff;
  border: 1px solid var(--nl-off-white-2);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}

.nl-input:focus,
.nl-select:focus,
.nl-textarea:focus { border-color: var(--nl-navy); }

.nl-textarea { resize: vertical; min-height: 100px; }

.nl-input-row {
  display: -webkit-flex;
  display: flex;
  gap: 12px;
}

.nl-input-row .nl-form-group { flex: 1; }

.nl-search-input {
  padding: 10px 14px;
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 14px;
  border: 1px solid var(--nl-off-white-2);
  border-radius: 4px;
  background: #fff;
  outline: none;
  width: 300px;
  transition: border-color 0.15s;
}

.nl-search-input:focus { border-color: var(--nl-navy); }

.nl-list-controls {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   LOADING / EMPTY
============================================================ */
.nl-loading {
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 80px 24px;
  color: var(--nl-gray);
  font-size: 14px;
  gap: 16px;
}

.nl-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--nl-off-white-2);
  border-top-color: var(--nl-navy);
  border-radius: 50%;
  animation: nl-spin 0.7s linear infinite;
}

@keyframes nl-spin { to { transform: rotate(360deg); } }

.nl-fetch-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #ed8220;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: none;
}
.nl-fetch-bar-loading {
  opacity: 1;
  width: 75%;
  transition: width 4s cubic-bezier(0.1, 0.6, 0.5, 1), opacity 0.1s;
}
.nl-fetch-bar-done {
  opacity: 0;
  width: 100%;
  transition: width 0.15s ease, opacity 0.4s ease 0.15s;
}

.nl-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--nl-gray);
  font-size: 14px;
}

/* ============================================================
   ALERTS
============================================================ */
.nl-alert {
  padding: 12px 16px;
  border-radius: var(--nl-radius-btn);
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
}

.nl-alert-error   { background: #fce8ea; color: var(--nl-red);   border: 1px solid #f5c6cb; }
.nl-alert-success { background: #e4f0ea; color: var(--nl-green); border: 1px solid #b8dfc7; }

/* ============================================================
   LEAD DETAIL — ZONE-SPECIFIC
============================================================ */
.nl-zone { margin-bottom: 20px; }

.nl-status-bar-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.nl-status-bar-left { flex: 1; min-width: 200px; }
.nl-status-bar-right { text-align: right; font-size: 13px; color: var(--nl-gray); }

.nl-lead-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: var(--nl-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.nl-market-position {
  font-size: 16px;
  line-height: 1.7;
  color: var(--nl-dark);
  margin-bottom: 14px;
}

.nl-gap-summary {
  font-size: 14px;
  line-height: 1.65;
  color: var(--nl-gray);
  padding-top: 14px;
  border-top: 1px solid var(--nl-off-white-2);
}

.nl-outreach-box {
  background: var(--nl-off-white);
  border: 1px solid var(--nl-off-white-2);
  border-radius: 4px;
  padding: 16px;
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 12px;
  min-height: 80px;
}

.nl-action-row {
  display: -webkit-flex;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  -webkit-align-items: center;
  align-items: center;
}

.nl-activity-log {
  list-style: none;
  padding: 0;
}

.nl-activity-log li {
  padding: 10px 0;
  border-bottom: 1px solid var(--nl-off-white-2);
  font-size: 13px;
  color: var(--nl-gray);
  line-height: 1.55;
}

.nl-activity-log li:last-child { border-bottom: none; }

.nl-activity-meta {
  font-size: 11px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nl-gray);
  opacity: 0.6;
  margin-bottom: 3px;
}

/* Details collapsible */
.nl-details-toggle {
  background: none;
  border: none;
  border-top: 1px solid var(--nl-off-white-2);
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nl-navy);
  padding: 14px 0 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nl-details-body { display: none; padding-top: 16px; }
.nl-details-body.open { display: block; }

.nl-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.nl-detail-value {
  font-size: 14px;
  color: var(--nl-dark);
  margin-top: 2px;
}

/* ============================================================
   BACK LINK
============================================================ */
.nl-back {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nl-gray);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}

.nl-back:hover { color: var(--nl-navy); }

/* ============================================================
   ADD LEAD — SEARCH RESULTS
============================================================ */
.nl-result-card {
  background: #fff;
  border: 1px solid var(--nl-off-white-2);
  border-radius: var(--nl-radius-card);
  padding: 14px 18px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nl-result-card:hover         { border-color: var(--nl-navy); box-shadow: 0 2px 8px rgba(0,14,56,0.08); }
.nl-result-card.nl-selected   { border-color: var(--nl-orange); box-shadow: 0 2px 8px rgba(237,130,32,0.14); }

.nl-result-name { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 15px; color: var(--nl-dark); margin-bottom: 4px; }
.nl-result-meta { font-size: 13px; color: var(--nl-gray); }

/* ============================================================
   UTILITIES
============================================================ */
.nl-text-gray   { color: var(--nl-gray); }
.nl-text-navy   { color: var(--nl-navy); }
.nl-text-orange { color: var(--nl-orange); }
.nl-text-green  { color: var(--nl-green); }
.nl-text-red    { color: var(--nl-red); }
.nl-text-sm     { font-size: 13px; }
.nl-text-xs     { font-size: 11px; }
.nl-text-right  { text-align: right; }
.nl-bold        { font-weight: 700; }

.nl-mt-4  { margin-top: 4px; }
.nl-mt-8  { margin-top: 8px; }
.nl-mt-16 { margin-top: 16px; }
.nl-mt-24 { margin-top: 24px; }
.nl-mb-4  { margin-bottom: 4px; }
.nl-mb-8  { margin-bottom: 8px; }
.nl-mb-16 { margin-bottom: 16px; }
.nl-mb-24 { margin-bottom: 24px; }

.nl-flex         { display: -webkit-flex; display: flex; }
.nl-flex-wrap    { flex-wrap: wrap; }
.nl-items-center { -webkit-align-items: center; align-items: center; }
.nl-gap-8        { gap: 8px; }
.nl-gap-12       { gap: 12px; }
.nl-gap-16       { gap: 16px; }
.nl-hidden       { display: none !important; }
.nl-w-full       { width: 100%; }

/* ============================================================
   TWO-COLUMN LEAD LAYOUT
============================================================ */
.nl-two-col {
  display: -webkit-flex;
  display: flex;
  gap: 24px;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.nl-col-left {
  -webkit-flex: 7;
  flex: 7;
  min-width: 0;
}

.nl-col-right {
  -webkit-flex: 5;
  flex: 5;
  min-width: 0;
}

@media (max-width: 768px) {
  .nl-two-col {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .nl-col-left,
  .nl-col-right {
    max-width: 100%;
    width: 100%;
    -webkit-flex: none;
    flex: none;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .nl-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .nl-action-queue { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nl-input-row { flex-direction: column; }
  .nl-action-row { flex-direction: column; }
  .nl-action-row .nl-btn { width: 100%; justify-content: center; }
  .nl-search-input { width: 100%; }
  .nl-list-controls { flex-direction: column; align-items: stretch; }
  .nl-status-bar-right { text-align: left; }
}

/* ============================================================
   BULK ACTION BAR
============================================================ */
.nl-bulk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nl-navy-deep);
  color: #fff;
  padding: 12px 24px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,14,56,0.25);
}

.nl-bulk-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nl-off-white-2);
  margin-right: 8px;
}

.nl-bulk-select {
  padding: 7px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--nl-radius-btn);
  outline: none;
  cursor: pointer;
}

.nl-bulk-select option { background: #000e38; color: #fff; }

/* Checkbox column in table */
.nl-th-check,
.nl-td-check {
  width: 36px;
  padding: 12px 8px !important;
  text-align: center;
  cursor: default !important;
  user-select: none;
}

.nl-th-check { cursor: default !important; }

.nl-td-check input[type="checkbox"] {
  cursor: pointer;
  width: 15px;
  height: 15px;
  accent-color: var(--nl-navy);
}

/* ============================================================
   DIMENSION BARS (LEAD DETAIL MARKET INTELLIGENCE)
============================================================ */
.nl-mcs-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.nl-mcs-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  line-height: 1;
  color: var(--nl-navy);
}

.nl-mcs-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--nl-gray);
  padding-bottom: 12px;
}

.nl-dim-bar-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.nl-dim-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--nl-gray);
  width: 160px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.nl-dim-track {
  -webkit-flex: 1;
  flex: 1;
  height: 8px;
  background: var(--nl-off-white-2);
  border-radius: 4px;
  overflow: hidden;
}

.nl-dim-fill {
  height: 100%;
  border-radius: 4px;
}

.nl-dim-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--nl-dark);
  width: 28px;
  text-align: right;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
