:root {
  /* Vanessa Goltzman Luxury Light Palette */
  --bg-page: #F4F3EF;
  --bg-page-alt: #EAE9E5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF9F6;
  --bg-col: rgba(234, 233, 229, 0.55);
  
  --graphite: #282526;
  --graphite-dark: #1A1919;
  --text-main: #282526;
  --text-muted: rgba(40, 37, 38, 0.7);
  --text-dim: rgba(40, 37, 38, 0.45);
  
  --gold: #C5A059;
  --gold-light: #DFC282;
  --gold-dark: #A37E36;
  --gold-glow: rgba(197, 160, 89, 0.25);
  
  --bone: #D8D4C9;
  --mist: #EAE9E5;
  
  --border-color: rgba(197, 160, 89, 0.35);
  --border-subtle: rgba(216, 212, 201, 0.6);
  --border-card: #E5E2D9;
  
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* 8 Kanban Status Colors */
  --c-lead: #2563EB;
  --c-contato-feito: #D97706;
  --c-contato-respondido: #9333EA;
  --c-ligacao: #EA580C;
  --c-remarketing: #4F46E5;
  --c-reuniao: #0891B2;
  --c-nao-convertido: #DC2626;
  --c-convertido: #059669;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(85% 70% at 50% -8%, rgba(197, 160, 89, 0.18) 0%, transparent 58%),
    radial-gradient(95% 90% at 6% 88%, rgba(216, 212, 201, 0.4) 0%, transparent 57%),
    radial-gradient(65% 70% at 96% 58%, rgba(197, 160, 89, 0.15) 0%, transparent 62%),
    linear-gradient(180deg, #F9F8F5 0%, #EFECE6 58%, #E5E1D8 100%);
  background-attachment: fixed;
  color: var(--text-main);
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

.dashboard-wrapper {
  display: flex !important;
  flex-direction: column !important;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

/* Visible Luxury High-Contrast Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #EAE8E1;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 8px;
  border: 2px solid #EAE8E1;
}

::-webkit-scrollbar-thumb:hover {
  background: #282526;
  border: 2px solid #EAE8E1;
}

/* ==========================================================================
   1. LOGIN SCREEN (LIGHT THEME)
   ========================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 30px 60px -15px rgba(40, 37, 38, 0.15), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(20px);
  text-align: center;
}

.login-logo-badge {
  background: #1A1919;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 14px;
  padding: 0.85rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(26, 25, 25, 0.2);
}

.login-brand-img {
  height: 48px;
  width: auto;
  display: block;
}

.login-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
  margin-bottom: 0.35rem;
}

.login-brand p {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 2rem;
}

.input-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.input-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: #FFFFFF;
}

.login-err-msg {
  color: #DC2626;
  font-size: 12px;
  margin-bottom: 1rem;
  display: none;
}

.btn-login {
  width: 100%;
  padding: 0.85rem;
  background: var(--graphite);
  color: var(--mist);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(40, 37, 38, 0.35);
  transition: all 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  background: #111010;
  box-shadow: 0 12px 24px -6px rgba(40, 37, 38, 0.5);
}

/* ==========================================================================
   2. NAVBAR & HEADER (LIGHT THEME)
   ========================================================================== */
.admin-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 2.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -5px rgba(40, 37, 38, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo-badge {
  background: #1A1919;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 12px;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(26, 25, 25, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-logo-badge:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.nav-brand-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-titles h1 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--graphite);
  line-height: 1.2;
}

.nav-titles span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  display: block;
}

.nav-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(234, 233, 229, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 12.5px;
}

.stat-pill.highlight {
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.08);
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--graphite);
}

.stat-pill.highlight .stat-value {
  color: #059669;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-card);
  background: #FFFFFF;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-nav.btn-gold {
  background: var(--graphite);
  color: var(--mist);
  border: 1px solid var(--graphite);
  box-shadow: 0 4px 14px -3px rgba(40, 37, 38, 0.3);
}

.btn-nav.btn-gold:hover {
  transform: translateY(-1px);
  background: #111010;
  box-shadow: 0 6px 18px -3px rgba(40, 37, 38, 0.45);
}

.btn-nav.outline:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #DC2626;
  color: #DC2626;
}

