/* ════════════════════════════════════════════════════════════════
   Alvarado Panel V2 — Design System
   Dark mode premium | Paleta azul marino + dorado
   ════════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  /* Colors */
  --bg-base:      #0a0e1a;
  --bg-surface:   #111827;
  --bg-elevated:  #1a2236;
  --bg-hover:     #1f2d45;
  --bg-active:    #243352;

  --navy-900: #0a0e1a;
  --navy-800: #111827;
  --navy-700: #1a2236;
  --navy-600: #1f2d45;
  --navy-500: #243352;
  --navy-400: #2d4068;

  --gold-500:  #f59e0b;
  --gold-400:  #fbbf24;
  --gold-300:  #fcd34d;
  --gold-glow: rgba(245, 158, 11, 0.25);

  --accent-blue:   #3b82f6;
  --accent-green:  #22c55e;
  --accent-red:    #ef4444;
  --accent-orange: #f97316;
  --accent-purple: #8b5cf6;
  --accent-cyan:   #06b6d4;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --border-subtle: rgba(255,255,255,0.07);
  --border-normal: rgba(255,255,255,0.12);
  --border-gold:   rgba(245,158,11,0.35);

  /* Layout */
  --sidebar-w: 240px;
  --header-h:  60px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-mid:  250ms ease;
  --t-slow: 400ms ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-gold:0 0 20px rgba(245,158,11,0.3);
}

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

html { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--t-mid);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-shield {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-club {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.logo-sub {
  font-size: 11px;
  color: var(--gold-500);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Nav ── */
.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--t-fast);
  cursor: pointer;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-active);
  color: var(--gold-400);
  box-shadow: inset 2px 0 0 var(--gold-500);
}

.nav-icon { font-size: 16px; }

/* ── Stats ── */
.sidebar-stats {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  font-size: 12px;
}

.stat-chip-label { color: var(--text-secondary); }
.stat-chip-count {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-active);
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 11px;
}

/* ════════════════════════════════════════════════════════════════
   MAIN
   ════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ── */
.top-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}

.header-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-actions { display: flex; gap: 8px; }

/* ── Views ── */
.view {
  display: none;
  flex: 1;
  padding: 24px;
  animation: fadeIn 200ms ease;
}

.view.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════
   PANEL — toolbar + table
   ════════════════════════════════════════════════════════════════ */
.panel-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  transition: border-color var(--t-fast);
}

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

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.filter-group select {
  padding: 9px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--gold-500);
}

/* ── Table ── */
.table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-surface);
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
}

.panel-table thead tr {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.panel-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
  cursor: pointer;
}

.panel-table tbody tr:hover { background: var(--bg-hover); }
.panel-table tbody tr:last-child { border-bottom: none; }

.panel-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Logo thumbnail ── */
.logo-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
}

/* ── Status badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Loading / Empty ── */
.loading-row td, .panel-empty {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-normal);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.panel-empty { flex-direction: column; gap: 8px; }
.empty-icon { font-size: 40px; margin-bottom: 8px; }

/* ════════════════════════════════════════════════════════════════
   SEARCH VIEW
   ════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 600px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Mode tabs ── */
.mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 24px;
}

.mode-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
}

.mode-tab.active {
  background: var(--bg-active);
  color: var(--gold-400);
  font-weight: 600;
}

/* ── Form ── */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.input-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.search-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
}

.search-result.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.search-result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ════════════════════════════════════════════════════════════════
   PROPUESTA VIEW
   ════════════════════════════════════════════════════════════════ */
.propuesta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.propuesta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.propuesta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Data card */
.data-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.data-card.full-width { grid-column: 1 / -1; }

.data-card-header {
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.data-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.data-field:last-child { margin-bottom: 0; }

.data-field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.data-field-value {
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-word;
}

.data-field-value a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Images */
.asset-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
  border: 1px solid var(--border-subtle);
}

.asset-placeholder {
  width: 100%;
  min-height: 120px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px dashed var(--border-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Email preview */
.email-preview-wrap {
  border: 1px solid var(--border-normal);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}

.email-preview-iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* ════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #0a0e1a;
  border-color: var(--gold-400);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-normal);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}
.btn-success:hover {
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.btn-warning {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.35);
}
.btn-warning:hover {
  background: rgba(249, 115, 22, 0.25);
}

.btn-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}
.btn-blue:hover {
  background: rgba(59, 130, 246, 0.25);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-lg { padding: 12px 24px; font-size: 14px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-back { font-size: 13px; }

/* ════════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  animation: overlayIn 200ms ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-normal);
  border-radius: var(--r-xl);
  width: 600px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-sm { width: 400px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--r-sm);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ════════════════════════════════════════════════════════════════
   TOASTS
   ════════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
}

.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.info    { border-color: rgba(59,130,246,0.4); }
.toast.warning { border-color: rgba(249,115,22,0.4); }

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

.toast-out {
  animation: toastOut 250ms ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* ════════════════════════════════════════════════════════════════
   SEARCH PROGRESS MODAL STYLING
   ════════════════════════════════════════════════════════════════ */
.search-progress-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.progress-spinner-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: var(--text-primary);
}

.progress-info p {
  margin: 0;
  font-size: 13px;
  color: var(--gold-500);
  font-weight: 500;
}

.progress-log-card, .progress-empresas-card {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}

.progress-log-card h5, .progress-empresas-card h5 {
  margin: 0 0 12px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.progress-logs-container {
  max-height: 120px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #4ade80;
  background: #020617;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-normal);
}

.progress-logs-container .log-entry {
  margin-bottom: 4px;
  word-break: break-all;
}

.progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.progress-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-normal);
  color: var(--text-muted);
}

.progress-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.progress-table tr:last-child td {
  border-bottom: none;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .col-6 {
  flex: 1;
}

.active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--r-md);
  padding: 12px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-primary);
}

.active-filter-banner .banner-text {
  font-weight: 500;
}

.btn-gold {
  background: var(--gold-500);
  color: #020617;
  font-weight: 600;
  border: none;
}

.btn-gold:hover {
  background: var(--gold-600);
}

/* ════════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }

.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 12px; }
.monospace  { font-family: 'Courier New', monospace; font-size: 12px; }

/* Gold divider */
.gold-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
  margin: 20px 0;
  opacity: 0.4;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle { display: flex; }

  .propuesta-grid {
    grid-template-columns: 1fr;
  }

  .data-card.full-width { grid-column: 1; }
}

/* ── WhatsApp Connection & Tracking styles ── */
.wa-status-box {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.wa-status-box.info {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}
.wa-status-box.success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.25);
}
.wa-status-box.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.sent-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-normal);
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0.35;
  transition: all 0.25s ease;
}
.sent-badge.active.email {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  opacity: 1;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
}
.sent-badge.active.whatsapp {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  opacity: 1;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
}

