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

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center; /* top section centered horizontally */
  padding: 20px;
}

/* Top container (title + buttons) */
.container {
  text-align: center;
  width: 90%;
  max-width: 800px;
}

/* Buttons */
.btns {
  margin-bottom: 20px;
}

button {
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #f1f1f1;
  transform: scale(1.05);
}

/* User container - horizontal row, 3 per line */
.user-container {
  display: flex;
  flex-wrap: wrap; /* wrap if screen is small */
  justify-content: center; /* center horizontally */
  gap: 20px; /* spacing between cards */
  width: 100%;
  max-width: 800px; /* max width for 3 cards */
  margin-top: 30px; /* separate from top section */
}

/* User cards */
.user-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 15px;
  width: 250px; /* fixed width for 3 cards in a row */
  transition: 0.3s;
  text-align: center;
}

.user-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.user-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.user-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.user-card p {
  font-size: 14px;
  color: #ddd;
  margin: 4px 0;
}

.user-card strong {
  color: #fff;
}

/* Loader overlay */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* hidden by default */
}

.loader:after {
  content: "";
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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