/* ==========================================================================
   3. CONTROLS BAR (SEARCH & FILTERS - LIGHT THEME)
   ========================================================================== */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 2.5rem;
  gap: 1.5rem;
  background: rgba(244, 243, 239, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.65rem;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-select {
  padding: 0.6rem 1.1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.filter-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.view-toggles {
  display: flex;
  align-items: center;
  background: rgba(234, 233, 229, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 3px;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle.active {
  background: #FFFFFF;
  color: var(--graphite);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   4. KANBAN BOARD (8 COLUMNS - LIGHT THEME)
   ========================================================================== */
.kanban-board-container {
  flex: 1 1 0;
  min-height: 0;
  padding: 0.75rem 2rem 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

/* Horizontal scrollbar on bottom of Kanban board */
.kanban-board-container::-webkit-scrollbar {
  height: 14px;
}

.kanban-board-container::-webkit-scrollbar-track {
  background: #E5E1D8;
  border-radius: 8px;
  border: 1px solid rgba(197, 160, 89, 0.4);
}

.kanban-board-container::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 8px;
  border: 2px solid #E5E1D8;
  box-shadow: 0 2px 6px rgba(40, 37, 38, 0.25);
}

.kanban-board-container::-webkit-scrollbar-thumb:hover {
  background: #282526;
  border: 2px solid #E5E1D8;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(8, 305px);
  gap: 1.25rem;
  align-items: stretch;
  min-width: 2540px;
  height: 100%;
}

.kanban-col {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(40, 37, 38, 0.04);
}

.col-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.95);
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.col-header h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--graphite);
}

.col-counter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(40, 37, 38, 0.07);
  border: 1px solid rgba(40, 37, 38, 0.1);
  border-radius: 9999px;
  padding: 2px 8px;
  color: var(--graphite);
}

/* Col status colors */
.col-lead .status-dot { background: var(--c-lead); box-shadow: 0 0 8px rgba(37, 99, 235, 0.4); }
.col-contato-feito .status-dot { background: var(--c-contato-feito); box-shadow: 0 0 8px rgba(217, 119, 6, 0.4); }
.col-contato-respondido .status-dot { background: var(--c-contato-respondido); box-shadow: 0 0 8px rgba(147, 51, 234, 0.4); }
.col-ligacao .status-dot { background: var(--c-ligacao); box-shadow: 0 0 8px rgba(234, 88, 12, 0.4); }
.col-remarketing .status-dot { background: var(--c-remarketing); box-shadow: 0 0 8px rgba(79, 70, 229, 0.4); }
.col-reuniao .status-dot { background: var(--c-reuniao); box-shadow: 0 0 8px rgba(8, 145, 178, 0.4); }
.col-nao-convertido .status-dot { background: var(--c-nao-convertido); box-shadow: 0 0 8px rgba(220, 38, 38, 0.4); }
.col-convertido .status-dot { background: var(--c-convertido); box-shadow: 0 0 8px rgba(5, 150, 105, 0.4); }

.cards-list {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.cards-list::-webkit-scrollbar {
  width: 7px;
}

.cards-list::-webkit-scrollbar-track {
  background: rgba(234, 233, 229, 0.5);
  border-radius: 6px;
}

.cards-list::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.65);
  border-radius: 6px;
}

.cards-list::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.cards-list.drag-over {
  background: rgba(197, 160, 89, 0.12);
  border: 1px dashed var(--gold);
  border-radius: 12px;
}

/* ==========================================================================
   5. LEAD CARD (LIGHT THEME LUXURY)
   ========================================================================== */
.kanban-card,
.lead-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.1rem;
  cursor: grab;
  transition: all 0.22s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 3px 12px rgba(40, 37, 38, 0.05), 0 1px 0 #FFFFFF inset;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kanban-card:hover,
.lead-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(40, 37, 38, 0.12), 0 0 0 1px var(--gold-glow);
}

.kanban-card.dragging,
.lead-card.dragging {
  opacity: 0.4;
  transform: scale(0.98);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--graphite);
  line-height: 1.3;
}

.card-date,
.card-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.card-prof,
.card-role {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.card-rev-badge,
.card-revenue-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--gold-dark);
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 0.15rem;
}

.card-footer-actions,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(234, 233, 229, 0.9);
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  gap: 0.5rem;
}

