.lead-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lead-dashboard__subtitle {
  margin-top: 0.25rem;
  color: var(--muted-text-color);
  max-width: 44rem;
}

.lead-dashboard__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-dashboard__controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lead-dashboard__search {
  flex: 1;
  min-width: 220px;
}

.lead-dashboard__search input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--panel-border-color);
  background: var(--container-bg);
  color: var(--text-color);
  font-size: 0.95rem;
}

.lead-dashboard__search input:focus {
  outline: 2px solid var(--primary-color, #2563eb);
  outline-offset: 1px;
}

.lead-dashboard__summary {
  color: var(--muted-text-color);
  font-size: 0.9rem;
}

.lead-dashboard__message {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  font-size: 0.95rem;
}

.lead-dashboard__message[data-state='success'] {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
}

.lead-dashboard__message[data-state='error'] {
  border-color: rgba(229, 62, 62, 0.35);
  background: rgba(229, 62, 62, 0.08);
  color: #c53030;
}

[data-theme="dark"] .lead-dashboard__message {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .lead-dashboard__message[data-state='success'] {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .lead-dashboard__message[data-state='error'] {
  background: rgba(229, 62, 62, 0.18);
  color: #feb2b2;
  border-color: rgba(229, 62, 62, 0.4);
}

.lead-dashboard__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-dashboard__empty {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px dashed var(--panel-border-color);
  text-align: center;
  color: var(--muted-text-color);
}

.lead-card {
  background: var(--container-bg);
  border: 1px solid var(--panel-border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lead-card__identity {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lead-card__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.lead-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted-text-color);
  font-size: 0.85rem;
}

.lead-card__badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lead-card__body {
  display: grid;
  gap: 0.85rem;
}

.lead-card__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem 1.25rem;
}

.lead-card__detail-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text-color);
}

.lead-card__detail-value {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-color);
  word-break: break-word;
}

.lead-card__footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-text-color);
}

.lead-card__notes {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-color);
}

.lead-card__notes strong {
  font-weight: 600;
}

.lead-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

[data-theme="dark"] .lead-card {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
}

[data-theme="dark"] .lead-card__badge {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}
