body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0f1a;
  color: white;
}

.header {
  text-align: center;
  padding: 30px 20px;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin-bottom: 10px;
}

h1 {
  margin: 0;
  font-size: 28px;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.card {
  background: #111827;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

select, textarea {
  width: 100%;
  margin-top: 5px;
  padding: 6px;
  border-radius: 6px;
  border: none;
  background: #1f2937;
  color: white;
}

button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #2563eb;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.menu a {
  color: cyan;
  text-decoration: none;
}

.hidden {
  display: none;
}

.center-title{
  text-align:center;
  margin-bottom:20px;
}

/* LOADING SPINNER */
.spinner {
  border: 4px solid #1f2937;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner {
  border: 4px solid #1f2937;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.admin-controls label {
  font-size: 0.95rem;
  opacity: 0.8;
}

.admin-controls select,
.admin-controls button {
  max-width: 220px;
}

#adminStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card,
.review-card {
  background: #111827;
  padding: 15px;
  border-radius: 12px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card b,
.review-card b {
  color: #f8fafc;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.review-card small {
  color: #94a3b8;
}

#adminReviews {
  margin-top: 10px;
}

.menu a.active {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .card,
  .review-card {
    flex-direction: column;
    align-items: stretch;
  }

  .card img {
    width: 60px;
    height: 60px;
  }
}
