/* Reset simples */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  text-align: center;
  background: linear-gradient(180deg, #008000, #0a5e0a);
  color: white;
  padding: 30px 15px;
}
/*.header {
  background: linear-gradient(135deg, #008706, #0DFF2D);
  text-align: center;
  padding: 30px 15px;
  color: #fff;
}*/
.header .logo {
  height: 90px;
  margin-bottom: 10px;
}
.header h1 {
  font-size: 26px;
  font-weight: 600;
}
.header h3 {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 15px;
}
.header .btn-site {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
  color: #008706;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s;
}
.header .btn-site:hover {
  background: #e5e5e5;
}

/* Grid de cards */
.grid {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card h2 {
  font-size: 20px;
  color: #008706;
  margin-bottom: 15px;
}
.card h2 i {
  margin-right: 8px;
}
.card ul {
  list-style: none;
}
.card ul li {
  margin-bottom: 10px;
}
.card ul li a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}
.card ul li a:hover {
  text-decoration: underline;
}

/* Transparência */
.transparencia {
  text-align: center;
  margin: 40px 0;
}
.transparencia img {
  max-height: 100px;
}

/* Rodapé */
.footer {
  background: #eee;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #444;
}

/* Popup SIP */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.popup-content h3 {
  margin-bottom: 20px;
  color: #008706;
}
.popup-content button {
  margin: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.popup-content button:nth-child(2) {
  background: #008706;
  color: #fff;
}
.popup-content button:nth-child(2):hover {
  background: #006805;
}
.popup-content button:nth-child(3) {
  background: #0077cc;
  color: #fff;
}
.popup-content button:nth-child(3):hover {
  background: #005fa3;
}
.popup-content button:last-child {
  background: #ccc;
}
.popup-content button:last-child:hover {
  background: #aaa;
}

/* Widget lateral */
#widgetAcessibilidade {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2000;
}

#widgetAcessibilidade #abrirAcess {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 20px;
}

#menuAcess {
  position: absolute;
  left: 60px;
  top: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  padding: 10px;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
}

#menuAcess.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#menuAcess h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  text-align: center;
  color: #005bbb;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

#menuAcess ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menuAcess li {
  margin: 6px 0;
}

#menuAcess button {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

#menuAcess button:hover {
  background: #ddd;
  transform: scale(1.03);
}


/* === Alto Contraste Acessível === */
body.high-contrast, body.high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast a, body.high-contrast a * {
  color: #0ff !important;
  text-decoration: underline !important;
}

body.high-contrast img { filter: brightness(1.2) contrast(1.5) !important; }

body.high-contrast .header { background-color: #000 !important; color: #0ff !important; }
body.high-contrast .header .btn-site { background-color: #0ff !important; color: #000 !important; }

body.high-contrast .card { background-color: #111 !important; color: #fff !important; box-shadow: 0 4px 12px rgba(255,255,255,0.2) !important; }
body.high-contrast .card h2 { color: #0ff !important; }

body.high-contrast .popup-content { background-color: #111 !important; color: #fff !important; border: 2px solid #0ff !important; }
body.high-contrast button { background-color: #000 !important; color: #0ff !important; border: 2px solid #0ff !important; font-weight: bold; }
body.high-contrast button:hover { background-color: #0ff !important; color: #000 !important; }

/* Fonte dislexia */
.dyslexic {
  font-family: 'OpenDyslexic', Arial, sans-serif !important;
}

#statusWidget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
}

#abrirStatus {
  background: #198754;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#menuStatus {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  padding: 12px;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.3s;
}

#menuStatus.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#menuStatus h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

#statusWidget{
position:fixed;
right:20px;
bottom:20px; /* embaixo do VLibras */
z-index:9999;
}

/* botão */
#abrirStatus{
width:55px;
height:55px;
border-radius:50%;
border:none;
background:#16a34a;
color:#fff;
font-size:22px;
cursor:pointer;
box-shadow:0 8px 25px rgba(0,0,0,.25);
transition:.2s;
}

/* hover */
#abrirStatus:hover{
transform:scale(1.08);
}

/* efeito quando aberto */
#abrirStatus.active{
animation:pulseStatus 1.2s infinite;
background:#0ea5e9;
}

/* animação */
@keyframes pulseStatus{
0%{box-shadow:0 0 0 0 rgba(14,165,233,.7);}
70%{box-shadow:0 0 0 15px rgba(14,165,233,0);}
100%{box-shadow:0 0 0 0 rgba(14,165,233,0);}
}

.status-item {
  font-size: 13px;
  margin: 6px 0;
}

.status-detalhado{
margin-top:8px;
padding-top:8px;
border-top:1px solid #eee;
text-align:center;
}

.status-detalhado a{
text-decoration:none;
font-size:12px;
color:#16a34a;
font-weight:600;
}

.status-detalhado a:hover{
text-decoration:underline;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}

.online { background: #2ecc71; }
.offline { background: #e74c3c; }
.loading{
background:#bbb;
animation:pulse 1.2s infinite;
}

@keyframes pulse{
0%{opacity:.4}
50%{opacity:1}
100%{opacity:.4}
}

.outros-sistemas-left {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

#outrosSistemasBtn {
  width: 60px;
  height: 60px;
  background: #008706;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}

#outrosSistemasBtn:hover {
  background: #006805;
  transform: scale(1.1);
}

.tooltip {
  margin-left: 12px;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.outros-sistemas-left:hover .tooltip {
  opacity: 1;
}

/* ======================
   Responsividade
====================== */

/* Telas até 768px (tablets e celulares em horizontal) */
@media (max-width: 768px) {
  .header h1 {
    font-size: 20px;
  }
  .header h3 {
    font-size: 14px;
  }
  .header .btn-site {
    display: block;
    margin: 10px auto;
    font-size: 14px;
    padding: 8px 14px;
  }
  .grid {
    gap: 15px;
    margin: 20px auto;
  }
  .card {
    padding: 15px;
  }
}

/* Telas até 480px (celulares pequenos em vertical) */
@media (max-width: 480px) {
  .header .logo {
    height: 70px;
  }
  .header h1 {
    font-size: 18px;
  }
  .header h3 {
    font-size: 13px;
  }
  .grid {
    grid-template-columns: 1fr; /* apenas 1 coluna */
    padding: 0 10px;
  }
  .card h2 {
    font-size: 18px;
  }
  .card ul li a {
    font-size: 14px;
  }
  .footer {
    font-size: 12px;
    padding: 15px;
  }
  #outrosSistemasBtn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
