/* =====================================================
   VARIÁVEIS
===================================================== */
:root {
  --color-unipampa: #113ba5;
  --icon-translucido: rgba(150, 114, 217, 0.2);
}

body.unipampa-theme {
  --color-secondary: #113ba5;
  --color-success: #388e3c;
  --color-danger: #d32f2f;
  --color-warning: #fbc02d;
  --interactive: #004d40;
  --interactive-light: #128831;
  --interactive-dark: #1c5d18;
  --color-dark-link: #159d16;
  --background-dark: #113f1f;
  --color-unipampa: #128831;
  --icon-translucido: rgba(76, 175, 80, 0.2);
}

/* Estilos para o tema Alto Contraste */
body.alto_contraste-theme {
    /* Fundo preto */
    background-color: #000 !important;

    /* Texto branco ou amarelo (cores de alto contraste) */
    color: #fff !important;
}

body.alto_contraste-theme a {
    /* Links em amarelo fluorescente para contraste */
    color: #ffff00 !important;
}

body.alto_contraste-theme .br-header,
body.alto_contraste-theme .br-menu {
    /* Elementos principais também em alto contraste */
    background-color: #000 !important;
    border-color: #fff !important;
}

/* =====================================================
   LISTAS E ÍCONES
===================================================== */
ul {
  list-style-type: none;
  padding-left: 14px;
}

li::before {
  content: "\2713 ";
  color: #333;
}

/* =====================================================
   ESTRUTURA E LAYOUT
===================================================== */
.parent-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}

.left-container {
  flex: 1;
  padding: 10px;
}

.right-container {
  min-width: 300px;
  padding: 10px;
  border-left: 1px solid #ccc;
}

.field {
  margin-bottom: 0.75rem;
}

.field-limited {
  margin-bottom: 0.75rem;
  max-height: 10em;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.field-limited.expanded {
  max-height: 1000px;
}

.field-label {
  font-weight: bold;
  font-size: 0.9em !important;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.2vw, 1.2em);
  color: var(--interactive);
}

.field-value {
  margin-left: 0.5rem;
}

.field-value p {
  font-size: 14px;
}

.record-card {
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.card-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.read-more {
  color: var(--interactive);
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  margin-top: 4px;
}

.br-dropdown {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

/* =====================================================
   COMPONENTES E CLASSES UTILITÁRIAS
===================================================== */
.path {
  text-align: left;
  font-size: 16px;
  font-weight: 100;
  color: #ffffff;
  position: absolute;
  width: 100%;
  bottom: 4px;
  left: 4px;
  box-sizing: border-box;
}

.path a {
  color: #d9d9e1;
}

.clicavel {
  cursor: pointer;
  color: var(--interactive);
}

.clicavel:hover {
  background-color: #f0f0f0;
}

.oculto {
  display: none;
}

.botoes {
  display: flex;
  justify-content: left;
}

.footer {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* =====================================================
   CONTAINERS E CARDS EM LINHA
===================================================== */
.container_linha {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.card_linha {
  position: relative;
  height: 100%;
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.icone {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  color: var(--icon-translucido);
}

/* =====================================================
   CAMPOS COM ÍCONES
===================================================== */
.input-icon-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.input-icon-wrapper i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.input-icon-wrapper input {
  padding-left: 2rem;
}

/* =====================================================
   CABEÇALHO PERSONALIZADO
===================================================== */
.custom-header {
  background: #fff;
  padding: 1rem;
  color: #252525;
}

.custom-header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.custom-header-left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.custom-header-text {
  margin-left: 1rem;
  word-break: break-word;
}

.custom-header-search {
  flex: 0 0 auto;
  max-width: 200px;
  width: 100%;
  margin-left: auto;
}

.custom-header-search input {
  width: 100%;
}

/* =====================================================
   RESPONSIVIDADE
===================================================== */
@media (max-width: 600px) {
  .parent-container {
    flex-direction: column;
  }

  .right-container,
  .left-container {
    min-width: 100%;
  }

  .custom-header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-header-left,
  .custom-header-search {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .custom-header-top h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d9d9e1;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.2;
    flex-wrap: nowrap;
  }

  .custom-header-top h1 i {
    flex-shrink: 0;
    font-size: 1.2em;
  }

  .custom-header-top h1 .texto {
    overflow-wrap: break-word;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .custom-header-top .path {
    white-space: normal;
    font-size: 0.8rem;
  }
}

/* =====================================================
   VLibras - posicionamento fixo
===================================================== */
[vw-access-button] {
  position: fixed !important;
  top: auto !important;
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 9999 !important;
  transform: none !important;
}

/* ============================
   MELHORIAS COMPLEMENTARES
============================ */

/* Responsividade complementar */
@media (max-width: 1024px) {
  .parent-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .parent-container {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Transições suaves em elementos interativos */
a, button, .br-button {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a:hover, button:hover, .br-button:hover {
  transform: translateY(-1px);
}

/* Correção para imagens grandes em mobile */
img {
  max-width: 100%;
  height: auto;
}

/* Espaçamento mínimo para toques em mobile (acessibilidade) */
button, .br-button {
  min-height: 44px; /* Recomendação WCAG para touch */
}
