body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #ffffff;
  padding: 0;
}

#filterModal .modal-textarea.large {
  width: 95%;
  min-height: 200px;
  max-height: 60vh;
  resize: vertical;
  font-size: 16px;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
  overflow: auto;
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.filter-controls button {
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 0.9em;
}

.hidden { display: none; }
.ignore-btn {
  background: none;
  color: red;
  border: none;
  cursor: pointer;
  margin-right: 6px;
}
.toggle-btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.95em;
}

.param {
  padding-left: 16px;
  font-size: 0.9em;
  color: #aaa;
}

h1 {
  text-align: center;
  font-size: 1.5em;
  margin: 1em 0 0.5em;
  color: #ffffff;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1em 0;
}

.tab {
  background: #1f1f1f;
  color: #fff;
  border: none;
  padding: 0.6em 1em;
  margin: 0.2em;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9em;
  transition: background 0.3s ease;
}

.tab.active,
.tab:hover {
  background: #333;
}

#searchInput {
  display: block;
  width: calc(100% - 2em);
  margin: 0 auto 1em;
  padding: 0.6em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  background-color: #222;
  color: #fff;
}

.logs {
  max-width: 100%;
  padding: 0 1em 2em;
  box-sizing: border-box;
}

.log-entry {
  background: #1a1a1a;
  margin-bottom: 1em;
  padding: 0.8em;
  border-radius: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  border-bottom: 1px solid #333; /* separator between entries */
}

.log-entry:last-child {
  border-bottom: none; /* no separator after last entry */
}

.log-row {
  margin-bottom: 0.3em;
  font-size: 0.95em;
  line-height: 1.4;
  border-bottom: none; /* remove any internal line */
  color: #fff;
}

.url {
  color: #ffffff;
  font-size: 0.95em; /* same size as other text */
  text-decoration: underline;
  word-break: break-word;
}

.clickable {
  cursor: pointer;
}

.no-data {
  text-align: center;
  margin-top: 2em;
  font-size: 1.1em;
  color: #888;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 90%;
  background-color: #1e1e1e;
  padding: 20px;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

.modal-content {
  position: relative;
}

.modal-textarea {
  width: 95%;
  min-height: 60px;
  max-height: 300px;
  background: #111;
  color: #fff;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
  font-family: monospace;
  resize: none;
  overflow-y: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
  display: block;
  margin: 0 auto;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.modal-buttons button,
.modal-buttons a {
  background-color: #333;
  color: white;
  padding: 6px 12px;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}

.modal-buttons button:hover,
.modal-buttons a:hover {
  background-color: #555;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 18px;
  cursor: pointer;
  background: #333;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Login */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-container form {
  background-color: #1a1a1a;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  width: 90%;
  max-width: 400px;
}

.login-container h2 {
  margin-bottom: 1em;
  text-align: center;
}

.login-container input[type="password"] {
  width: 100%;
  padding: 0.6em;
  margin-bottom: 1em;
  border: none;
  border-radius: 5px;
  background-color: #222;
  color: #fff;
  font-size: 1em;
}

.login-container button {
  width: 100%;
  padding: 0.6em;
  border: none;
  border-radius: 5px;
  background-color: #444;
  color: #fff;
  font-size: 1em;
}

.login-container .error {
  color: #ff6b6b;
  margin-bottom: 1em;
  text-align: center;
}