.btn-card-wa,
.btn-card-wpp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #059669;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-card-wa:hover,
.btn-card-wpp:hover {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-card-details {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-card-details:hover {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ==========================================================================
   6. TABLE VIEW (LIGHT THEME)
   ========================================================================== */
.table-container {
  padding: 1.5rem 2.5rem 3rem;
  width: 100%;
}

.table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(40, 37, 38, 0.06);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leads-table th {
  padding: 1rem 1.25rem;
  background: rgba(244, 243, 239, 0.85);
  border-bottom: 1px solid var(--border-card);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 600;
}

.leads-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-main);
}

.leads-table tr:hover td {
  background: rgba(197, 160, 89, 0.05);
}

/* ==========================================================================
   7. MODAL (LEAD DETAILS - LIGHT THEME)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 37, 38, 0.45);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal-box {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 40px 80px -20px rgba(40, 37, 38, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(244, 243, 239, 0.65);
}

.modal-header-left h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--graphite);
}

.modal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 600;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-close-modal:hover {
  color: var(--graphite);
}

.modal-body {
  padding: 1.75rem 2.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 243, 239, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.4rem;
  margin-bottom: 1.5rem;
}

.modal-status-bar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
}

.modal-select-status {
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: #FAF9F6;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
}

.info-card.full {
  grid-column: span 2;
}

.info-card.highlight-card {
  border-color: rgba(197, 160, 89, 0.45);
  background: rgba(197, 160, 89, 0.09);
}

.info-label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  font-weight: 600;
}

.info-value {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

.info-value.gold-text {
  color: var(--gold-dark);
  font-weight: 700;
}

.info-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-modal-wpp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25D366;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
}

.info-text-block {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--graphite);
  margin-top: 0.25rem;
}

.modal-notes-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-notes-section label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--graphite);
}

.modal-notes-section textarea {
  width: 100%;
  min-height: 95px;
  background: #FAF9F6;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 0.85rem;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--text-main);
  resize: vertical;
  outline: none;
}

.modal-notes-section textarea:focus {
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 2.25rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(244, 243, 239, 0.65);
}

.btn-modal-delete {
  background: transparent;
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #DC2626;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-modal-delete:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.btn-modal-save {
  background: var(--graphite);
  border: none;
  color: var(--mist);
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px -3px rgba(40, 37, 38, 0.35);
}

.btn-modal-save:hover {
  background: #111010;
  transform: translateY(-1px);
}

/* ==========================================================================
   SAFETY DELETE CONFIRMATION MODAL
   ========================================================================== */
.delete-modal-box {
  max-width: 480px;
  width: 90%;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(220, 38, 38, 0.25);
  box-shadow: 0 35px 70px -15px rgba(40, 37, 38, 0.35);
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.delete-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #FAF9F6;
}

.delete-modal-header h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--graphite);
  margin: 0;
}

