/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8f4ec;
  color: #333;
  line-height: 1.6;
  padding-bottom: 90px; /* Adjust based on footer height */
}

.container {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 📌 General Alert Box Styles */
.alert-box {
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  width: 80%;
  margin: 15px auto;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-width: 1px;
  border-style: solid;
}

/* 📌 Success Alert */
.alert-box.success {
  background-color: #4caf50; /* Softer green */
  color: #ffffff; /* White text */
  border-color: #3b8c40;
}

.alert-box.success::before {
  content: "✅ ";
  font-size: 16px;
  margin-right: 8px;
}

/* 📌 Error Alert */
.alert-box.error {
  background-color: #f8d7da; /* Light red background */
  color: #721c24; /* Dark red text */
  border-color: #dc3545; /* Red border */
}

.alert-box.error::before {
  content: "❌ ";
  font-size: 16px;
  margin-right: 8px;
}

/* 📌 Warning Alert */
.alert-box.warning {
  background-color: #fff3cd; /* Light yellow background */
  color: #856404; /* Dark yellow/brown text */
  border-color: #ffc107; /* Yellow border */
}

.alert-box.warning::before {
  content: "⚠️ ";
  font-size: 16px;
  margin-right: 8px;
}

/* 📌 Info Alert */
.alert-box.info {
  background-color: #f3f3f3; /* Light grey background */
  color: #333333; /* Darker grey text for readability */
  border-color: #ccc; /* Soft grey border */
}

.alert-box.info::before {
  content: "ℹ️ ";
  font-size: 16px;
  margin-right: 8px;
}

/* Celebration Ended Message - Festive theme */
.celebration-ended-message {
  text-align: center;
  margin: 30px auto;
  padding: 30px 20px;
  max-width: 700px;
  background: linear-gradient(135deg, #fff9e6 0%, #ffe9b3 100%);
  border: 2px solid #ffb84d;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.celebration-ended-message h2 {
  color: #d97706;
  font-size: 28px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.celebration-ended-message p {
  color: #92400e;
  font-size: 16px;
  line-height: 1.8;
  margin: 10px 0;
}

.celebration-ended-message p:first-of-type {
  font-size: 18px;
  font-weight: 600;
}

/* Wishlist Restriction Notice - Green theme */
.wishlist-restriction-notice {
  text-align: left;
  margin: 20px auto;
  max-width: 600px;
  background-color: #e8f5e9; /* Light green background */
  border-color: #4caf50; /* Green border */
}

.wishlist-restriction-notice p {
  margin: 8px 0;
  font-weight: normal;
  color: #2e7d32; /* Dark green text */
}

.wishlist-restriction-notice p:first-child {
  font-weight: bold;
  color: #1b5e20; /* Darker green for title */
}

/* Participants Comma-Separated List - Blue theme */
.participants-comma-list {
  background-color: #e3f2fd; /* Light blue background */
  border: 1px solid #2196f3; /* Blue border */
  border-radius: 5px;
  padding: 12px 15px;
  margin: 15px 0;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.participants-comma-list p {
  margin: 0;
  font-size: 14px;
  color: #0d47a1; /* Dark blue text */
  line-height: 1.6;
}

.participants-comma-list strong {
  color: #1565c0; /* Medium blue for emphasis */
}

/* 📌 Token Error Information Box */
.token-error-box {
  background: #f8f9fa;
  border-left: 4px solid #dc3545;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
  text-align: left;
}

.token-error-box h3 {
  margin-top: 0;
  color: #dc3545;
  font-size: 18px;
}

.token-error-box p {
  margin-bottom: 15px;
  color: #555;
}

.token-error-box p.section-title {
  margin: 15px 0 10px 0;
  font-weight: bold;
  color: #333;
}

.token-error-box ul {
  margin: 10px 0 15px 20px;
  color: #555;
}

.token-error-box ul li {
  margin: 8px 0;
}

.token-error-box ul:last-child {
  margin-bottom: 0;
}

.token-error-box a {
  color: #007bff;
  text-decoration: none;
}

.token-error-box a:hover {
  text-decoration: underline;
}

/* Error Navigation Links */
.error-navigation {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.error-navigation a {
  margin: 0 8px;
}

.error-navigation .separator {
  color: #ccc;
}

/* Header */
header {
  background-color: #990000; /* Sinterklaas rood */
  color: white;
  padding: 15px 20px;
  text-align: center;
}

header h1 a {
  text-decoration: none;
  color: white;
}

/* Navigation */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.nav-links a {
  padding: 10px 15px;
  background: #d6b883;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-links a.active {
  background: #4caf50;
  color: white;
}

.nav-links a:hover {
  background: #c09050;
}

/* Main Content Sections */
.section {
  padding: 20px;
  margin: 10px auto;
  background: white;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding-bottom: 60px;
}

.section ul {
  margin-left: 20px; /* Ensures bullet points align with text */
  padding-left: 20px; /* Ensures consistency with paragraph text */
}

.section ol {
  margin-left: 20px; /* Ensures numbers align with text */
  padding-left: 20px; /* Ensures consistency with paragraph text */
}

.section hr {
  border: 0;
  height: 1px;
  background: #ccc; /* Light separator between sections */
  margin: 30px 0;
}

/* Participants Buttons */
.participants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* action Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

/* Buttons */
.button {
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.button:hover {
  background: #c09050;
}

/* Disabled button styling */
.button:disabled {
  background: #d6d6d6 !important; /* Light gray background */
  color: #888 !important; /* Darker gray text */
  cursor: not-allowed !important; /* Show "not-allowed" cursor */
  opacity: 0.6;
}

/* Logged in user status indicator - positioned outside main menu */
.logged-in-status {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 6px 12px;
  font-size: 12px;
  text-align: center;
  margin: 8px auto;
  border-radius: 15px;
  max-width: 300px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logged-in-status .settings-icon {
  color: #666;
  transition: color 0.2s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
}

.logged-in-status .settings-icon:hover {
  color: #c82333;
  transform: rotate(20deg);
  background-color: rgba(200, 35, 51, 0.1);
}

.logged-in-status .icon-gear {
  width: 20px;
  height: 20px;
  display: inline-block;
  fill: currentColor;
}

.badge {
  background-color: red;
  color: white;
  padding: 3px 6px;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 5px;
}

/* Light Buttons - Dark Text for Readability */
.button,
.button.light {
  background: #d6b883; /* Light brown/gold */
  color: #000; /* Dark text for contrast */
}

/* High Priority (Green) */
.button.active {
  background: #4caf50;
  color: white;
}

/* Name Drawn (Red) */
.button.drawn {
  background: #e31313;
  color: white;
}

/* Logout Button */
.button.default {
  background: #6c757d; /* Gray background for better UX */
  color: white;
}

.button.default:hover {
  background: #5a6268; /* Darker gray on hover */
}

/* Logout section styling for invitation decline page */
.logout-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.logout-section p {
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.logout-section .button {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: bold;
}

/* Ensure proper spacing in invitation box when used for decline message */
.invitation-box .alert-box {
  margin: 0 0 20px 0; /* Remove auto centering within the box */
  width: 100%; /* Take full width of parent */
}

/* Bought Button */
.button.bought {
  background: #ff9800;
  color: white;
  width: 80px; /* Adjust width dynamically */
  margin: 2px 5px; /* Add spacing between buttons */
  padding: 8px 5px; /* Adjust padding for better spacing */
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

.button.bought:hover {
  background: #f57c00;
}

/* Copied Button - for "Al gekopieerd" indication */
.button.copied {
  background: #ff9800;
  color: white;
  width: auto; /* Auto width to fit text */
  min-width: 80px; /* Minimum width for consistency */
  margin: 2px 5px; /* Add spacing between buttons */
  padding: 8px 12px; /* Adjust padding for better spacing */
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: default; /* Not clickable */
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping */
}

/* === Groep Beheren Collapsible (Fixed to Overlay) === */

.group-manage-container,
.group-user-container {
  display: inline-block;
  position: relative; /* Needed for absolute positioning */
}

/* Button Styling */
.group-manage-button,
.group-user-button {
  background-color: #d6b883; /* Darker gold */
  color: #000;
  cursor: pointer;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  text-align: left;
  width: 100%;
  font-size: 14px;
  transition: background 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10; /* Ensure it's above other elements */
}

.group-manage-button:hover,
.group-user-button:hover {
  background: #c09050;
}

/* Active button */
.group-manage-button.active,
.group-user-button.active {
  background-color: #c09050;
}

/* Dropdown Icon */
.group-manage-button::after,
.group-user-button::after {
  content: "▼";
  color: #4caf50;
  font-size: 12px;
  margin-left: auto;
  transition: transform 0.3s;
}

/* Rotate dropdown icon when active */
.group-manage-button.active::after,
.group-user-button.active::after {
  transform: rotate(180deg);
}

/* DROPDOWN MENU */
.group-manage-content,
.group-user-content {
  position: absolute; /* ✅ Ensures overlay effect */
  top: 100%; /* ✅ Positions below the button */
  left: 0;
  width: 200px; /* Adjust as needed */
  margin-top: 5px;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  background: #f8e4c2; /* Light beige */
  border-radius: 4px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
  z-index: 999; /* ✅ Ensures it's above other elements */
}

/* Show the dropdown */
.group-manage-content.show,
.group-user-content.show {
  max-height: 500px;
  opacity: 1;
  padding: 10px;
}

/* Menu buttons */
.group-manage-content button,
.group-user-content button {
  width: 100%;
  background-color: transparent;
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
  color: #000;
}

/* Hover effect */
.group-manage-content button:hover,
.group-user-content button:hover {
  background-color: #e0c097;
}

/* Styling the "Geselecteerde groep" button */
.group-selection-button {
  background-color: #d6b883; /* Darker gold */
  color: #000;
  cursor: pointer;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  text-align: left;
  width: 100%;
  font-size: 14px;
  transition: background 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10; /* Ensure it's above other elements */
}

.group-selection-button:hover {
  background: #c09050;
}

/* Active state for button */
.group-selection-button.active {
  background-color: #c09050; /* Even darker gold */
}

/* Styling for the dropdown icon */
.group-selection-button::after {
  content: "▼";
  color: #4caf50;
  font-size: 12px;
  margin-left: auto;
  transition: transform 0.3s;
}

/* Rotate dropdown icon when active */
.group-selection-button.active::after {
  transform: rotate(180deg);
}

/* Show content when active */
.collapsible.active + .content {
  max-height: 200px;
}

.form-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

input,
textarea,
select {
  padding: 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Footer */
.footer {
  background-color: #990000; /* Sinterklaas rood */
  color: white;
  text-align: center;
  padding: 1em 0;
  width: 100%;
  font-size: 14px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20; /* Ensure footer stays above other elements */
}

/* Message Count Styling */
.message-info {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: bold;
  color: #444;
}

/* Inbox Section */
.inbox-section {
  margin-top: 20px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.message-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #990000;
}

.message-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
}

.message-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  justify-content: flex-end;
}

.delete-form {
  margin: 0;
  display: inline-block;
}

.delete-button {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 1;
  min-width: 28px;
  height: 28px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Segoe UI Symbol", sans-serif;
}

.delete-button:hover {
  color: #a71e2a;
  background-color: rgba(220, 53, 69, 0.1);
  transform: scale(1.1);
}

.read-status {
  color: #28a745;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-right: 8px;
  font-weight: 500;
}

.reply-button {
  text-decoration: none;
  color: #007bff;
  font-size: 1.2rem;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Segoe UI Symbol", sans-serif;
}

.reply-button:hover {
  color: #0056b3;
  background-color: rgba(0, 123, 255, 0.1);
  transform: scale(1.1);
}

.new-label {
  background-color: red;
  border-radius: 15px;
  color: white;
  font-size: 14px;
  padding: 5px 10px;
  margin-bottom: 5px;
}

/* Message Form Styling */
.message-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.radio-group {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 8px; /* Space between radio options */
  margin-top: 15px; /* Space after the previous form field */
  margin-bottom: 15px; /* Space before the next form field */
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between radio button and label text */
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: 18px; /* Slightly larger for better visibility */
  height: 18px;
  margin: 0; /* Remove default margin */
  flex-shrink: 0; /* Prevent radio button from shrinking */
  cursor: pointer;
}

/* Anonymous message checkbox */
#anonymous-checkbox-container {
  margin-top: 20px;
  margin-bottom: 15px;
}

#anonymous-checkbox-container label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
}

#anonymous-checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

#anonymous-checkbox-container label span {
  font-size: 1em;
}

#anonymous-checkbox-container p {
  font-size: 0.85em;
  color: #666;
  margin: 8px 0 0 28px;
  line-height: 1.4;
}

select,
input,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/*message popup*/

.close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.close:hover {
  color: #dc3545;
}

/* end message popup*/

/* Pagination Styling */
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination-button,
.pagination-active {
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
}

.pagination-button {
  background: #007bff;
  color: white;
  transition: background 0.3s;
}

.pagination-button:hover {
  background: #0056b3;
}

.pagination-active {
  background: #ddd;
  font-weight: bold;
  color: black;
}

/* Wishlist Selection Section */
.wishlist-selection {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-top: 20px;
}

.wishlist-selection h2 {
  font-size: 20px;
  color: #4caf50;
  margin-bottom: 10px;
}

/* Draw Status Indicator */
.draw-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px auto;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.draw-status-complete {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.draw-status-pending {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-icon {
  font-size: 16px;
  font-weight: normal;
}

.status-text {
  font-size: 14px;
}

.wishlist-selection-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.wishlist-user,
.wishlist-participants,
.wishlist-actions {
  display: flex;
  gap: 10px;
}

.user,
.active-user,
.selected-user {
  background: #d6b883;
  color: black;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.active-user {
  background: #c09050;
  font-weight: bold;
}

/* Draw Section */
.draw-section {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e8 100%);
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
  text-align: center;
}

.draw-section h3 {
  color: #4caf50;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: bold;
}

.draw-section p {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.draw-section form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.draw-section .accept-button {
  background-color: #4caf50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.draw-section .accept-button:hover {
  background-color: #45a049;
}

.draw-section .decline-button {
  background-color: #ff6b6b;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.draw-section .decline-button:hover {
  background-color: #ff5252;
}

/* Wishlist Section Styling - Responsive Card Layout */
.wishlist-section {
  background-color: #f9f9f9; /* Light gray background */
  border: 1px solid #ccc; /* Light border */
  border-radius: 8px;
  padding: 20px;
  margin: 20px;
  /* max-width: 600px; Keep it responsive */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.wishlist-section h4 {
  font-size: 20px;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

.wishlist-section h2 {
  font-size: 20px;
  color: #4caf50;
  margin-bottom: 10px;
  text-align: center;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 10px;
  padding: 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.wishlist-card {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 320px;
}

.wishlist-card .priority {
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 15px;
  width: 100%;
  text-align: center;
  display: block;
  word-wrap: break-word;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.high-priority {
  background-color: #d68900;
  color: white;
}

.medium-priority {
  background-color: #d6a650;
}

.low-priority {
  background-color: #d6b883;
}

.no-priority {
  background-color: #c6c6c6;
}

.wishlist-card p {
  margin: 5px 0;
  font-size: 14px;
  width: 100%;
  text-align: center;
}

.wishlist-card > p:nth-of-type(1) {
  min-height: 60px;
  flex-grow: 0;
}

.wishlist-card > p:nth-of-type(2),
.wishlist-card > p:nth-of-type(3) {
  min-height: 22px;
}

.wishlist-card a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  margin: 8px 0;
  display: inline-block;
  min-height: 24px;
}

.wishlist-card > a:not(.anonymous-question) {
  margin-bottom: 10px;
}

.wishlist-card form {
  width: 100%;
  margin: 3px 0;
  display: flex;
  justify-content: center;
}

.wishlist-card > form:first-of-type {
  margin-top: auto;
}

.wishlist-card form button {
  width: 100%;
  max-width: 200px;
}

.wishlist-card .anonymous-question {
  width: 100%;
  text-align: center;
  display: block;
  margin-top: 8px;
}

.wishlist-card td {
  width: 100%;
  text-align: center;
  display: block;
}

.wishlist-card td form {
  margin-top: 3px;
}

.anonymous-question {
  display: block;
  margin-top: 5px;
  color: #007bff;
  text-decoration: underline;
  font-size: 14px;
}

/* Last Wishes Cards - Simplified cards for "Laatste toegevoegde wensen" section */
.last-wish-card {
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 180px;
}

.last-wish-card p {
  margin: 5px 0;
  font-size: 14px;
  width: 100%;
  text-align: center;
}

.last-wish-card form {
  width: 100%;
  margin: 8px 0;
  display: flex;
  justify-content: center;
}

.last-wish-card form button {
  width: 100%;
  max-width: 200px;
}

/* Participant List */
.participant-list {
  background-color: #f9f9f9; /* Light gray background */
  border: 1px solid #ccc; /* Light border */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  width: 90%;
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.participant-card {
  background-color: #f0e6d2;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* 📌 Exclusions Form Container */
.user-management-form {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  width: 90%;
}

/* User Management */
.user-management {
  display: flex;
  gap: 10px;
  justify-content: center;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.user-management h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.user-management-buttons {
  margin-bottom: 10px;
  text-align: center;
}

.user-management-buttons .button {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  padding: 8px 5px; /* Match Bewerk/Verwijder button padding */
  border: none;
  border-radius: 4px;
  text-align: left;
  width: 100%;
  font-size: 14px; /* Match Bewerk/Verwijder button font size */
  transition: background 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-sizing: border-box; /* Include padding and border in height calculation */
  line-height: 1.2; /* Consistent line height for text and emojis */
}

.user-management-buttons .button:hover {
  background: #0056b3;
}

/* Disabled state for user management buttons */
.user-management-buttons .button:disabled {
  background: #d6d6d6 !important; /* Light gray background */
  color: #888 !important; /* Darker gray text */
  cursor: not-allowed !important; /* Show "not-allowed" cursor */
  opacity: 0.6;
}

.user-management-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  /* margin-top: 10px; */
}

/* Center the toggle on the page */
.archive-toggle-container {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Aligns vertically */
  /* height: 100vh; Full viewport height for vertical centering */
}

/* Popup CSS */

/* Modal container */

/* ✅ Darkened background overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 999; /* Below the modal, above everything else */
  display: none;
}

.modal {
  display: none; /* Hide modal by default */
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  background: white;
  padding: 0px;
  border-radius: 8px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

/* Modal content */
.modal-content {
  background: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 5px;
  width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.close-button {
  background: none;
  border: none;
  color: #ff0000; /* Red color */
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  font-weight: bold;
}

.close-button:hover {
  text-decoration: underline;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Form Styling */
.modal-content form {
  text-align: left;
}

.modal-content .form-group {
  display: block;
  margin-bottom: 20px;
}

.modal-content .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  text-align: left;
}

.modal-content .form-group input[type="text"],
.modal-content .form-group input[type="date"],
.modal-content .form-group textarea,
.modal-content .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.modal-content .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-content .form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  line-height: 1.4;
}

/* Modal Button Styling */
.modal-content button {
  display: block;
  margin: 10px auto;
  min-width: 120px;
}

.modal-content .save-button {
  margin-top: 20px;
}

.modal-content .remove-button {
  margin-bottom: 10px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Rounded slider */
.slider.round {
  border-radius: 34px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Active (checked) state */
input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

/* Toggle Label Styling */
#toggleLabel {
  font-weight: bold;
  margin-left: 10px;
  color: #333;
}

/* Tooltip icon styling */
.tooltip-icon {
  cursor: pointer;
  font-size: 16px;
  color: #555;
  margin-left: 8px;
}

.tooltip-icon:hover {
  color: #222;
}

/* Toast Notification Styling */
.toast {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  bottom: 100px;
  right: 10px;
  z-index: 9999;
}

.toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-weight: bold;
  color: #990000;
}

.toast-body {
  background-color: #ddd;
  padding: 10px;
  border-radius: 4px;
}

/* 📌 Exclusions Form Container */
#exclusions-form,
#edit-wish-form {
  background-color: #f9f9f9; /* Light gray background */
  border: 1px solid #ccc; /* Light border */
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  width: 80%;
  max-width: 600px; /* Keep it responsive */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* 📌 Form Headings */
#exclusions-form h2,
#edit-wish-form h2 {
  color: #333;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

/* 📌 Form Labels */
#exclusions-form label,
#edit-wish-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0px;
  color: #555;
}

/* 📌 Center the Title */
.exclusions-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* 📌 Styled Table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.styled-table th {
  background: #d6b883;
  color: white;
  font-weight: bold;
  text-align: left;
  padding: 10px;
}

.styled-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* 📌 Alternate Row Colors */
.styled-table tr:nth-child(even) {
  background: #f2f2f2;
}

/* 📌 Exclusion Select */
.exclusion-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* 📌 Button Container */
.button-container {
  text-align: center; /* Center the buttons */
}

/* 📌 Save Button */
.save-button {
  background: #4caf50;
  color: white;
  font-size: 16px;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 20px auto;
  text-align: center;
}

.save-button:hover {
  background: #45a049;
}

/* 📌 Shared Button Styles */
.edit-button,
.remove-button,
.renew-button {
  display: inline-block; /* Align buttons in a row */
  width: 80px; /* Adjust width dynamically */
  margin: 2px 5px; /* Add spacing between buttons */
  padding: 8px 5px; /* Adjust padding for better spacing */
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

/* ✅ Disabled Button Style */
.remove-button[disabled] {
  background: #d6d6d6; /* Light gray */
  color: #888; /* Darker gray text */
  cursor: not-allowed; /* Show "not-allowed" cursor */
  opacity: 0.6;
}

.edit-button[disabled] {
  background: #d6d6d6;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 📌 Edit Button */
.edit-button {
  background: #007bff;
  color: white;
}

.edit-button:hover {
  background: #0056b3;
}

/* 📌 Remove Button */
.remove-button {
  background: #c21b1b;
  color: white;
}

.remove-button:hover {
  background: #970d0d;
}

/* 📌 Renew Button */
.renew-button {
  background: #4caf50;
  color: white;
}

.renew-button:hover {
  background: #388e3c;
}

/* Default button styling */
.send-reminder-button {
  background-color: #457bd2; /* Normal state */
  color: white;
  font-size: 14px;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Hover effect */
.send-reminder-button:hover {
  background-color: #3063b4;
}

/* Disabled button styling */
.send-reminder-button:disabled {
  background-color: #b0b0b0 !important; /* Gray background */
  color: #6e6e6e !important; /* Light gray text */
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* Checkbox alignment */
.consent-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.consent-container label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.consent-container input {
  margin-right: 8px;
}

.consent-container a {
  color: #007bff;
  text-decoration: none;
}

.consent-container a:hover {
  text-decoration: underline;
}

/* password reset styles */
.password-requirements {
  list-style: none;
  padding: 0;
  color: red;
}

.password-requirements li.valid {
  color: green;
  font-weight: bold;
}

/* Password container with eye icon */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  flex-grow: 1;
}

.password-container .toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  color: #666;
}

.toggle-password:hover {
  color: #333;
}

/* Center the login container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: calc(100vh - 120px); Adjust based on header height */
  margin-top: 40px; /* Space below the header */
  padding-bottom: 50px; /* Ensures spacing at bottom */
}

/* Login box styling */
.login-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Navigation tabs */
.nav-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.nav-tabs a {
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 10px;
  color: #666;
  transition: color 0.3s ease-in-out;
  white-space: nowrap;
}

.nav-tabs a.active {
  color: #007bff; /* Active tab color */
  border-bottom: 2px solid #007bff;
}

/* Input fields */
.login-box input[type="text"],
.login-box input[type="password"] {
  width: calc(100% - 40px);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  background: #f8f4ec;
  color: #333;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s ease-in-out;
}

/* Input focus effect */
.login-box input:focus {
  border-color: #007bff;
  outline: none;
}

/* Buttons */
.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
  transition: background 0.3s ease-in-out;
}

/* Button hover effect */
.login-box button:hover {
  background-color: #0056b3;
}

/* Styled register link */
.register-link {
  display: block;
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Forgot password link */
.forgot-password {
  display: block;
  margin-top: 15px;
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Info link for landing page */
.info-link {
  display: block;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  text-align: center;
  color: #666;
}

.info-link a {
  color: #990000;
  text-decoration: none;
  font-weight: bold;
}

.info-link a:hover {
  text-decoration: underline;
}

/* Cloudflare Turnstile widget spacing */
.cf-turnstile {
  margin-top: 15px;
}

/* Center the registration form */
.register-container,
.invitation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px; /* Space below header */
  padding-bottom: 50px; /* Space at bottom */
}

/* Registration box (same as login-box) */
.register-box,
.invitation-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Make labels visible */
.register-box label,
.invitation-box label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333; /* Ensures dark text */
  margin-top: 10px;
}

/* Input fields */
.register-box input[type="text"],
.register-box input[type="email"],
.register-box input[type="password"] {
  width: calc(100% - 40px);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  background: #f8f4ec;
  color: #333;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s ease-in-out;
}

/* Input focus effect */
.register-box input:focus {
  border-color: #007bff;
  outline: none;
}

/* Buttons */
.register-box button,
.invitation-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
  transition: background 0.3s ease-in-out;
}

/* Button hover effect */
.register-box button:hover,
.invitation-box button:hover {
  background-color: #0056b3;
}

/* Contact form - extends login-box styling */
.contact-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-box input[type="text"],
.contact-box input[type="email"],
.contact-box textarea {
  width: calc(100% - 40px);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  background: #f8f4ec;
  color: #333;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s ease-in-out;
}

.contact-box textarea {
  resize: vertical;
  font-family: inherit;
  min-height: 150px;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: #007bff;
  outline: none;
}

.contact-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
  transition: background 0.3s ease-in-out;
}

.contact-box button:hover {
  background-color: #0056b3;
}

.contact-box label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

/* Accept button (green) */
.invitation-box .accept-button {
  background-color: #4caf50;
  color: white;
}

/* Decline button (red) */
.invitation-box .decline-button {
  background-color: #f44336;
  color: white;
}

/* Accept button (green) */
.accept-button {
  background-color: #4caf50;
  color: white;
}

/* Decline button (red) */
.decline-button {
  background-color: #f44336;
  color: white;
}

/* 📌 Responsive Adjustments */
@media (max-width: 768px) {
  #exclusions-form,
  #edit-wish-form {
    width: 95%;
  }
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-bottom: 120px; /* Extra padding on mobile for footer */
  }

  /* Show hamburger menu on mobile */
  .hamburger {
    display: flex;
  }

  /* Hide main menu by default on mobile */
  .actions {
    display: none;
    flex-direction: column !important;
    gap: 8px;
    margin-bottom: 15px;
    background: rgba(153, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  /* Show main menu when active */
  .actions.mobile-menu-open {
    display: flex !important;
  }

  .actions .button,
  .actions button {
    width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
    text-align: center !important;
    margin-bottom: 5px;
    border: none;
    background: #d6b883 !important;
    color: #000 !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .actions .button:hover,
  .actions button:hover {
    background: #c09050 !important;
  }

  .participants-table {
    display: block;
    text-align: center;
  }

  .wishlist-table th,
  .wishlist-table td {
    font-size: 14px;
    padding: 8px;
  }

  .form-group {
    flex-direction: column;
  }

  .participants {
    flex-direction: column;
    align-items: stretch;
  }

  .user-management {
    flex-direction: column; /* Stack buttons */
    align-items: center;
  }

  .user-management-buttons {
    width: 100%; /* Full width on small screens */
  }

  .user-management-buttons button {
    font-size: 14px; /* Adjust font for smaller screens */
    padding: 10px; /* Adjust padding for better fit */
  }

  /* Mobile-friendly wishlist selection */
  .wishlist-selection {
    margin-top: 80px; /* Account for hamburger menu */
  }

  .wishlist-selection-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .wishlist-user,
  .wishlist-participants,
  .wishlist-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .wishlist-participants {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 8px;
  }

  .user,
  .active-user,
  .selected-user,
  .wishlist-button {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Make wishlist selection header more compact */
  .wishlist-selection h2 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.3;
  }
}

/* Celebration Info Styles */
.celebration-info {
  background-color: #f0f8ff;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.celebration-info h3 {
  margin: 0 0 8px 0;
  color: #2e7d32;
  font-size: 18px;
}

.celebration-icon {
  margin-right: 8px;
  font-size: 20px;
}

.celebration-date {
  font-weight: bold;
  color: #1976d2;
  margin: 5px 0;
}

.celebration-description {
  font-style: italic;
  color: #555;
  margin: 10px 0 0 0;
}

/* Inline celebration info for group info section */
.celebration-info-inline {
  background-color: #f0f8ff;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.celebration-info-inline h3 {
  margin: 0 0 8px 0;
  color: #2e7d32;
  font-size: 18px;
}

.celebration-info-inline .celebration-date {
  font-weight: bold;
  color: #1976d2;
  margin: 5px 0;
}

.celebration-info-inline .celebration-description {
  font-style: italic;
  color: #555;
  margin: 10px 0 0 0;
}

/* Group info section styling */
.group-info-section {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
}

.group-info-section .group-text {
  margin-top: 10px;
}

.group-info-section .group-text h4 {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Draw status container - centered */
.draw-status-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.draw-info-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 10px;
  text-align: center;
  font-size: 16px;
}

.draw-info-message p {
  margin: 0;
}

.draw-info-message strong {
  color: #0d4419;
  font-weight: bold;
}

.no-celebration-info {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.no-celebration-info-inline {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.no-celebration-info .warning,
.no-celebration-info-inline .warning {
  color: #856404;
  margin: 0;
  font-weight: bold;
}

/* Admin Celebrations Page Styles */
.celebration-list {
  background-color: #f9f9f9; /* Light gray background */
  border: 1px solid #ccc; /* Light border */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  width: 90%;
}

.celebration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.celebration-card {
  background-color: #f0e6d2;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.celebration-card.active {
  border-color: #4caf50;
  background-color: #f0fff0;
}

.celebration-card h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.celebration-card .active-badge {
  background-color: #4caf50;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: normal;
  margin-left: 8px;
}

.celebration-card p {
  margin: 8px 0;
  font-size: 14px;
}

.celebration-card .celebration-description {
  font-style: italic;
  color: #666;
  margin: 10px 0;
}

.celebration-card .draw-status {
  font-size: 14px;
  margin: 10px 0 20px 0;
  padding: 10px 15px;
  border-radius: 6px;
  background-color: #e8f5e8;
  text-align: center;
  display: inline-block;
  color: #2e7d32;
  font-weight: 500;
  min-width: 220px;
}

.celebration-card .draw-status.pending {
  background-color: #fff3e0;
  color: #f57c00;
}

.celebration-card .draw-status .status-icon {
  margin-right: 5px;
  font-weight: bold;
}

.celebration-card .button-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.celebration-card .button-container .button-form {
  display: flex;
  margin: 0;
  padding: 0;
}

.celebration-card .button-container form {
  display: flex;
  margin: 0;
  padding: 0;
}

.celebration-card .button-container .button-form button,
.celebration-card .button-container button {
  min-width: 120px;
  height: 40px;
  font-size: 14px;
  padding: 8px 16px;
  white-space: nowrap;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
}

.celebration-card .button-container .save-button {
  background-color: #4caf50 !important;
  color: white !important;
}

.celebration-card .button-container .edit-button {
  background-color: #2196f3 !important;
  color: white !important;
}

/* Centered form section for adding celebrations */
.add-celebration-section {
  margin: 40px 0;
  padding: 20px 0;
}

.add-celebration-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.add-celebration-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

.add-celebration-box h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.add-celebration-box .form-group {
  margin-bottom: 15px;
}

.add-celebration-box .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.add-celebration-box .form-group input[type="text"],
.add-celebration-box .form-group input[type="date"],
.add-celebration-box .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.add-celebration-box .form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.add-celebration-box .save-button {
  width: 100%;
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.add-celebration-box .save-button:hover {
  background-color: #45a049;
}

.celebration-form {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
}

.celebration-form .form-group {
  margin-bottom: 15px;
}

.celebration-form .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.celebration-form .form-group input[type="text"],
.celebration-form .form-group input[type="date"],
.celebration-form .form-group textarea,
.celebration-form .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.celebration-form .form-group textarea {
  resize: vertical;
}

.celebration-form .form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  line-height: 1.4;
}

.draw-status .status-icon {
  margin-right: 8px;
  font-size: 16px;
  font-weight: bold;
}

.draw-status .status-text {
  font-weight: 500;
}

.celebration-card .button-container {
  margin-top: 0;
}

.celebration-card > *:not(:last-child) {
  margin-bottom: 10px;
}

/* Past Draws View Page Styles */
#past-draws-info-form,
#past-draws-table-form {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
}

#past-draws-info-form h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  border-bottom: 2px solid #d6b883;
  padding-bottom: 10px;
}

#past-draws-info-form p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.confirmation-box {
  text-align: center;
  background-color: #fff3e0; /* Light orange background */
  border: 2px solid #ffb74d; /* Orange border */
}

.confirmation-box h3 {
  color: #f57c00;
  margin-bottom: 15px;
}

.confirmation-box p {
  margin: 15px 0;
  line-height: 1.6;
  color: #5d4037; /* Darker text for better readability */
}

.confirmation-checkbox {
  margin: 30px 0;
  text-align: center;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.confirmation-checkbox label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.confirmation-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.cancel-button {
  background-color: #dc3545;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.cancel-button:hover {
  background-color: #c82333;
}

.draws-title {
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #d6b883;
  color: #333;
  font-size: 20px;
}

.arrow-column {
  text-align: center;
  width: 50px;
  font-size: 18px;
  color: #d6b883;
  font-weight: bold;
}

.back-button {
  background-color: #2196f3;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin: 20px auto;
  font-size: 16px;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #0b7dda;
}

/* FAQ Page Styles */
.faq-navigation {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.faq-nav-link {
  display: inline-block;
  margin: 5px 10px;
  padding: 8px 16px;
  background-color: #4caf50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.faq-nav-link:hover {
  background-color: #45a049;
}

.faq-item {
  margin: 20px 0;
  padding: 15px;
  border-left: 4px solid #4caf50;
  background-color: #f9f9f9;
  border-radius: 0 8px 8px 0;
}

.faq-item h3 {
  color: #2e7d32;
  margin-top: 0;
  margin-bottom: 10px;
}

.faq-item p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.faq-item ul {
  margin: 10px 0;
  padding-left: 20px;
}

.faq-item ol {
  margin: 10px 0;
  padding-left: 40px;
}

.faq-item li {
  margin: 5px 0;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Style for FAQ section headings */
h2[id] {
  margin-top: 30px;
  padding-top: 20px;
  color: #2e7d32;
}

/* Draw Progress Container */
.draw-progress-container {
  display: none;
  margin: 15px 0;
  padding: 15px;
  background-color: #f0f8ff;
  border: 1px solid #d4e9ff;
  border-radius: 5px;
  text-align: center;
}

.draw-progress-inner {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  color: #2c5282;
}

.draw-progress-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

/* Admin Celebrations form styling */
.admin-draw-form {
  margin: 10px 0;
}

.redraw-toggle-container {
  margin: 15px 0;
}

/* User Settings Form Styling */
#user-settings-form {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #d6b883;
  border-radius: 8px;
  padding: 30px;
  margin: 20px auto;
  width: 90%;
  max-width: 550px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

#user-settings-form h2 {
  color: #8b0000;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #d6b883;
  padding-bottom: 10px;
}

#user-settings-form h3 {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
}

#user-settings-form label {
  display: block;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #555;
}

#user-settings-form input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}

#user-settings-form input[type="email"]:focus {
  outline: none;
  border-color: #d6b883;
  box-shadow: 0 0 5px rgba(214, 184, 131, 0.5);
}

#user-settings-form p {
  margin: 10px 0;
  line-height: 1.6;
}

#user-settings-form ol {
  margin-left: 20px;
  margin-top: 10px;
}

#user-settings-form ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ✅ Read-only email field styling (for admin participant edit) */
.readonly-email-field {
  background-color: #f0f0f0 !important;
  cursor: not-allowed !important;
}

.readonly-email-help {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}



