* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e6ed;
}

header h1 {
  color: #2c3e50;
}

#auth-section {
  display: flex;
  gap: 10px;
}

#token-input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 200px;
}

#login-btn {
  padding: 8px 16px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#login-btn:hover {
  background: #2980b9;
}

.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

#refresh-btn {
  padding: 8px 16px;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#refresh-btn:hover {
  background: #27ae60;
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.world-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.world-card:hover {
  transform: translateY(-4px);
}

.thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #ecf0f1;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.2em;
}

.card-body p {
  color: #7f8c8d;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 15px 15px;
  color: #95a5a6;
  font-size: 0.9em;
}

.actions button {
  margin-left: 8px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.delete-btn {
  background: #e74c3c;
  color: white;
}

.delete-btn:hover {
  background: #c0392b;
}

.approve-btn {
  background: #3498db;
  color: white;
}

.approve-btn:hover {
  background: #2980b9;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

#status {
  color: #27ae60;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
  .worlds-grid {
    grid-template-columns: 1fr;
  }
  
  header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}