[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  font-family: system-ui, sans-serif;
}

main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 16px;
}

input,
button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
}

button {
  cursor: pointer;
  background: #2563eb;
  border: none;
}

#loginBox {
  display: grid;
  gap: 10px;
  max-width: 320px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th,
td {
  padding: 8px;
  border-bottom: 1px solid #334155;
  text-align: left;
}

.error {
  color: #f87171;
  min-height: 18px;
}

.online {
  color: #22c55e;
}

.offline {
  color: #94a3b8;
}

.expired td {
  color: #ef4444;
  font-weight: bold;
}
#sortControls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.sort-btn {
  background: #334155;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #475569;
}

.sort-btn.active {
  background: #2563eb;
  border-color: #2563eb;
}

.del-btn {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.del-btn:hover {
  background: #ef4444;
  color: #fff;
}
