/* assets/css/sac-theme.css */

:root {
  --sac-bg: #f3f4f6;
  --sac-surface: #ffffff;
  --sac-border: #e5e7eb;
  --sac-radius-lg: 1rem;
  --sac-radius-xl: 1.25rem;
  --sac-primary: #2563eb;
  --sac-primary-soft: #dbeafe;
  --sac-primary-dark: #1d4ed8;
  --sac-text: #111827;
  --sac-muted: #6b7280;
}

/* Body geral */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e0f2fe 0, #f3f4f6 40%, #f9fafb 100%);
  color: var(--sac-text);
  min-height: 100vh;
}

/* Navbar */
.sac-navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.sac-navbar-brand {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
}

.sac-navbar-badge {
  font-size: .7rem;
  border-radius: 999px;
  padding: .2rem .6rem;
}

/* Layout da área autenticada */
.sac-main-shell {
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 992px) {
  .sac-main-shell {
    padding: 2rem 2rem 2.5rem;
  }
}

/* Cards “moderninhos” */
.card {
  border-radius: var(--sac-radius-lg);
  border-color: rgba(229, 231, 235, 0.8);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.card-header {
  background: linear-gradient(90deg, #ffffff 0%, #f9fafb 60%, #eff6ff 100%);
  border-bottom-color: rgba(229, 231, 235, 0.8);
  border-top-left-radius: var(--sac-radius-lg) !important;
  border-top-right-radius: var(--sac-radius-lg) !important;
}

/* Tabelas */
.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding-top: .55rem;
  padding-bottom: .55rem;
  vertical-align: middle;
}

.table thead tr {
  background: #f9fafb;
}

.table thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sac-muted);
  border-bottom-width: 1px;
}

/* Botões */
.btn-primary {
  background: linear-gradient(135deg, var(--sac-primary) 0%, #1d4ed8 50%, #1e40af 100%);
  border-color: #1d4ed8;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sac-primary-dark) 0%, #1e40af 50%, #1e3a8a 100%);
  border-color: #1e3a8a;
}

/* Pill navigation */
.nav-pills .nav-link {
  border-radius: 999px;
  padding-inline: 1rem;
  font-size: .85rem;
}

.nav-pills .nav-link.active {
  background: var(--sac-primary);
}

/* Badges */
.badge {
  border-radius: 999px;
}

/* Alerts um pouco mais suaves */
.alert {
  border-radius: .85rem;
}

/* LOGIN PAGE */
.sac-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.sac-login-card {
  max-width: 420px;
  width: 100%;
  border-radius: var(--sac-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.sac-login-card-header {
  background: radial-gradient(circle at top left, #2563eb 0, #1d4ed8 40%, #111827 100%);
  color: #fff;
}

.sac-login-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sac-login-subtitle {
  font-size: .8rem;
  opacity: .85;
}

/* Pequeno brilho ao focar inputs */
.form-control:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 .15rem rgba(59, 130, 246, 0.25);
}

/* Rodapé mais discreto */
.sac-footer {
  font-size: .75rem;
  color: var(--sac-muted);
}

/* ===============================
   Badges de status SAC (cliente)
   =============================== */

.sac-badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Aberta: azul/primário */
.sac-badge-status-aberta {
  background-color: #e3f0ff;
  color: #0b5ed7;
}

/* Em análise: amarelo/atenção */
.sac-badge-status-analise {
  background-color: #fff3cd;
  color: #856404;
}

/* Aprovada débito: verde/sucesso */
.sac-badge-status-aprovada {
  background-color: #d1e7dd;
  color: #0f5132;
}

/* Finalizada: verde mais neutro */
.sac-badge-status-finalizada {
  background-color: #e2f4e8;
  color: #146c43;
}

/* Cancelada: vermelho/sutil */
.sac-badge-status-cancelada {
  background-color: #f8d7da;
  color: #842029;
}

/* Default/fallback */
.sac-badge-status-default {
  background-color: #e9ecef;
  color: #495057;
}
