/* ===== RESET BÁSICO ===== */
* {
  box-sizing: border-box;
}

html,
body,
#root,
#app {
  margin: 0;
  padding: 0;
  border: 0;
}

html,
body {
  height: 100%;
}

/* ===== VARIÁVEIS ===== */
:root {
  --ink: #073487;
  --muted: #667085;
  --brand: #009EE3;
  --brand-700: #0080b3;
  --card: #fff;
  --bg: #f5f5f5;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(2, 8, 20, .08);
  --header-h: 116px;
}

/* ===== BASE ===== */
html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Lato", Arial, sans-serif;
}

body {
  padding-top: var(--header-h);
}

/* ===========================
   🧭 HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  color: #fff;
}

/* Container dentro do header */
.site-header .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Topbar */
.site-header .topbar {
  background: #45A4E6;
  padding: 21.5px 0;
  margin: 0 !important;
  border: 0 !important;
}

.site-header .topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

/* Logo */
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 15px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.site-header .logo img {
  height: 40px;
  display: block;
}

/* Link catálogo */
.site-header .catalog {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Menubar */
.site-header .menubar {
  background: #173A8D;
}

.site-header .menubar .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header .menubar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 52px;
  width: 100%;
}

/* Menu */
.site-header .menu {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .menu a,
.site-header .menu button {
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.site-header .menu a {
  padding: 10px 6px;
  position: relative;
}

.site-header .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: transparent;
  border-radius: 3px;
  transition: background .15s ease;
}

.site-header .menu a:hover::after {
  background: rgba(255, 255, 255, .8);
}


/* ===========================
   HEADER ANIMADO AO SCROLL
   =========================== */
.site-header {
  position: relative;
  width: 100%;
  top: 0;
  left: 0;
  transition: all 0.4s ease;
  z-index: 999;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.site-header.scrolled .topbar {
  background: transparent;
}

.site-header.scrolled .menubar {
  background: transparent;
}

.site-header.scrolled a {
  color: #173A8D;
  transition: color 0.3s;
}

.site-header.scrolled img {
  filter: brightness(0) invert(0.2);
  transition: filter 0.3s;
}

.site-header .topbar,
.site-header .menubar {
  transition: background 0.4s ease, padding 0.4s ease;
}

.site-header.scrolled .topbar {
  padding: 6px 0;
}

.site-header .topbar {
  background: #173A8D;
  color: #fff;
  padding: 10px 0;
}

.site-header .menubar {
  background: #1e84c4;
  color: white;
  padding: 6px 0;
}

.site-header.scrolled .menubar {
  background: rgba(30, 132, 196, 0.05);
}
/* ---- Overrides mínimos para não-fixo + animação ---- */
body { 
  padding-top: 0 !important;    /* remove o espaço deixado para header fixo */
}

.site-header { 
  position: relative !important; /* garante que NÃO fique fixo */
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}

/* ===========================
   MENUBAR RESPONSIVO (MOBILE)
   =========================== */
@media (max-width: 768px) {
  .menubar .wrap {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .menubar .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
  }

  .menubar .menu li {
    flex: 1 1 45%;
    text-align: center;
  }

  .menubar .menu a {
    display: block;
    padding: 10px 5px;
    font-size: 14px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .menubar .menu li {
    flex: 1 1 100%;
  }

  .menubar .menu a {
    font-size: 15px;
    padding: 12px 8px;
  }
}

/* ===========================
    ESTRUTURA GERAL
   =========================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.ouvidoria-section {
  padding: 40px 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 0;
}

.card-body {
  padding: 28px;
}

.title {
  text-align: center;
  margin: 0 0 6px;
  font-size: 28px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 22px;
}

/* ===========================
    TABS
   =========================== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  background: #e9f5fb;
  color: var(--ink);
  cursor: pointer;
}

.tab:hover {
  background: #d3ebf5;
}

.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
}

/* ===========================
    FORMULÁRIOS
   =========================== */
.form-horizontal .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-horizontal label {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-control {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

textarea.form-control {
  min-height: 150px;
  resize: none;
}

.form-control-file {
  padding: 6px 0;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  color: var(--ink);
}

.section-title {
  font-weight: 800;
  margin: 18px 0 10px;
}

.section-title.spaced {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.divider {
  border: 0;
  border-top: 1px solid #eef2f6;
  margin: 18px 0;
}

.files-list {
  margin: 8px 0 0 18px;
  color: #555;
}

/* ===========================
    BOTÕES
   =========================== */
.btn-custom,
.btn-secondary-custom {
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 800;
  cursor: pointer;
}

.btn-custom {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
}

.btn-custom:hover {
  filter: brightness(.95);
}

.btn-secondary-custom {
  background: #e9f5fb;
  color: var(--ink);
}

.btn-secondary-custom:hover {
  background: #d3ebf5;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Botões de adição e remoção */
.btn-add {
  margin-top: 8px;
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-add:hover {
  background: #3578c0;
}

.btn-remove {
  align-self: flex-end;
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-remove:hover {
  background: #c9182c;
}

/* ===========================
   ALERTAS
   =========================== */
.alert {
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
}

.alert.success {
  background: #e9f5fb;
  color: #17628d;
}

.alert.info {
  background: #e9f5fb;
  color: var(--ink);
}

.alert.success h3,
.alert.success h4 {
  margin-top: 20px;
  color: #173A8D;
}

.alert.success ul {
  list-style: none;
  padding-left: 0;
}

.alert.success ul li {
  background: #f9f9f9;
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 4px;
}

/* ===========================
   TABELAS DE RELATO
   =========================== */
.tabela-relato {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tabela-relato th {
  background: #173A8D;
  color: #fff;
  text-align: left;
  padding: 8px;
  width: 200px;
  border-bottom: 1px solid #ccc;
}

.tabela-relato td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

/* ===== Correção de quebras longas no retorno da Ouvidoria ===== */
.tabela-relato td {
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  max-width: 600px;
  /* evita estouro horizontal */
}

.resposta-table td {
  white-space: pre-wrap;
  /* mantém quebras e espaços */
  line-height: 1.5;
}


/* ===========================
   BLOCO TESTEMUNHAS / ENVOLVIDOS
   =========================== */
.form-section {
  margin-top: 20px;
  padding: 15px;
  background: #f6f9ff;
  border-radius: 8px;
  border: 1px solid #d8e3f3;
}

.bloco {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  margin-bottom: 12px;
}

.bloco label {
  font-weight: 700;
  color: var(--ink);
}

.bloco input,

.bloco select {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

/* ===========================
   MODAL DETALHES ADMIN - ESTILO APRIMORADO
   =========================== */
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalFadeIn 0.3s ease;
  font-family: "Lato", sans-serif;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-content h3 {
  margin: 0 0 10px;
  color: #173A8D;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}


.modal-content h4 {
  margin-top: 20px;
  font-size: 17px;
  color: #173A8D;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-content h4::before {
  font-size: 18px;
}

.modal-content p {
  margin: 6px 0;
  line-height: 1.5;
}

.modal-content b {
  color: #0a2870;
}

.modal-content ul {
  list-style: none;
  margin: 6px 0 0 0;
  padding-left: 12px;
}
.modal-content ul {
  list-style: none;
  margin: 6px 0;
  padding-left: 0;
}

.modal-content ul li {
  background: #f7faff;
  border-left: 4px solid #45A4E6;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.modal-content h4 {
  color: #173A8D;
  font-size: 17px;
  margin-top: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-content h4::before {
  font-size: 18px;
}

.modal-content ul li {
  background: #f7faff;
  border-left: 4px solid #45A4E6;
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.modal-content ul li b {
  color: #173A8D;
}

.modal-content a {
  color: #0077cc;
  text-decoration: none;
  word-break: break-word;
}

.modal-content a:hover {
  text-decoration: underline;
}

/* Resposta e status */
.modal-content label {
  font-weight: 700;
  color: #173A8D;
  display: block;
  margin-top: 18px;
}

.modal-content textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  font-family: inherit;
  line-height: 1.4;
}

.modal-content select {
  margin-top: 6px;
  width: 160px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 15px;
}

/* Botão salvar */
.modal-content .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.modal-content .btn-custom {
  background: linear-gradient(135deg, #45A4E6, #173A8D);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  transition: 0.2s ease;
}

.modal-content .btn-custom:hover {
  filter: brightness(0.95);
}

.detalhes-animado {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.detalhes-animado.ativo {
  max-height: 2000px;
  opacity: 1;
}

/* Animação de abrir/fechar detalhes */
.detalhes-animado {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.detalhes-animado.ativo {
  max-height: 1500px;
  opacity: 1;
}

.modal-content textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
}

.resposta-table {
  background: #f7faff;
  border: 2px solid #d0e2ff;
  border-radius: 6px;
  margin-bottom: 10px;
}

.resposta-table th {
  background: #e5f0ff;
  color: #003366;
  width: 150px;
}

.btn-custom {
  background-color: #357edd;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.btn-custom:hover {
  background-color: #285bb5;
}

/* ===== Modal (Admin) ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
}


   /* LOGIN ADMIN */
   
.login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 80px auto;
  padding: 32px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.login-card h3 {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 26px;
}

.login-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.login-card .form-group {
  text-align: left;
}

.login-card input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  margin-bottom: 15px;
}

.login-card .btn-custom {
  width: 100%;
  padding: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  /* PAINEL ADMIN */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #173A8D;
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.admin-title h3 {
  margin: 0;
  font-size: 22px;
}

.admin-title p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #d0e2ff;
}

.admin-actions button {
  background: #fff;
  color: #173A8D;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
}

.admin-actions button:hover {
  background: #dce9ff;
}

.admin-filter {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-table {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-table th {
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: white;
}

.admin-table td {
  font-size: 15px;
}

.admin-table button {
  background: #45A4E6;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.admin-table button:hover {
  background: #1e84c4;
}
/* ==========================
   BLOCO DE DESCRIÇÃO NO MODAL
   ========================== */
.descricao-bloco {
  margin-top: 10px;
  margin-bottom: 15px;
}

.descricao-texto {
  background: #f8faff;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.5;
  white-space: pre-wrap; 
  word-break: break-word;
  max-height: 250px;    
  overflow-y: auto;      
  border: 1px solid #e0e6f0;
}

/* ===========================
   MENU SUSPENSO MOBILE
   =========================== */
.hamb {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.logo-mobile {
  display: none;
}

/* ===========================
   MOBILE CONFIG
   =========================== */
@media (max-width: 768px) {
  .site-header .topbar {
    display: none !important;
  }

  /* 🔹 Oculta a logo padrão do topo */
  .site-header .logo {
    display: none !important;
  }

  /* 🔹 Mostra e centraliza logo no mobile */
  .logo-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-mobile img {
    height: 36px;
    width: auto;
    object-fit: contain;
  }

  /* 🔹 Configura a menubar no mobile */
  .menubar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* deixa a logo centralizada */
    background: #173A8D;
    padding: 8px 12px;
    z-index: 1000;
  }

  /* 🔹 Botão hamburguer à esquerda */
  .hamb {
    display: block;
    position: absolute;   /* ✅ fixa no canto */
    top: 8px;             /* distancia do topo */
    left: 12px;           /* distancia da esquerda */
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin: 0;
  }

  /* 🔹 Esconde menu padrão até abrir */
  .menubar .menu {
    display: none;
    flex-direction: column;
    background: #173A8D;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  /* 🔹 Mostra menu quando ativo */
  .menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  .menubar .menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menubar .menu a {
    display: block;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }

  .menubar .menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ===========================
   ANIMAÇÃO
   =========================== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===========================
    FOOTER
   =========================== */
.site-footer {
  background: #173A8D;
  color: #fff;
  padding: 24px 0;
}

.site-footer .footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-footer .footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-logo img {
  height: 40px;
}

.site-footer .footer-info p {
  margin: 4px 0;
  font-size: 14px;
}

@media (max-width: 600px) {
  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
body, html {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.site-footer {
  margin-top: auto;
}

