/* Global styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #111;
  color: #CCC;
  font-family: Helvetica, sans-serif, Arial;
}

/* Custom scrollbar styles for terminal container */
#terminal-container {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 10px;
  background-color: #111;
  font-size: 14px;
  font-family: Consolas, monospace;
  margin-top: 60px; /* Compensa o header fixo */
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #555 #111;
}

#terminal-container::-webkit-scrollbar {
  width: 14px;
}

#terminal-container::-webkit-scrollbar-track {
  background: #111;
  border-radius: 10px;
}

#terminal-container::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

#terminal-container::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Custom scrollbar styles for .scrollbar se utilizado */
.scrollbar {
  margin-left: 30px;
  float: left;
  height: 300px;
  width: 65px;
  background: #111;
  overflow-y: scroll;
  margin-bottom: 25px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #111;
}

::-webkit-scrollbar {
  width: 12px;
  background-color: #111;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #222;
}

/* Header styling */
#header {
  width: 100%;
  height: 60px;  /* Altura fixa para o header */
  background: #222;
  display: flex;
  align-items: center;
  padding: 0 1%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 1;
}

#logo,
#logo img {
  width: 30%;
  float: left;
}

/* Caixa de opções do header */
#box-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

#rastreador {
  width: 150px; /* este valor pode ser sobrescrito pelo style inline no index.html */
  height: 30px;
  border: none;
  border-radius: 3px;
  margin-left: 7px;
}
#rastreador:focus {
  outline: none;
}

#linhas {
  width: 40px;
  height: 30px;
  border: none;
  border-radius: 3px;
  margin: 0 15px 0 5px;
  padding: 0;
  text-align: center;
}
#linhas:focus {
  outline: none;
}

#filter {
  width: 150px;
  height: 30px;
  border: none;
  border-radius: 3px;
  margin: 0 15px 0 5px;
  padding: 0 10px;
}
#filter:focus {
  outline: none;
}

/* Botões padrão */
#startstop, #executar, #autoscroll, #download, #clearLog, #openSniffer, #openlog {
  width: 120px;
  height: 30px;
  border: none;
  background: #FFF;
  color: #333;
  font-weight: bold;
  border-radius: 3px;
  font-family: Helvetica, sans-serif, Arial;
  font-size: 12px;
  cursor: pointer;
  margin-right: 10px;
}
#startstop { background: #FF0409; color: #FFF; }
#download { background: #4CAF50; color: #FFF; }

/* Container principal */
#container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Área dos logs já estilizada em #terminal-container acima */
#terminal-container:focus {
  outline: none;
}

/* Cada linha do terminal */
.terminal-line {
  width: 100%;
  height: auto;
}

/* Estilo do modal para criação de sniffer */
#snifferModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#snifferModal {
  background-color: #FFF;
  border-radius: 8px;
  padding: 20px;
  width: 350px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
}

#snifferModal h3 {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

#snifferModal label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#snifferModal input {
  width: 100%;
  margin-bottom: 10px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #CCC;
  border-radius: 3px;
}

#snifferModal .modal-buttons {
  text-align: right;
}

#snifferModal button {
  margin-left: 5px;
  width: 90px;
  height: 30px;
  border: none;
  background: #EEE;
  color: #333;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}
#snifferModal button:hover {
  background: #DDD;
}

#register {
  width: 50px;
  height: 30px;
  border-radius: 100px;
  border: none;
  margin: 0 30px 0 0;
  background: #FF0409;
  color: #FFF;
  font-weight: bold;
  border-radius: 3px;
  font-family: helvetica, sans-serif, arial;
  font-size: 12px;
  cursor: pointer;
} 
