/* Nav active state */
.nav-item.active {
  background-color: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}
.nav-item.active svg {
  color: #a78bfa;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Inputs */
input, select, textarea {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}
input::placeholder, textarea::placeholder { color: #6b7280; }
label { display: block; font-size: 0.75rem; font-weight: 500; color: #9ca3af; margin-bottom: 0.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; border: none; white-space: nowrap;
}
.btn-primary { background: #7c3aed; color: white; }
.btn-primary:hover { background: #6d28d9; }
.btn-secondary { background: #1f2937; color: #d1d5db; border: 1px solid #374151; }
.btn-secondary:hover { background: #374151; color: white; }
.btn-danger { background: #7f1d1d; color: #fca5a5; }
.btn-danger:hover { background: #991b1b; }
.btn-ghost { background: transparent; color: #9ca3af; }
.btn-ghost:hover { background: #1f2937; color: white; }
.btn-sm { padding: 0.3rem 0.625rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.card { background: #111827; border: 1px solid #1f2937; border-radius: 0.75rem; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 0.625rem 0.875rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
  color: #6b7280; text-transform: uppercase;
  background: #111827; border-bottom: 1px solid #1f2937;
}
.data-table td { padding: 0.75rem 0.875rem; border-bottom: 1px solid #111827; font-size: 0.875rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.5rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
}

/* Score badges */
.score-hot { background: rgba(239,68,68,0.15); color: #f87171; }
.score-warm { background: rgba(249,115,22,0.15); color: #fb923c; }
.score-medium { background: rgba(234,179,8,0.15); color: #facc15; }
.score-cool { background: rgba(59,130,246,0.15); color: #60a5fa; }
.score-cold { background: rgba(107,114,128,0.15); color: #9ca3af; }

/* Status badges */
.status-new { background: rgba(107,114,128,0.15); color: #9ca3af; }
.status-contacted { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-interested { background: rgba(168,85,247,0.15); color: #c084fc; }
.status-proposal { background: rgba(234,179,8,0.15); color: #facc15; }
.status-won { background: rgba(16,185,129,0.15); color: #34d399; }
.status-lost { background: rgba(239,68,68,0.15); color: #f87171; }

/* Invoice status */
.inv-draft { background: rgba(107,114,128,0.15); color: #9ca3af; }
.inv-sent { background: rgba(59,130,246,0.15); color: #60a5fa; }
.inv-paid { background: rgba(16,185,129,0.15); color: #34d399; }

/* Form layout helpers */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group.full { grid-column: 1 / -1; }

/* Toast */
.toast {
  pointer-events: all; padding: 0.75rem 1rem;
  border-radius: 0.5rem; font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  animation: slideIn 0.2s ease;
  max-width: 320px;
}
.toast-success { background: #064e3b; color: #a7f3d0; border: 1px solid #065f46; }
.toast-error { background: #7f1d1d; color: #fca5a5; border: 1px solid #991b1b; }
.toast-info { background: #1e3a5f; color: #93c5fd; border: 1px solid #1d4ed8; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}

/* Audit result section */
.audit-score-ring {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-weight: 700;
}

/* Stat cards */
.stat-card {
  background: #111827; border: 1px solid #1f2937;
  border-radius: 0.75rem; padding: 1.25rem;
}
