* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: #0b0e14;
  color: #d4d9e0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  padding: 2rem;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a303a;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
header h1 {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}
header h1 span {
  color: #f0a030;
}
#server-count {
  background: #1f262f;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
section {
  background: #141a22;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #262e3a;
}
section h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #aab3c0;
}
#cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 400px;
  overflow-y: auto;
}
.server-card {
  background: #1a212a;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid #f0a030;
  transition: 0.2s;
}
.server-card:hover {
  background: #212a36;
}
.server-card .info {
  display: flex;
  flex-direction: column;
}
.server-card .hostname {
  font-weight: 600;
  color: #ecf0f5;
}
.server-card .addr {
  font-size: 0.8rem;
  color: #7a8799;
}
.server-card .players {
  font-size: 0.9rem;
  background: #2a3340;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}
.server-card .select-btn {
  background: #2a3a50;
  border: none;
  color: #d4d9e0;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.server-card .select-btn:hover {
  background: #3a4a60;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #8895a8;
  margin-bottom: 0.3rem;
}
.form-group select,
.form-group textarea {
  width: 100%;
  background: #0b0e14;
  border: 1px solid #2a303a;
  color: #d4d9e0;
  padding: 0.6rem;
  border-radius: 6px;
  font-family: 'Consolas', monospace;
  font-size: 0.9rem;
}
.form-group textarea {
  resize: vertical;
}
#send-command {
  background: #f0a030;
  color: #0b0e14;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
#send-command:hover {
  background: #e09020;
}
#command-feedback {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #8aa0b8;
}
#logs {
  grid-column: 1 / -1;
}
#log-output {
  background: #0b0e14;
  padding: 1rem;
  border-radius: 6px;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #b0c0d0;
  border: 1px solid #1f262f;
}
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  #logs {
    grid-column: 1;
  }
}