/* ==========================
   ESTILO GERAL
========================== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #1a1d23;
  color: #f1f1f1;
}

h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

/* ==========================
   CABEÇALHO
========================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: #20242c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 55px;
  height: auto;
}

.dark-header h1 {
  color: #f1f1f1;
  font-size: 1.6rem;
  font-weight: 600;
}

/* ==========================
   BOTÕES E LINKS
========================== */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-buttons a,
.btn-login,
.btn-signup {
  background-color: #00c6d7;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.nav-buttons a:hover,
.btn-login:hover,
.btn-signup:hover {
  background-color: #02dbe5;
  transform: scale(1.05);
}

/* ==========================
   MAPA INTERATIVO
========================== */
.map-section {
  height: calc(100vh - 100px);
}

#map {
  width: 100%;
  height: 100%;
}

/* ==========================
   PÁGINA IMAGEM EM TEMPO REAL
========================== */
.imagem-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: #1a1d23;
  text-align: center;
}

.imagem-container {
  position: relative;
  display: inline-block;
}

.imagem-container img {
  width: 85%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Botão direito (já ajustado) */
#btnAtualizar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #00c6d7;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s, transform 0.1s;
  z-index: 999;
}
#btnAtualizar:hover { background-color: #02dbe5; transform: scale(1.05); }

/* Botão esquerdo: alternar modo (IR/Cor) */
.btn-floating-left {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #2d323b;
  color: #f1f1f1;
  font-weight: 600;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s, transform 0.1s;
  z-index: 999;
}
.btn-floating-left:hover { background-color: #3a414c; transform: scale(1.05); }


.legenda {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 20px;
}

/* ==========================
   NOTIFICAÇÃO
========================== */
.notificacao {
  display: none;
  background-color: #2ecc71;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: 20px;
  font-weight: bold;
  animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
  0% {opacity: 0;}
  10% {opacity: 1;}
  90% {opacity: 1;}
  100% {opacity: 0;}
}

/* ==========================
   PÁGINA SOBRE (EQUIPE)
========================== */
.team {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  background-color: #1a1d23;
  text-align: center;
}

.team img {
  width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.team-text {
  max-width: 500px;
}

.team-text h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #00c6d7;
}

.team-text p {
  color: #d0d0d0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-voltar {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background-color: #00c6d7;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-voltar:hover {
  background-color: #02dbe5;
  transform: scale(1.05);
}

/* ==========================
   RODAPÉ
========================== */
footer {
  background-color: #20242c;
  text-align: center;
  color: #f1f1f1;
  padding: 15px;
  font-size: 0.9rem;
  width: 100%;
}
/* Cartão do mapa na HOME */
.map-section { padding: 12px; }
#map {
  height: calc(90vh - 110px); /* altura um pouco menor */
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  overflow: clip;
}


/* FAB containers (página de imagem) */
.fab-right, .fab-left {
  position: absolute;
  bottom: 16px;
}
.fab-right { right: 16px; }
.fab-left  { left: 16px; }
/* Fixar o botão do modo (igual ao Atualizar) */
.fab-left {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 999;
}
.fab-firms {
  position: fixed;
  bottom: 90px; /* acima do botão de atualizar imagem */
  right: 30px;
  z-index: 999;
}



/* Botões “pílula” */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.pill.primary { background: #00c6d7; color: #fff; }
.pill.primary:hover { background: #02dbe5; }
.pill.ghost { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); }
.pill.ghost:hover { background: rgba(255,255,255,.20); }

/* Spinner + animação de “Atualizando…” */
.pill .spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  border-right-color: transparent;
  display: none;
  animation: spin .8s linear infinite;
}
.pill.loading .spinner { display: inline-block; }
.pill.loading .label::after { content: " (atualizando…)"; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast simples */
.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 28px;
  background: #2ecc71; color: #fff;
  padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.imagem-container img {
  width: 85%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  cursor: grab;
  transition: transform 0.3s ease;
}

.imagem-container img:active {
  cursor: grabbing;
  transform: scale(1.25); /* zoom interativo simples */
}
.imagem-info {
  margin-top: 8px;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.coord-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0 25px 0;
}

.coord-form input {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  width: 160px;
}

.coord-form button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background-color: #00c6d7;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.coord-form button:hover {
  background-color: #02dbe5;
  transform: scale(1.05);
}
/* Display de Coordenadas (Estilo NASA FIRMS simplificado) */
.coords-display {
    position: fixed; /* Ou absolute, se o container pai for relative */
    bottom: 20px;    /* Distancia do fundo */
    left: 20px;      /* Distancia da esquerda */
    background-color: rgba(0, 0, 0, 0.7); /* Fundo preto semi-transparente */
    color: #00ffcc;  /* Cor do texto (um verde meio ciano, estilo radar) */
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace; /* Fonte estilo código/técnica */
    font-size: 14px;
    z-index: 9999; /* Garante que fique em cima do mapa */
    pointer-events: none; /* O mouse "atravessa" a caixa, não atrapalha o clique no mapa */
    border: 1px solid #00ffcc; /* Borda fina para destaque */
}
#goes-yolo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;                /* distância entre imagem e caixa */
  margin-top: 20px;
}

/* Caixa YOLO ao lado da imagem */
#yolo-box {
  width: 300px;             /* menor, não atrapalha a imagem */
  background: #111;
  border: 2px solid #0ff;
  padding: 12px;
  color: #fff;
  border-radius: 10px;
  height: auto;
  max-height: 70vh;         /* nunca ultrapassa tela */
  overflow-y: auto;
  position: relative;       /* não gruda em botões */
}
.atualizacao-info {
  margin-top: 10px;
  color: #ccc;
  text-align: center;
  font-size: 0.9rem;
}
.atualizacao-info p {
  margin: 4px 0;
}
#goes-yolo-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 20px;
}

#yolo-box {
    width: 340px;
    background: #111;
    border: 2px solid #00eaff;
    padding: 15px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.atualizacao-info {
    margin-top: 10px;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4rem;
}

.atualizacao-info p {
    margin: 4px 0;
}
/* Container lado a lado */
#goes-yolo-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

/* Coluna da direita: YOLO + texto */
.yolo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Caixa YOLO */
#yolo-box {
    width: 380px;
    background: #111;
    border: 2px solid #0ff;
    padding: 10px 18px;
    color: white;
    border-radius: 12px;
}

/* Texto de atualização */
.atualizacao-info {
    font-size: 14px;
    color: #ccc;
    text-align: center;
    max-width: 380px;
}
.coords-display {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo um pouco mais escuro */
    color: #00ffcc;
    padding: 5px 10px;
    border-radius: 6px; /* Bordas mais arredondadas */
    font-family: monospace;
    font-size: 14px;
    z-index: 9999;
    border: 1px solid #00ffcc;
    
    /* Para alinhar texto e botão lado a lado */
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre o texto e o botão */
    pointer-events: auto; /* IMPORTANTE: Agora o mouse pode clicar no botão */
}

/* Estilo do botão novo */
#btn-clima-coords {
    background: #004d40; /* Verde escuro */
    color: white;
    border: 1px solid #00ffcc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 8px;
    transition: background 0.3s;
}

#btn-clima-coords:hover {
    background: #00796b;
}

#btn-clima-coords:active {
    transform: scale(0.95);
}
