body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111317;
  color: #fff;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}
h1 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}
h2 {
  color: #aaa;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}
.tab {
  padding: 10px 20px;
  cursor: pointer;
  color: #888;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  transition: color 0.2s;
}
.tab.active {
  color: #fff;
  border-bottom: 2px solid #6366f1;
}
.card {
  background: #1c1c1e;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #333;
  margin-bottom: 20px;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
  flex-wrap: wrap;
}
.status-active {
  color: #10b981;
  font-weight: bold;
}
.status-inactive {
  color: #ff3b30;
  font-weight: bold;
}
button {
  background: #6366f1;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
  white-space: nowrap;
}
button:hover {
  background: #4f46e5;
}
.btn-danger {
  background: #ff3b30;
}
.btn-danger:hover {
  background: #c8281e;
}
pre {
  background: #000;
  padding: 15px;
  border-radius: 8px;
  color: #0f0;
  font-size: 12px;
  overflow-x: auto;
  max-height: 400px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 400px;
}
th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #333;
}
th {
  color: #888;
}
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111317;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 20px;
}
.login-box {
  background: #1c1c1e;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
}
.login-box input {
  padding: 12px;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #000;
  color: #fff;
  box-sizing: border-box;
}
.hidden {
  display: none;
}
.ascii-art {
  color: #6366f1;
  font-size: 10px;
  line-height: 1.2;
  overflow-x: auto;
  white-space: pre;
  padding: 10px;
  background: #000;
  border-radius: 8px;
  border: 1px solid #333;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #aaa;
  flex-wrap: wrap;
}
.filter-row input {
  cursor: pointer;
}
@media (max-width: 600px) {
  body {
    padding: 15px;
  }
  h1 {
    font-size: 20px;
  }
  .tabs {
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: none;
  }
  .tab {
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: none;
    background: #1c1c1e;
    border-radius: 8px;
    border: 1px solid #333;
  }
  .tab.active {
    border: 1px solid #6366f1;
    background: #6366f1;
    color: #fff;
  }
  .card {
    padding: 15px;
  }
  .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .header-row button {
    width: 100%;
    padding: 12px;
  }
  .login-box {
    padding: 30px 20px;
  }
}
