/* --- Global & Layout --- */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f4f6f9; /* Clean, modern dashboard gray */
  color: #333;
  display: flex;
  flex-direction: column;
}

/* --- Header --- */
#top-header {
  background: #343a40; /* Professional dark header */
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#header-img-container {
  /* If you have a logo, limit its height */
  max-height: 50px;
}

#header-text h3 {
  margin: 0;
  margin-left: 15px;
  font-weight: 300;
  font-size: 1.5rem;
}

/* --- Main Content Area --- */
.container {
  flex: 1; /* Pushes footer down */
  padding-bottom: 60px; /* Space for footer */
}

/* --- Dashboard Cards --- */
.card {
  border: none;
  border-radius: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  background: #fff;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* --- Participant List --- */
.containerPidList {
  width: 100%;
  padding: 0 15px;
  margin-top: 20px;
}

/* Each participant is now a white "row card" */
.containerPid {
  background: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid transparent; /* reserved for status colors */
}

.containerPid:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.005);
}

.containerPidText p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c3e50;
}

.particpantsButtons {
  display: flex;
  gap: 10px; /* Space between buttons */
  align-items: center;
}

/* Remove old form margins so buttons align perfectly */
.particpantsButtons form {
  margin: 0;
}

/* --- Buttons (The Glow Effect) --- */
/* Cyan Button */
.fancy-button {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0fdeec, #00ffd6);
  border: none;
  color: #333;
  padding: 8px 20px; /* Slightly larger touch target */
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.fancy-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(135deg, #0fdeec, #00ffd6);
  border-radius: 8px;
  filter: blur(15px);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.fancy-button:hover {
  transform: translateY(-2px);
}

.fancy-button:hover::before {
  opacity: 1;
  transform: scale(1.05); /* Tighter glow */
}

/* Red Button */
.fancy-button-red {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
  border: none;
  color: #fff; /* White text looks better on red */
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.fancy-button-red::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
  border-radius: 8px;
  filter: blur(15px);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.fancy-button-red:hover {
  transform: translateY(-2px);
}

.fancy-button-red:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* --- Footer --- */
#footer {
  margin-top: auto; /* Sticky footer magic */
  background-color: #343a40;
  color: #868e96;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* --- Utilities --- */
#button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
}

.popupContainer .messages {
  background: #fff3cd;
  color: #856404;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px solid #ffeeba;
}

.containerQRCode {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}
.containerQRCode img {
  border: 10px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.request-btn {
  display: inline-flex; /* Keeps the button inline but enables flex alignment */
  align-items: center; /* Perfectly centers text and badge vertically */
  gap: 8px; /* Adds consistent space between text and badge */

  /* Your existing pill styling */
  padding: 5px 15px;
  border-radius: 50px;
  border: 1px solid #ccc;
  background: transparent;
  color: #fff;
}

.badge .badge-danger {
  background-color: #d9534f; /* Red color from your image */
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1; /* Prevents the badge from being taller than the text */
  top: 0 !important;
}
