/* DriveLog design system — vezi CLAUDE.md § "Design System — stil vizual oficial" */

:root {
  --surface-1: #ffffff;
  --surface-2: #f5f6f7;
  --border: #e3e5e8;
  --text-primary: #17181a;
  --text-secondary: #6b7280;

  --fill-success: #1f8043; /* buton principal — 4.97:1 contrast cu alb (WCAG AA) */
  --on-success: #ffffff;
  --bg-success: #e6f4ea;
  --text-success: #1c7640; /* 4.98:1 pe --bg-success (WCAG AA) */

  --bg-warning: #fff4e5;
  --text-warning: #92400e;

  --bg-danger: #fdecea;
  --text-danger: #b3261e;
}

body {
  background: var(--surface-1);
  color: var(--text-primary);
}

/* ---- acțiune principală (una singură pe ecran) ---- */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: var(--fill-success);
  color: var(--on-success);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.btn-accent:hover {
  background: #1a6c39;
  color: var(--on-success);
}

/* ---- acțiune icon-only, neutră ---- */
.btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
}
.btn-icon:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.btn-icon i {
  font-size: 15px;
}

/* ---- card de listă (vehicul / cheltuială / prompt / user) ---- */
.card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.card-item__icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-success);
  color: var(--text-success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-item__icon--danger {
  background: var(--bg-danger);
  color: var(--text-danger);
}

/* ---- card de listă clicabil (întreg cardul e link, nu doar butonul) ---- */
a.card-item {
  text-decoration: none;
  color: inherit;
}
a.card-item:hover {
  background: var(--surface-1);
  border-color: var(--text-success);
}
.card-item__badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.card-item__info {
  flex: 1;
  min-width: 0;
}
.card-item__title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}
.card-item__subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}
.card-item__note {
  margin-bottom: 0;
  font-size: 14px;
}
.card-item__actions {
  display: flex;
  gap: 4px;
  flex: none;
}

/* ---- card simplu de conținut (formulare, secțiuni) ---- */
.panel {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

/* ---- badge de status (prompt / rol) ---- */
.badge-soft {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-soft--warning { background: var(--bg-warning); color: var(--text-warning); }
.badge-soft--success { background: var(--bg-success); color: var(--text-success); }
.badge-soft--danger { background: var(--bg-danger); color: var(--text-danger); }

/* formulare compacte, consistente cu restul temei */
.form-control, .form-select {
  border-color: var(--border);
  font-size: 13px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
