body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(120deg, #e0f7ff, #f0f3ff);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.admin-container {
  width: 100%;
  max-width: 400px;
}

.admin-login-card,
.admin-upload-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

h2 {
  color: #1e3a8a;
  margin-bottom: 20px;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

button {
  background-color: #1d4ed8;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #2563eb;
}

.hidden {
  display: none;
}

#loginMessage, #uploadMessage {
  color: #1e3a8a;
  font-weight: 500;
  margin-top: 10px;
}

/* Uploaded Preview Grid */
.uploaded-content {
  margin-top: 30px;
  text-align: center;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.preview-item {
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.preview-item:hover {
  transform: scale(1.05);
}

.preview-item img, 
.preview-item video {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Zoom Modal */
.zoom-modal {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
}

.zoom-modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* 🧭 Admin Top Bar */
/* 🧭 Admin Top Bar (Fixed Header) */
.admin-header {
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px; /* Increased side padding */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-sizing: border-box;
}

/* Center title properly */
.admin-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  flex: 1; /* Ensures the title stays centered */
}

/* Buttons */
.nav-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

.nav-btn.logout {
  background-color: #ef4444;
}

.nav-btn.logout:hover {
  background-color: #dc2626;
}

/* Push content below header */
.admin-container {
  margin-top: 90px;
}
