@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cabin", sans-serif;
}

/* ==================== BASE ==================== */
body {
  background: linear-gradient(135deg, #0a0a1a, #1c1c3c);
  color: #f4f4f9;
  text-align: center;
  min-height: 100vh;
  padding-top: 95px; /* espaço pro header fixo */
}

/* Se presente, padroniza base para 16px */
html { font-size: 16px; } /* garante consistência */
body { font-size: 1rem; line-height: 1.6; }

/* Uniformiza pequenos elementos */
.nav-links a,
.footer-texto,
.btn-whatsapp,
.popup-content,
.popup-content p,
.popup-content h2,
.topic,
.feature h3,
.feature p,
.contato-info p {
  font-size: 1rem;
}

/* ==================== HEADER ==================== */
header {
  background: linear-gradient(90deg, #0059ff, #5f95c1);
  color: white;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: fixed;   /* fixo no topo */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header img {
  height: 80px;
  margin-right: 10px;
}

.logo {
  height: 60px;
}
.search-form {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.search-form input {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  height: 40px;
}

.search-form button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-left: none;
  background: #0073e6;
  color: white;
  cursor: pointer;
  height: 40px;
  border-radius: 0 20px 20px 0;
}
.contact {
  font-size: 14px;
  text-align: right;
}

/* ==================== TÍTULOS ==================== */
h1 {
  text-align: center;
  color: #f4f4f9;
  margin-bottom: 20px;
  margin-top: 40px;
}

/* ==================== BLOCO DE INFORMAÇÕES ==================== */
.info, .gauges, .log-falhas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 20px;
}

.box, .middle-box, .log-falhas {
  background: rgba(255,255,255,0.08);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  margin: 10px;
}

.box {
  min-width: 150px;
  text-align: center;
}
.middle-box {
  width: 300px;
  text-align: center;
}

.gauge-container {
  text-align: center;
}
canvas {
  max-width: 300px;
}
.gauge-value {
  font-size: 20px;
  font-weight: bold;
}

.status-ok { color: #25D366; }
.status-fail { color: #ff3333; }

.dev-info {
  text-align: center;
  font-size: 12px;
  color: #ccc;
  margin: 20px 0;
}
.social-icon {
  margin: 0 8px;
  display: none;
  height: 70px;
  width: 70px;
  font-size: 22px;
  color: #fff;
  transition: transform 0.2s, color 0.2s;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Ajuste do logo ChatGPT */
.chatgpt-icon {
  margin: 0px;
  margin-top: 15px;
height: 69px;
  width: 69px;
  padding-bottom: 20px;
  filter: invert(100%); /* deixa branco para combinar */
  transition: transform 0.2s;
}
.Manus-icon {
  margin-top: 30px;
  height: 27px;
  filter: invert(100%); /* deixa branco para combinar */
  transition: transform 0.2s;
}

.social-icon:hover .chatgpt-icon {
  transform: scale(1.2);
  filter: invert(63%) sepia(91%) saturate(444%) hue-rotate(102deg) brightness(90%) contrast(92%);
  /* fica verde no hover (cor oficial OpenAI) */
}
ul {
  list-style: none;
  padding: 0;
}

.ip-info {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}
.ip-info strong {
  font-size: 16px;
}

.refresh-btn {
  margin-top: 5px;
  padding: 5px 10px;
  border: none;
  background-color: #25D366;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.refresh-btn:hover {
  background: #1ebe5c;
}

/* ==================== BOTÃO WHATSAPP ==================== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
}

.whatsapp-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}
.whatsapp-menu a {
  padding: 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.whatsapp-menu a:hover {
  background-color: #f0f0f0;
}
.whatsapp-menu a:last-child {
  border-bottom: none;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
  .search-form input {
    width: 140px;
  }
  .middle-box { width: 90%; }
  canvas { max-width: 200px; }
  body { padding-top: 120px; }
  header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .info, .gauges { flex-direction: column; align-items: center; }
  .box, .middle-box { width: 90%; }
  canvas { max-width: 180px; }
}

/* ====== MENU RESPONSIVO ====== */
.navbar {
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}

.nav-links li a:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: right;
    margin: 5px 15px;
  }
}
@media (min-width: 1024px) {
  .social-icon {
    display: inline-block;
  }
}

/* Compatibilidade com style.css: herda scroll-margin e order usados no index */
section { scroll-margin-top: 115px; }
#Inicio { scroll-margin-top: 110px; }

/* Mantém a ordem visual do header consistente com style.css */
header img { order: 1; }
.navbar { order: 2; }
.social-icon { order: 3; }
.search-form { order: 4; }

/* Regras de responsividade alinhadas ao style.css */
@media (max-width: 992px) {
  .search-form { order: 2; }
  .navbar { order: 3; }
  .search-form input { width: 140px; }
  header { flex-direction: row; align-items: center; justify-content: space-between; padding: 15px; }
  section { scroll-margin-top: 125px; }
  body { padding-top: 125px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 8px;
  }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
  .search-form input { width: 140px; }
  body { padding-top: 125px; }
  section { scroll-margin-top: 125px; }
}

@media (max-width: 600px) {
  body { padding-top: 120px; }
  section { scroll-margin-top: 125px; }
}