* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0f0f0f;
  color: #ffffff;
}

header {
  background: #1c1c1c;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
}

.container {
  padding: 16px;
}

.card {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

img {
  width: 100%;
  border-radius: 8px;
  background: #000;
  display: block;
}

input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
  color: #fff;
  outline: none;
}

input:focus {
  border-color: #3b82f6;
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #3b82f6;
  color: white;
  cursor: pointer;
  width: 100%;
  font-weight: 500;
}

button:hover {
  background: #2563eb;
}

button.danger {
  background: #ef4444;
}

button.danger:hover {
  background: #dc2626;
}

.status {
  font-size: 12px;
  color: #aaa;
  margin-top: 6px;
}

.online {
  color: #22c55e;
  font-weight: bold;
}

.offline {
  color: #ef4444;
  font-weight: bold;
}

.center {
  max-width: 420px;
  margin: 60px auto;
}

.small {
  font-size: 12px;
  color: #888;
}

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