@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");
@import url("https://use.fontawesome.com/releases/v6.5.1/css/all.css");


.tabela-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

.status-tabela {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 14px;
}

.status-tabela th {
  background-color: #2c3e50;
  color: #fff;
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  justify-content: center;
  align-items: center;
}

.th-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* se tiver ícone */
  width: 100%;
}

.status-tabela td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.status-tabela tr.verde td {
  background-color: #e6fff2;
  color: #155724;
}

.status-tabela tr.amarelo td {
  background-color: #fffbe6;
  color: #856404;
}

.status-tabela tr.vermelho td {
  background-color: #ffe6e6;
  color: #721c24;
}

.telemetria-card {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.card-conteudo {
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  color: #000;
  background-color: #eee;
  display: inline-block;
}

.card-conteudo.verde {
  background-color: #d4f4e1;
  color: #155724;
}

.card-conteudo.amarelo {
  background-color: #fff3cd;
  color: #856404;
}

.card-conteudo.vermelho {
  background-color: #f8d7da;
  color: #721c24;
}

.dataTables_filter {
  float: right;
  margin-bottom: 10px;
}

.dataTables_filter input {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 180px;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
}


.pagina-com-fundo {
  background-image: url("/static/images/background.27ae31eb098d.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Seção Hero */
.hero-section {
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  padding: 1.2rem 1rem;
}

/* Lado esquerdo */
.header-content {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.hero-section .logo {
  width: 50px;
  /* Ajuste no tamanho da logo */
  height: auto;
}

.hero-section h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: #fff;
}


.menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
}

.menu-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.menu-link {
  color: white;
  text-decoration: none;
}

.menu-link:hover {
  text-decoration: none;
  color: #ddd; /* Opcional: cor ao passar o mouse */
}

/* Evita quebra em telas menores */
@media (max-width: 768px) {
  .menu-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-list {
    flex-direction: column;
  }
}

/* Menu da esquerda (após logo e StationFlow) */
.menu-left {
  font-size:30;
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.2rem; /* espaçamento interno entre os itens do menu */
  margin-left: 2rem; /* espaço entre o título e o início do menu */
}

/* Lado direito */
.menu-right .menu-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 15px;
}

.link-home {
  color: white;
  text-decoration: none;
}

.link-home:hover {
  color: #ddd; /* Opcional: cor ao passar o mouse */
}


/* Título */
.dashboard-title {
  text-align: center;
  margin: 1rem 0;
  font-size: 1.5rem;
  color: #005f73;
}

/* Dashboard */
.dashboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.station-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 150px;
  height: 120px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.station-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.station-card.amarelo {
  background-color: #fffbe6;
  border-left: 5px solid #ffc107;
}

.station-card.amarelo:hover {
  background-color: #ffeeba;
}

.station-card.vermelho {
  background-color: #ffe6e6;
  border-left: 5px solid #dc3545;
}

.station-card.vermelho:hover {
  background-color: #f5c6cb;
}

.station-card .station-id {
  font-size: 1rem;
  font-weight: bold;
  color: #005f73;
  margin-bottom: 5px;
}

.station-card .station-name {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  margin: 5px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-card span:last-child {
  font-size: 0.85rem;
  color: #555;
  margin-top: 5px;
}

/* Barra inferior fixa no rodapé */
/* .bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #003845;
  color: #fff;
  padding: 0.5rem 0;
  text-align: center;
  border-top: 1px solid #94d2bd;
  z-index: 1000;
} */

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: #003845;
  color: #fff;
  border-top: 1px solid #94d2bd;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-size: 0.8rem;
}


.footer-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer-time {
  font-size: 0.7rem;
  font-style: italic;
}


/* CSS PARA TELA DE LOGIN*/
/* CSS PARA TELA DE LOGIN COM EFEITO ANIMADO */
/* Removido o estilo global do body para não impactar outras páginas */

.form-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: repeating-conic-gradient(from var(--a),
      #0171ba 0%,
      #0171ba 5%,
      transparent 5%,
      transparent 40%,
      #0171ba 50%);
  filter: drop-shadow(0 20px 60px rgba(1, 113, 186, 0.5));
  border-radius: 24px;
  animation: rotating 4s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
}

.form-wrapper:hover,
.form-wrapper.expanded {
  width: 450px;
  height: 520px;
}

.form-wrapper:hover .login,
.form-wrapper.expanded .login {
  inset: 6px;
}

.form-wrapper:hover .loginBx,
.form-wrapper.expanded .loginBx {
  gap: 15px; /* ADICIONADO */
  padding-top: 40px; /* MUDOU de 30px */
}

.form-wrapper:hover .login-logo,
.form-wrapper.expanded .login-logo {
  transform: translateY(-40px); /* MUDOU: sobe menos */
  margin-bottom: 20px; /* AUMENTOU de 10px */
}

.form-wrapper:hover .loginBx form,
.form-wrapper.expanded .loginBx form {
  transform: translateY(0px);
  opacity: 1;
  visibility: visible;
}

.loginBx {
  font-family: Poppins, sans-serif;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0; /* MUDOU de 20px para 0 */
  width: 80%;
  height: 100%; /* ADICIONADO */
  padding-top: 0;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  visibility: visible;
  opacity: 1;
  z-index: 10;
}

.loginBx form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(150px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-camp {
  font-family: Poppins, sans-serif;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  position: relative;
}

.form-camp-message {
  font-family: Poppins, sans-serif;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0171ba 0%, #27306c 100%);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(1, 113, 186, 0.4);
  max-width: fit-content;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}



/* Logo na tela de login */
.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  margin-top: 0;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(96px); /* MUDOU: começa mais abaixo */
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 20;
  flex-shrink: 0; /* ADICIONADO */
  left: -5px;
}

.login-logo img {
  max-width: 200px; /* REDUZIDO de 140px */
  height: auto;
  filter: drop-shadow(2px 2px 6px rgba(39, 48, 108, 0.3));
  display: block; /* ADICIONADO */
}

input {
  font-family: Poppins, sans-serif;
  width: 100%;
  justify-content: center;
  text-align: left;
  padding: 14px 24px;
  outline: none;
  border: none;
  font-size: 1em;
  color: #1a1a2e;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  max-width: 400px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input:focus {
  border-color: #0171ba;
  box-shadow: 0 4px 12px rgba(1, 113, 186, 0.15);
  transform: translateY(-2px);
}

input::placeholder {
  color: #999;
  font-weight: 400;
}

button {
  font-family: Poppins, sans-serif;
  background: linear-gradient(135deg, #0171ba 0%, #27306c 100%);
  text-align: center;
  justify-content: center;
  border: none;
  font-size: 1em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 14px 32px;
  width: 100%;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 20px rgba(1, 113, 186, 0.4);
}

input[type="submit"] {
  justify-content: center;
  background: linear-gradient(135deg, #0171ba 0%, #27306c 100%);
  border: none;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.4s ease;
}

button:hover,
input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(1, 113, 186, 0.7);
  background: linear-gradient(135deg, #27306c 0%, #0171ba 100%);
}

button:active,
input[type="submit"]:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(1, 113, 186, 0.5);
}

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotating {
  0% {
    --a: 0deg;
  }

  100% {
    --a: 360deg;
  }
}

.form-wrapper::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-conic-gradient(from var(--a),
      #27306c 0%,
      #27306c 5%,
      transparent 5%,
      transparent 40%,
      #27306c 50%);
  border-radius: 24px;
  animation: rotating 4s linear infinite;
  animation-delay: -1s;
}

.form-wrapper::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: linear-gradient(135deg, #0171ba 0%, #27306c 100%);
  border-radius: 18px;
  opacity: 0.15;
}

.login {
  position: absolute;
  inset: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
  color: #27306c;
  z-index: 1000;
  box-shadow: inset 0 2px 20px rgba(39, 48, 108, 0.08);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden; /* MUDOU DE visible PARA hidden */
  padding: 20px 0; /* ADICIONADO */
}

.login::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(1, 113, 186, 0.08) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

label {
  color: #fff;
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

.group {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.group a {
  color: #fff;
  text-decoration: none;
}

.group a:nth-child(2) {
  color: #8ffa8b;
  font-weight: 600;
}

header.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 20px;
  background-color: #2c3e50;
  color: #fff;
  border-bottom: 1px solid #94d2bd;
}


.logo {
  height: 40px;
  margin-right: 10px;
}

h1 {
  font-size: 24px;
  margin: 0;
}

.station-link {
  text-decoration: none;
  /* Remove a linha embaixo do link */
  color: inherit;
  /* Mantém a cor original do texto */
  display: block;
}

.station-card span {
  text-decoration: none;
  /* Garante que os textos dentro do card não tenham sublinhado */
  font-weight: bold;
  /* Opcional: Deixa o texto mais legível */
}





/* CSS PARA REMOVER BOTÃO DE MOSTRAR SENHA NATIVO DOS NAVEGADORES */
/* Remove o ícone padrão do campo de senha no Edge */
.no-default-eye::-ms-reveal,
.no-default-eye::-ms-clear {
    display: none;
}
/* Remove o ícone padrão do campo de senha no Chrome, Safari, Edge e Opera */
.no-default-eye {
    position: relative;
    padding-right: 40px; /* Garante que o seu ícone não sobreponha o texto */
}

/* Estilo adicional para o seu próprio ícone de olho */
.toggle-password {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

.toggle-password i {
  color: #999;
  font-size: 1.2em;
  transition: all 0.3s ease;
}

.toggle-password i:hover {
  color: #0171ba;
  transform: scale(1.1);
}

/* DAQUI PRA BAIXO SÂO ESTILOS DO DASHBOARD.HTML */
.checkbox-container {
  position: absolute;
  top: 65px;
  right: 20px;
  z-index: 999;
}

.checkbox-box {
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1d4ed8; /* azul elegante */
}

.checkbox-label {
  align-items: center;
  margin-bottom: 0px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #1f2937;
}

.titulo-centralizado {
  text-align: center;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.grafico-wrapper {
  width: 100%;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1px 18px 2px 1px;
  /* top: 8px, right: 16px, bottom: 8px, left: 4px */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

canvas {
  max-width: 100%;
  height: auto;
}

.paginacao a {
    margin: 0 10px;
    text-decoration: none;
    color: #004080;
    font-weight: bold;
}

.paginacao span {
    margin: 0 10px;
    font-weight: bold;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.filtro-dropdown {
    position: absolute;
    top: -50px;
    right: 60px;
    z-index: 999;
}

.botao-filtro {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 180px; /* Aumenta largura do botão */
    text-align: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 1000;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 200px;
    box-sizing: border-box;
}

.dropdown-content label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #000;
}

.dropdown-content input[type="checkbox"] {
    accent-color: #007bff; /* cor azul */
    width: 16px;
    height: 16px;
    margin: 0;
}

.show {
    display: block;
}

.dropdown-content button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.legenda-cards {
    position: fixed;
    bottom: 60px;
    left: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 998;
}

.legenda-cards div {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.cor-legenda {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 4px;
    border: 1px solid #999;
}

/* Cores específicas */
.cor-legenda.vermelho {
    background-color: #ff5c5c;
}

.cor-legenda.amarelo {
    background-color: #ffe066;
}

.cor-legenda.branco {
    background-color: #f9f9f9;
}
