/* ===== GLOBAL CSS - DOCA PJ ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1e3a5f;
  --navy-dark: #0f172a;
  --navy-light: #334155;
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --sky-hover: #0284c7;
  --sky-dark: #0284c7;
  --primary: var(--sky);
  --emerald: #10b981;
  --emerald-light: #d1fae5;
  --amber: #f59e0b;
  --red: #ef4444;
  --red-light: #fef2f2;
  --white: #ffffff;
  --surface: #f0f0f0;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== LOGO ===== */
.logo-brand {
  height: 56px;
  width: auto;
  display: block;
}

.logo-footer-white {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 320px) {
  .logo-brand {
    height: 48px;
  }

  .logo-footer-white {
    height: 32px;
  }
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-fluid {
  width: 100%;
  padding: 0 32px;
}

.container-xs {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-sm {
  gap: 8px;
}
.gap-md {
  gap: 16px;
}
.gap-lg {
  gap: 24px;
}
.gap-xl {
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--sky-hover);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  border-color: var(--white);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  margin: 5px 0;
}

.btn-full {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-light);
}

.btn-danger {
  background: var(--red);
  color: var(--white);
}
.btn-danger:hover {
  opacity: 0.9;
}

/* ===== INPUTS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== STANDARD FORM ELEMENTS (Painel/Admin) ===== */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="radio"]):not([type="checkbox"]),
textarea,
select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sky);
  cursor: pointer;
}

label {
  cursor: pointer;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-flat {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background: #ecfdf5;
  color: #059669;
}
.badge-red {
  background: #fef2f2;
  color: #dc2626;
}
.badge-amber {
  background: #fffbeb;
  color: #d97706;
}
.badge-sky {
  background: #f0f9ff;
  color: #0284c7;
}
.badge-navy {
  background: var(--navy);
  color: var(--white);
}

/* ===== SECTION ===== */
.section {
  padding: 80px 0;
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-dark {
  background: var(--navy-dark);
  color: var(--white);
}

.section-surface {
  background: var(--surface);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===== TABLES ===== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--surface);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--surface);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s ease;
}

.progress-green {
  background: var(--emerald);
}
.progress-sky {
  background: var(--sky);
}
.progress-amber {
  background: var(--amber);
}
.progress-red {
  background: var(--red);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tab {
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--transition);
  font-family: "Inter", sans-serif;
}

.tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) {
  color: var(--text);
}

/* ===== AVATAR ===== */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ===== SITE HEADER (GLOBAL) ===== */
.site-nav {
  background: var(--surface);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 92px;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-nav img {
  height: auto;
  max-height: 56px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--navy-light);
}

.nav-links a[aria-current="page"] {
  color: var(--navy-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Garante que o conteúdo não fique atrás do header fixo. */
.site-nav + main {
  padding-top: 92px;
}

/* ===== SITE FOOTER (GLOBAL) ===== */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 48px 0;
}

.home-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-legal {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  line-height: 1.6;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  width: 100%;
  padding: 10px 0;
  margin: 0 0 18px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-left: 0;
  margin: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 10px;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--sky);
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--sky-hover);
}

.breadcrumbs span {
  color: var(--text-muted);
  font-weight: 600;
}

/* Breadcrumb “pill” (melhor UX e leitura) */
.breadcrumbs ol {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  max-width: 100%;
}

.breadcrumbs li {
  max-width: 100%;
}

.breadcrumbs a,
.breadcrumbs span {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== ACCORDION / FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--white);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-light);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== STAT CARD ===== */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.18);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--navy);
}

.stat-card .stat-change {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.stat-up {
  color: var(--emerald);
}
.stat-down {
  color: var(--red);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #111c33 100%);
  color: var(--white);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  box-shadow: 8px 0 30px rgba(15, 23, 42, 0.16);
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.sidebar-logo {
  padding: 26px 22px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
  height: 32px;
}

.sidebar-nav {
  padding: 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
  background: rgba(14, 165, 233, 0.18);
  color: var(--white);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.06);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  padding: 20px 14px 8px;
}

.sidebar-footer {
  padding: 18px 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== MAIN CONTENT (DASHBOARD) ===== */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 28%),
    var(--surface);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--navy);
}

.content-area {
  padding: 32px;
  flex: 1;
}

.dash-space-between,
.dash-justify-between {
  justify-content: space-between;
}

/* ===== CHART PLACEHOLDER ===== */
.chart-container {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 20px 20px 0;
}

.chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  transition: opacity var(--transition);
  position: relative;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-labels {
  display: flex;
  gap: 8px;
  padding: 8px 20px;
}

.chart-label {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
}

.chart-header {
  padding: 20px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

/* ===== DONUT CHART ===== */
.donut-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
}

.donut-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center .big {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.donut-center .small {
  font-size: 12px;
  color: var(--text-muted);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== LOGIN ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
}

.login-left {
  flex: 1;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}

.login-left-content img {
  height: 56px;
  margin-bottom: 32px;
}

.login-left-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.login-left-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.7;
}

