* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #090d18;
  color: #e5e7eb;
  font-family: Arial, sans-serif;
}

.container {
  width: min(1100px, 94%);
  margin: 30px auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

h1 {
  margin-bottom: 5px;
}

h2 {
  margin-top: 0;
  font-size: 19px;
}

p {
  margin-top: 0;
  color: #94a3b8;
}

.card {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #263149;
  border-radius: 16px;
  background: #121827;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.row,
.buttons,
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header {
  justify-content: space-between;
}

input,
select,
button {
  padding: 11px 13px;
  border: 1px solid #35425e;
  border-radius: 10px;
  font: inherit;
}

input,
select {
  width: 100%;
  background: #090f1d;
  color: white;
}

button {
  cursor: pointer;
  background: #28344d;
  color: white;
}

button:hover {
  filter: brightness(1.15);
}

button.primary {
  background: #2563eb;
}

button.danger {
  background: #be3447;
}

button.danger-outline {
  border-color: #be3447;
  background: transparent;
}

.checkbox {
  display: block;
  margin: 18px 0;
}

.checkbox input {
  width: auto;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: bold;
}

.badge.online {
  background: #087a4c;
}

.badge.offline {
  background: #6a3039;
}

dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

dt {
  color: #94a3b8;
}

dd {
  margin: 0;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #090f1d;
}

.file-row small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
}

pre {
  min-height: 240px;
  max-height: 450px;
  padding: 15px;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 10px;
  background: #050914;
}

@media (max-width: 750px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .buttons {
    flex-wrap: wrap;
  }

  header {
    align-items: flex-start;
  }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions form {
  margin: 0;
}

.login-container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: min(430px, 100%);
}

.login-card form {
  display: grid;
  gap: 12px;
}

.login-card label {
  margin-top: 6px;
  color: #cbd5e1;
}

.login-button {
  width: 100%;
  margin-top: 12px;
}

.alert {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #be3447;
  border-radius: 10px;
  background: rgb(190 52 71 / 15%);
  color: #fecdd3;
}