/**
 * Sanel Trans Planner — Tema unificată
 * Folosită la: login, cont, și orice pagină care vrea același look.
 * Referință vizuală: tema-referinta.html
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Font */
  --tema-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Culori principale */
  --tema-heading: #0f172a;
  --tema-body: #111827;
  --tema-muted: #64748b;
  --tema-border: #e2e8f0;
  --tema-border-light: rgba(226, 232, 240, 0.8);

  /* Accent (mov / violet) */
  --tema-accent: #6d28d9;
  --tema-accent-light: #7c3aed;
  --tema-accent-hover: #5b21b6;
  --tema-accent-soft: rgba(124, 58, 237, 0.12);
  --tema-accent-focus: rgba(124, 58, 237, 0.15);

  /* Fundal */
  --tema-bg: linear-gradient(160deg, #f0f4ff 0%, #e8eeff 50%, #f5f7fa 100%);
  --tema-bg-login: linear-gradient(165deg, #eef2ff 0%, #e0e7ff 35%, #f5f3ff 70%, #faf5ff 100%);
  --tema-card-bg: #ffffff;

  /* Card */
  --tema-card-radius: 20px;
  --tema-card-radius-lg: 24px;
  --tema-card-shadow: 0 4px 24px rgba(30, 41, 59, 0.08);
  --tema-card-shadow-hover: 0 8px 32px rgba(30, 41, 59, 0.1);
  --tema-card-shadow-login: 0 25px 50px -12px rgba(30, 41, 59, 0.12);

  /* Butoane / raze */
  --tema-radius-sm: 10px;
  --tema-radius-md: 12px;
  --tema-radius-lg: 14px;
  --tema-radius-xl: 20px;
  --tema-btn-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
  --tema-btn-shadow-hover: 0 4px 16px rgba(124, 58, 237, 0.4);

  /* Semantic */
  --tema-success: #10b981;
  --tema-error: #dc2626;
  --tema-error-bg: #fef2f2;
  --tema-error-border: #fecaca;
  --tema-warning: #f59e0b;
}

/* ---- Tipografie ---- */
.tema-body {
  font-family: var(--tema-font);
  color: var(--tema-body);
}
.tema-h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tema-heading);
  letter-spacing: -0.03em;
}
.tema-h1-lg {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.tema-lead {
  font-size: 0.9375rem;
  color: var(--tema-muted);
}
.tema-small {
  font-size: 0.875rem;
  color: var(--tema-muted);
}
.tema-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tema-heading);
}

/* ---- Butoane ---- */
.btn-tema {
  font-family: var(--tema-font);
  font-weight: 600;
  border-radius: var(--tema-radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-tema-primary {
  background: linear-gradient(145deg, var(--tema-accent-light), var(--tema-accent));
  border: none;
  color: #fff;
  box-shadow: var(--tema-btn-shadow);
}
.btn-tema-primary:hover {
  background: linear-gradient(145deg, var(--tema-accent), var(--tema-accent-hover));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--tema-btn-shadow-hover);
}
.btn-tema-secondary {
  background: #f1f5f9;
  border: 1px solid var(--tema-border);
  color: var(--tema-heading);
}
.btn-tema-secondary:hover {
  background: #e2e8f0;
  border-color: var(--tema-border);
  color: var(--tema-heading);
}
.btn-tema-outline {
  background: transparent;
  border: 2px solid var(--tema-accent);
  color: var(--tema-accent);
}
.btn-tema-outline:hover {
  background: var(--tema-accent-soft);
  border-color: var(--tema-accent);
  color: var(--tema-accent-hover);
}
.btn-tema-danger {
  background: var(--tema-error-bg);
  border: 2px solid var(--tema-error-border);
  color: var(--tema-error);
}
.btn-tema-danger:hover {
  background: var(--tema-error);
  color: #fff;
  border-color: var(--tema-error);
}
.btn-tema-lg {
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--tema-radius-lg);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}
.btn-tema-lg:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

/* ---- Formulare ---- */
.tema-input {
  font-family: var(--tema-font);
  border-radius: var(--tema-radius-md);
  border: 1px solid var(--tema-border);
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  transition: border-color .2s, box-shadow .2s;
}
.tema-input:focus {
  border-color: var(--tema-accent);
  box-shadow: 0 0 0 3px var(--tema-accent-soft);
  outline: none;
}
.tema-input::placeholder {
  color: #94a3b8;
}
.tema-input-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: var(--tema-radius-lg);
}

/* ---- Carduri ---- */
.tema-card {
  background: var(--tema-card-bg);
  border-radius: var(--tema-card-radius);
  box-shadow: var(--tema-card-shadow);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--tema-border-light);
  transition: box-shadow .2s;
}
.tema-card:hover {
  box-shadow: var(--tema-card-shadow-hover);
}
.tema-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tema-heading);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tema-card-title i {
  color: var(--tema-accent);
}

/* ---- Badge ---- */
.tema-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--tema-accent-soft);
  color: var(--tema-accent);
  font-family: var(--tema-font);
}

/* ---- Toast / mesaje ---- */
.tema-toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--tema-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: var(--tema-font);
}
.tema-toast-success {
  background: var(--tema-success);
  color: #fff;
}
.tema-toast-error {
  background: var(--tema-error);
  color: #fff;
}