.delete-modal-body {
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.delete-lead-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.delete-lead-desc strong {
  color: var(--graphite);
  font-weight: 700;
}

.delete-warning-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #DC2626;
  font-size: 13px;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.delete-warning-badge svg {
  flex-shrink: 0;
}

.delete-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.delete-input-group label {
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 500;
}

.delete-input-group label strong {
  color: var(--graphite-dark);
  font-weight: 700;
}

.delete-input-group input {
  width: 100%;
  padding: 0.8rem 1.05rem;
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: var(--font-sans);
  color: var(--text-main);
  outline: none;
  background: #FAF9F6;
  transition: all 0.2s ease;
}

.delete-input-group input:focus {
  border-color: #DC2626;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.delete-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 1.2rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: #FAF9F6;
}

.btn-delete-cancel {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-delete-cancel:hover {
  background: #F4F3EF;
  border-color: var(--bone);
}

.btn-delete-confirm-final {
  background: #DC2626;
  border: none;
  color: #FFFFFF;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.28);
}

.btn-delete-confirm-final:hover:not(:disabled) {
  background: #B91C1C;
  transform: translateY(-1px);
}

.btn-delete-confirm-final:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE UX OPTIMIZATIONS
   ========================================================================== */

/* Tablet & Intermediate (<= 960px) */
@media (max-width: 960px) {
  .admin-navbar {
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
  }
  
  .controls-bar {
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
  }

  .kanban-board-container {
    padding: 0.75rem 1rem 1rem;
  }
  
  .table-container {
    padding: 0.75rem 1rem 1rem;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  html, body {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }

  .dashboard-wrapper {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }

  /* 1. Mobile Top Navbar */
  .admin-navbar {
    padding: 0.55rem 0.85rem;
    gap: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .nav-left {
    order: 1;
    display: flex;
    align-items: center;
  }

  .nav-logo-badge {
    padding: 0.35rem 0.65rem;
    border-radius: 9px;
  }

  .nav-brand-img {
    height: 28px;
    width: auto;
  }

  .nav-actions {
    order: 2;
    gap: 0.4rem;
    display: flex;
    align-items: center;
  }

  .btn-nav {
    padding: 0.4rem 0.7rem;
    font-size: 11.5px;
    border-radius: 7px;
    gap: 0.35rem;
  }

  .btn-nav svg {
    width: 13px;
    height: 13px;
  }

  .nav-stats {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    padding-top: 0.2rem;
  }

  .stat-pill {
    flex: 1;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    font-size: 11px;
    gap: 0.35rem;
    border-radius: 9999px;
  }

  .stat-pill .stat-label {
    font-size: 10.5px;
  }

  .stat-pill .stat-value {
    font-size: 12px;
  }

  /* 2. Mobile Controls Bar */
  .controls-bar {
    padding: 0.5rem 0.85rem;
    gap: 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
  }

  .search-box {
    max-width: 100%;
    width: 100%;
  }

  .search-box svg {
    left: 10px;
    width: 15px;
    height: 15px;
  }

  .search-box input {
    padding: 0.5rem 0.75rem 0.5rem 2.15rem;
    font-size: 12px;
    border-radius: 8px;
  }

  .filters-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
  }

  .filter-select {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    font-size: 11.5px;
    border-radius: 8px;
  }

  .view-toggles {
    flex-shrink: 0;
    padding: 2px;
    border-radius: 8px;
  }

  .btn-toggle {
    padding: 0.38rem 0.6rem;
    font-size: 11px;
    border-radius: 6px;
    gap: 0.25rem;
  }

  .btn-toggle svg {
    width: 13px;
    height: 13px;
  }

  /* 3. Mobile Kanban Board */
  .kanban-board-container {
    padding: 0.4rem 0.6rem 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 0;
    min-height: 0;
  }

  .kanban-board {
    grid-template-columns: repeat(8, 280px);
    gap: 0.75rem;
    min-width: 2300px;
  }

  .kanban-col {
    scroll-snap-align: start;
    border-radius: 14px;
  }

  .col-header {
    padding: 0.65rem 0.8rem;
  }

  .col-header h3 {
    font-size: 10.5px;
  }

  .cards-list {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .kanban-card {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .card-name {
    font-size: 13.5px;
  }

  .card-prof {
    font-size: 11.5px;
  }

  .card-footer-actions {
    gap: 0.4rem;
  }

  .btn-card-wa,
  .btn-card-details {
    padding: 0.38rem 0.55rem;
    font-size: 10.5px;
  }

  /* 4. Table on Mobile */
  .table-container {
    padding: 0.4rem 0.6rem 0.75rem;
    flex: 1 1 0;
    min-height: 0;
  }

  /* 5. Details Modal on Mobile */
  .modal-backdrop {
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
  }

  .modal-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92dvh !important;
    max-height: 92vh !important;
    border-radius: 16px;
    margin: 0;
  }

  .modal-header {
    padding: 0.9rem 1.15rem;
  }

  .modal-header-left h2 {
    font-size: 1.15rem;
  }

  .modal-body {
    padding: 0.9rem 1.15rem;
  }

  .modal-status-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
  }

  .modal-select-status {
    width: 100%;
  }

  .modal-info-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }

  .info-card.full {
    grid-column: span 1 !important;
  }

  .info-card {
    padding: 0.7rem 0.85rem;
  }

  .modal-footer {
    padding: 0.9rem 1.15rem;
    gap: 0.5rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .btn-modal-save {
    padding: 0.65rem 1.1rem;
    font-size: 12.5px;
  }

  .btn-modal-delete {
    padding: 0.6rem 0.85rem;
    font-size: 12px;
  }

  /* 6. Safety Delete Modal on Mobile */
  .delete-modal-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 90dvh !important;
    max-height: 90vh !important;
    border-radius: 16px;
  }

  .delete-modal-header {
    padding: 0.9rem 1.15rem;
  }

  .delete-modal-header h2 {
    font-size: 1.15rem;
  }

  .delete-modal-body {
    padding: 1.1rem 1.15rem;
    gap: 0.8rem;
  }

  .delete-lead-desc {
    font-size: 13px;
  }

  .delete-warning-badge {
    padding: 0.6rem 0.8rem;
    font-size: 12px;
  }

  .delete-input-group input {
    padding: 0.65rem 0.85rem;
    font-size: 13.5px;
  }

  .delete-modal-footer {
    padding: 0.9rem 1.15rem;
    gap: 0.5rem;
  }

  .btn-delete-cancel,
  .btn-delete-confirm-final {
    padding: 0.55rem 0.95rem;
    font-size: 12px;
  }
}

/* Extra small screens (<= 380px) */
@media (max-width: 380px) {
  .btn-nav span {
    display: none;
  }

  .btn-nav {
    padding: 0.4rem 0.55rem;
  }

  .stat-pill {
    padding: 0.25rem 0.4rem;
    font-size: 10px;
  }

  .stat-pill .stat-label {
    font-size: 9.5px;
  }
}