.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.login-form h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.login-form .subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 13px;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: "Inter", sans-serif;
  color: var(--text);
}

.social-btn:hover {
  background: var(--surface);
  border-color: var(--text-light);
}

.form-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.form-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
}

.form-check a {
  color: var(--sky);
  font-weight: 600;
}

.form-check a:hover {
  text-decoration: underline;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--sky);
  font-weight: 600;
}

/* ===== ALERT ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-info {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.alert-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ===== NOTIFICATION DOT ===== */
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  top: -2px;
  right: -2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 28px;
  }
  .section-subtitle {
    font-size: 16px;
  }

  .login-wrapper {
    flex-direction: column;
  }
  .login-left {
    display: none;
  }
  .login-right {
    min-height: 100vh;
  }

  .topbar {
    padding: 12px 16px;
  }

  .content-area {
    padding: 16px;
  }

  .donut-wrapper {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 577px) {
  .hero-cta-box {
    flex-direction: column;
  }

  .site-nav + main {
    padding-top: 86px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }
  .container-sm {
    padding: 0 12px;
  }
  .container-xs {
    padding: 0 12px;
  }
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-area {
    padding-left: 12px;
    padding-right: 12px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .site-nav + main {
    padding-top: 80px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-delay-1 {
  animation-delay: 0.1s;
  opacity: 0;
}
.fade-up-delay-2 {
  animation-delay: 0.2s;
  opacity: 0;
}
.fade-up-delay-3 {
  animation-delay: 0.3s;
  opacity: 0;
}
.fade-up-delay-4 {
  animation-delay: 0.4s;
  opacity: 0;
}

/* ===== SWITCH / TOGGLE ===== */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-switch.active {
  background: var(--sky);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* ===== TOOLTIP ===== */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.tooltip:hover::after {
  opacity: 1;
}

/* ===== MODAL/OVERLAY ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

body.has-open-modal {
  overflow: hidden;
}

.modal-overlay[hidden] {
  display: none;
}

.legal-modal-box {
  max-width: 860px;
  max-height: 82vh;
  overflow: hidden;
  position: relative;
}

.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.legal-modal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-modal-content {
  max-height: 62vh;
  overflow: auto;
  padding-right: 12px;
}

.legal-modal-content h2,
.legal-modal-content h3,
.legal-modal-content h4 {
  color: var(--navy);
  margin: 18px 0 8px;
}

.legal-modal-content p,
.legal-modal-content li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.legal-modal-content ul {
  padding-left: 20px;
}

.form-alert {
  margin-bottom: 16px;
}

.pagamento-resultado {
  display: none;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  border-radius: 8px;
  padding: 10px;
  color: #0c4a6e;
}

.pagamento-resultado.is-visible {
  display: block;
}
/* ===== DASHBOARD FOOTER ===== */
.dash-footer {
  padding: 24px 32px;
  background: var(--white);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.dash-footer a {
  color: var(--sky);
  font-weight: 600;
}

/* ===== SITE SHARED (NAV & FOOTER) ===== */
.site-nav {
  background: var(--surface);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 92px;
  padding: 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav img {
  height: auto;
  max-height: 56px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--navy-light);
}

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom a {
  color: var(--sky);
}

/* ===== SYSTEM CUSTOM MODALS (DOCA PJ GLOBAL) ===== */
.docapj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.docapj-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.docapj-modal-box {
  background: var(--white);
  border: 2px solid var(--navy-dark);
  border-radius: 2px;
  max-width: 480px;
  width: 90%;
  box-shadow: 6px 6px 0px rgba(15, 23, 42, 0.2);
  padding: 24px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.docapj-modal-overlay.is-active .docapj-modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal accents based on type */
.docapj-modal-box.type-error {
  border-top: 6px solid var(--red);
}

.docapj-modal-box.type-alert {
  border-top: 6px solid var(--sky);
}

.docapj-modal-box.type-confirm {
  border-top: 6px solid var(--navy);
}

.docapj-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.docapj-modal-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 0;
  line-height: 1.3;
}

.docapj-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-top: -2px;
  transition: color var(--transition);
}

.docapj-modal-close:hover {
  color: var(--navy-dark);
}

.docapj-modal-body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}

.docapj-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.docapj-modal-btn {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
}

.docapj-modal-btn-primary {
  background: var(--sky);
  color: var(--white);
}

.docapj-modal-btn-primary:hover {
  background: var(--sky-hover);
}

.docapj-modal-box.type-error .docapj-modal-btn-primary {
  background: var(--red);
}

.docapj-modal-box.type-error .docapj-modal-btn-primary:hover {
  opacity: 0.9;
}

.docapj-modal-btn-secondary {
  background: transparent;
  color: var(--navy-light);
  border: 1px solid var(--border);
}

.docapj-modal-btn-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}
