.admin-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}

#createRoom {
  width: 100%;
}

#createResult {
  word-break: break-word;
  overflow-wrap: anywhere;
}

#rooms {
  display: grid;
  gap: 12px;
}

.card + .card {
  margin-top: 16px;
}

.room-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #2f343d;
  border-radius: 10px;
  background: #151922;
}

.room-row small { color: #6b7280; }

button.ghost {
  background: transparent;
  color: #93c5fd;
  border: 1px solid #93c5fd;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0b2545;
  color: #93c5fd;
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
}

.room-actions {
  display: flex;
  gap: 8px;
}

.room-actions button {
  padding: 8px 10px;
  font-size: 12px;
}

.room-actions button:disabled {
  background: #1f2937;
  color: #9ca3af;
  border: 1px solid #374151;
  cursor: not-allowed;
  opacity: 0.75;
}

.room-actions button:disabled:hover {
  opacity: 0.75;
}

.error { color: #fca5a5; }

@media (max-width: 720px) {
  .admin-header {
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .grid button {
    width: 100%;
  }

  .room-row {
    grid-template-columns: 1fr;
  }

  .room-row > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .room-row > div:nth-child(1)::before { content: "Room"; font-size: 12px; color: #6b7280; }
  .room-row > div:nth-child(2)::before { content: "Language"; font-size: 12px; color: #6b7280; }
  .room-row > div:nth-child(3)::before { content: "Users"; font-size: 12px; color: #6b7280; }
  .room-row > div:nth-child(4)::before { content: "Updated"; font-size: 12px; color: #6b7280; }
  .room-row > div:nth-child(5)::before { content: "Created By"; font-size: 12px; color: #6b7280; }
  .room-row > div:nth-child(6)::before { content: "Actions"; font-size: 12px; color: #6b7280; }

  .room-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

