/* Estilos globais para modernizar o site e dar aparência de aplicativo */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #0c1323, #132b55);
  color: #f5f5f5;
  display: flex;
  justify-content: center;
}

/* Contêiner principal centralizado e com largura máxima típica de app móvel */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Cabeçalho com logotipo e título */
.app-header {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.app-header .logo {
  width: 140px;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 1.6rem;
  color: #00bfff;
  margin: 0;
}

/* Contêiner de cartões onde serão inseridos os botões */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  margin-top: 1rem;
}

/* Estilo dos cartões que representam cada switch */
.cards-container button {
  display: flex;
  align-items: center;
  /* Centraliza o conteúdo do botão (ícone + texto) */
  justify-content: center;
  background: #1e3a68;
  border-radius: 15px;
  border: none;
  padding: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.cards-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.cards-container button img {
  height: 36px;
  margin-right: 1rem;
}

/* Botão para alternar o console */
.console-toggle {
  margin-top: auto;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  background: #004b80;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}


/* Painel de console estilizado */
.console {
  margin-top: 1rem;
  background: #0e203e;
  padding: 1rem;
  border-radius: 10px;
  max-height: 150px;
  overflow-y: auto;
  font-family: monospace;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
  white-space: pre-wrap;
}

/* Classe para esconder o console inicialmente */
.hidden {
  display: none;
}

/* remove a grade antiga e adiciona canvas de rede como fundo */

/* Canvas ocupa toda a tela e fica atrás do conteúdo */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}
/* Botão de recarregar switches estilo ícone */
.reload-button {
  padding: 0.6rem;
  background-color: #004b80;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reload-button:hover {
  background-color: #0070c0;
}

.settings-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #00bfff;
  transition: transform 0.2s ease-in-out;
}

.settings-icon:hover {
  transform: rotate(30deg);
}
