/* Tema preto com imagem de fundo */
body {
  background-color: #000000;
  background-image: url('../imagens/001.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #ffffff;
  font-family: Arial, sans-serif;
}

/* Ocultar informações de intervalo de IPs e próximo IP */
#ipRangeDisplay, #nextIpDisplay, #stats, #apiCredits {
  display: none;
}  
/* Estilos para links na tabela de resultados */
#resultsTable a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

#resultsTable a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Estilo para o container principal */
#app {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Estilos para cabeçalho */
header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

header h1 {
  color: #ffffff;
}

/* Estilos para controles e formulários */
.controls {
  background-color: rgba(20, 20, 20, 0.7);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

fieldset {
  border: 1px solid #333;
  border-radius: 5px;
  padding: 15px;
}

legend {
  color: #ffffff;
  padding: 0 10px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #cccccc;
}

input[type="text"],
input[type="number"],
input[type="range"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #222;
  color: #ffffff;
}

.form-help {
  color: #999;
  font-size: 0.8em;
  display: block;
  margin-top: 5px;
}

/* Estilos para informações do bloco CIDR */
.cidr-info {
  display: none;
  background-color: rgba(30, 30, 40, 0.8);
  border: 1px solid #3498db;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.cidr-info.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.cidr-info h3 {
  color: #3498db;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
  border-bottom: 1px solid #3498db;
  padding-bottom: 8px;
  text-align: center;
}

.cidr-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.cidr-info dt {
  color: #3498db;
  font-weight: bold;
  padding: 5px;
  background-color: rgba(20, 20, 30, 0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.cidr-info dd {
  margin: 0;
  padding: 5px 10px;
  background-color: rgba(40, 40, 50, 0.5);
  border-radius: 4px;
  color: #ffffff;
  font-family: monospace;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

/* Estilos para sugestão de quantidade de IPs */
#ipCountSuggestion {
  display: none;
  background-color: rgba(30, 30, 40, 0.8);
  border: 1px solid #3498db;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  color: #ffffff;
}

#ipCountSuggestion.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

#ipCountSuggestion button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin-left: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#ipCountSuggestion button:hover {
  background-color: #2980b9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilos para botões */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-button {
  background-color: #3498db;
  color: white;
}

.primary-button:hover {
  background-color: #2980b9;
}

.secondary-button {
  background-color: #555;
  color: white;
}

.secondary-button:hover {
  background-color: #666;
}

button:disabled {
  background-color: #555;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Estilos para tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: rgba(20, 20, 20, 0.7);
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  background-color: #222;
  color: #ffffff;
}

tr:hover {
  background-color: rgba(50, 50, 50, 0.5);
}

/* Estilos para barra de progresso */
#progressBarContainer {
  width: 100%;
  height: 5px;
  background-color: #222;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

#progressBar {
  height: 100%;
  background-color: #3498db;
  width: 0;
  transition: width 0.3s;
}

/* Estilos para seção de status */
.status-info {
  background-color: rgba(20, 20, 20, 0.7);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.status-message {
  color: #3498db;
}

.info-display, .stats-display {
  margin-top: 5px;
  color: #ccc;
}

/* Estilos para botões de navegação */
.nav-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #444;
}

.nav-btn:hover {
  background-color: rgba(50, 50, 50, 0.9);
}

/* Estilos para sugestões */
.suggestion-box {
  background-color: #222;
  border: 1px solid #444;
  border-radius: 4px;
  margin-top: 5px;
  max-height: 150px;
  overflow-y: auto;
}

/* Estilos para rodapé */
footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #333;
}

/* Responsividade */
@media (max-width: 768px) {
  #app {
    margin: 10px;
    padding: 15px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  button {
    width: 100%;
  }
  
  .cidr-info dl {
    grid-template-columns: 1fr;
  }
}
