/* ═══════════════════════════════════════════════════════════════════════
   ANTHELIS BRIDGE — traduz os componentes Bootstrap das páginas legadas
   para a linguagem visual nova (Models/anthelis_core_redesign.html):
   cards arredondados, teal/indigo, sombras suaves, tipografia Inter.
   Carregado DEPOIS do Bootstrap em _base/global.html.
   ═══════════════════════════════════════════════════════════════════════ */

/* ---- Cards ----------------------------------------------------------- */
.card {
  border: 1px solid rgba(226, 232, 240, 0.7) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  background: #ffffff;
  overflow: hidden;
}
.card-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-weight: 700;
  color: #1e293b;
  padding: 1.1rem 1.4rem;
}
.card-footer {
  background: #f8fafc !important;
  border-top: 1px solid #f1f5f9 !important;
}
.card-body { padding: 1.4rem; }

/* ---- Botões ---------------------------------------------------------- */
.btn { border-radius: 0.85rem !important; font-weight: 700; font-size: 0.85rem; padding: 0.55rem 1.2rem; transition: all .18s ease; }
.btn-primary, .btn-success {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px -8px rgba(13, 148, 136, 0.5);
}
.btn-primary:hover, .btn-success:hover { background: #0f766e !important; border-color: #0f766e !important; }
.btn-secondary { background: #eef2ff !important; border-color: #e0e7ff !important; color: #312e81 !important; }
.btn-secondary:hover { background: #e0e7ff !important; }
.btn-outline-primary { color: #0d9488 !important; border-color: #99f6e4 !important; background: transparent !important; }
.btn-outline-primary:hover { background: #f0fdfa !important; border-color: #0d9488 !important; }
.btn-outline-secondary { color: #475569 !important; border-color: #e2e8f0 !important; }
.btn-outline-secondary:hover { background: #f8fafc !important; color: #0d9488 !important; border-color: #99f6e4 !important; }
.btn-danger { background: #e11d48 !important; border-color: #e11d48 !important; }
.btn-outline-danger { color: #e11d48 !important; border-color: #fecdd3 !important; }
.btn-outline-danger:hover { background: #fff1f2 !important; }
.btn-sm { border-radius: 0.65rem !important; font-size: 0.75rem; }

/* ---- Formulários ----------------------------------------------------- */
.form-control, .form-select {
  border-radius: 1rem !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc;
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
  transition: all .18s ease;
}
.form-control:focus, .form-select:focus {
  background-color: #ffffff;
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12) !important;
}
.form-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.form-check-input:checked { background-color: #0d9488 !important; border-color: #0d9488 !important; }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15); border-color: #0d9488; }

/* ---- Tabelas --------------------------------------------------------- */
.table { --bs-table-hover-bg: #f0fdfa; font-size: 0.85rem; }
.table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0.8rem 1rem;
}
.table tbody td { padding: 0.85rem 1rem; border-color: #f1f5f9 !important; vertical-align: middle; }

/* ---- Badges ---------------------------------------------------------- */
.badge { border-radius: 999px !important; font-weight: 700; letter-spacing: .03em; padding: 0.4em 0.85em; }
.badge.bg-primary { background: #ccfbf1 !important; color: #115e59 !important; }
.badge.bg-success { background: #d1fae5 !important; color: #065f46 !important; }
.badge.bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge.bg-danger  { background: #ffe4e6 !important; color: #9f1239 !important; }
.badge.bg-info    { background: #e0e7ff !important; color: #312e81 !important; }
.badge.bg-secondary { background: #f1f5f9 !important; color: #475569 !important; }

/* ---- Alerts ---------------------------------------------------------- */
.alert { border-radius: 1.25rem !important; border-width: 1px; font-size: 0.85rem; }
.alert-success { background: #f0fdfa; border-color: #99f6e4; color: #115e59; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger  { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.alert-info    { background: #eef2ff; border-color: #c7d2fe; color: #312e81; }

/* ---- Modais / dropdowns / list groups -------------------------------- */
.modal-content { border-radius: 1.5rem !important; border: none !important; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.35); }
.modal-header { border-bottom: 1px solid #f1f5f9; }
.modal-footer { border-top: 1px solid #f1f5f9; background: #f8fafc; }
.dropdown-menu { border: none !important; border-radius: 1rem !important; box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.25); padding: .5rem; }
.dropdown-item { border-radius: .75rem; font-size: .85rem; padding: .5rem .85rem; }
.dropdown-item:hover { background: #f0fdfa; color: #0d9488; }
.list-group { border-radius: 1.25rem !important; overflow: hidden; }
.list-group-item { border-color: #f1f5f9 !important; font-size: .85rem; }

/* ---- Paginação / navs / progress ------------------------------------- */
.page-link { color: #0d9488; border-color: #e2e8f0; }
.page-item.active .page-link { background: #0d9488 !important; border-color: #0d9488 !important; }
.nav-tabs .nav-link { border: none; color: #64748b; font-weight: 600; font-size: .85rem; }
.nav-tabs .nav-link.active { color: #0d9488; border-bottom: 2px solid #0d9488; background: transparent; }
.progress { border-radius: 999px; background: #f1f5f9; height: 8px; }
.progress-bar { background-color: #0d9488 !important; border-radius: 999px; }

/* ---- Tipografia utilitária ------------------------------------------- */
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.01em; }
.text-primary { color: #0d9488 !important; }
.text-muted { color: #94a3b8 !important; }
a { color: #0d9488; }
a:hover { color: #115e59; }
