ul.future-events-list li:last-child {
  margin-bottom: 0 !important;
}

future-events-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.edit-events-button {
  padding: 10px 25px;
  background-color: #ed008e;
  color: #ffff !important;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 10px;
  white-space: nowrap;
  margin-bottom: 10px;
  display: inline-block;
}

.edit-events-button:hover {
  background-color: #ed008e;
}

.registrations-button {
  padding: 10px 25px;
  background-color: #ed008e;
  color: #ffff !important;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 10px;
  white-space: nowrap;
  margin-bottom: 10px;
  display: inline-block;
}

.registrations-button:hover {
  background-color: #ed008e;
}

.csv-export-button {
  padding: 11px 25px !important;
  background-color: #ed008e;
  color: #ffff !important;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 10px;
  font-weight: bold;
  white-space: break-spaces;
}

.csv-export-button:hover {
  background-color: #ed008e;
}

.future-events-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0 0;
}

.future-events-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  position: relative;
  gap: 15px;
}

.event-info {
  flex-grow: 1;
  margin-right: 20px;
  min-width: 250px;
}

.event-title {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1.67em;
}

.event-details {
  display: flex;
  gap: 15px;
  color: #000;
  margin-top: 5px;
  flex-wrap: wrap;
  font-size: 1.1em;
}

.event-date {
  color: #000;
}

.event-location {
  color: #666;
  font-style: italic;
}

.calendar-dropdown {
  position: relative;
  display: inline-block;
  margin-left: auto;
  order: 2;
}

.calendar-button {
  padding: 8px 20px;
  background-color: #fff !important;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  display: contents;
}

.calendar-button::after {
  content: "▼";
  font-size: 0.7em;
  margin-left: 5px;
  color: #000;
}

.calendar-button:hover {
  background-color: #ed008e;
}

.calendar-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 4px;
  padding: 10px 0;
}

.calendar-dropdown-content.show {
  display: block;
}

.calendar-option {
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  display: block;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.calendar-option:hover {
  background-color: #f8f9fa;
}

.accept-event,
.decline-event {
  margin-left: 10px;
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  order: 3;
}

.accept-event {
  background-color: #28a745 !important;
  color: #fff;
}

.decline-event {
  background-color: #dc3545 !important;
  color: #fff;
}

.status-text {
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 500;
  order: 3;
}

.accepted-text {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

.declined-text {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.decline-reason {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-left: 3px solid #dc3545;
  font-size: 0.9em;
  color: #666;
  border-radius: 4px;
  order: 4;
}

.decline-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.decline-modal-content {
  background: white;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  margin: 50px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#decline-reason {
  width: 100%;
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 100px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 15px;
}

#confirm-decline,
#cancel-decline {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#confirm-decline {
  background: #dc3545;
  color: white;
}

#confirm-decline:hover {
  background: #c82333;
}

#cancel-decline {
  background: #28a745;
  color: white;
}

#cancel-decline:hover {
  background: #5a6268;
}

/* Registration Lists */
.event-registrations {
  width: 100%;
  margin-top: 15px;
  order: 5;
}

.registrations-toggle {
  cursor: pointer;
  color: #ffff;
  font-size: 0.9em;
  padding: 5px 10px;
  background: #ec008d;
  display: inline-block;
  border-radius: 0;
  margin-top: 10px;
}

.registrations-toggle:hover {
  background: #ec008d;
}

.registrations-details {
  margin-top: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  color: #000;
}

.accepted-users,
.declined-users {
  margin-bottom: 15px;
}

.accepted-users h4,
.declined-users h4 {
  margin: 0 0 10px 0;
  font-size: 1em;
  font-weight: 600;
}

.accepted-users h4 {
  color: #28a745 !important;
}

.declined-users h4 {
  color: #dc3545 !important;
}

.accepted-users ul,
.declined-users ul {
  margin: 0;
  padding-left: 20px;
}

.declined-users .reason-text {
  font-style: italic;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .future-events-header {
    justify-content: center;
    flex-direction: column;
  }

  .edit-events-button,
  .registrations-button,
  .csv-export-button {
    width: 100%;
    text-align: center;
  }

  .future-events-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-dropdown {
    margin-left: 0;
    width: 100%;
    order: 2;
  }

  .calendar-button {
    width: 100%;
    justify-content: center;
  }

  .calendar-dropdown-content {
    width: 100%;
    right: auto;
    left: 0;
  }

  .accept-event,
  .decline-event {
    width: 100%;
    margin: 5px 0;
  }

  .registrations-details {
    padding: 10px;
  }
}

/* Style for clickable event title */
.event-title a {
  text-decoration: none;
  color: inherit;
}

span.voice-type-badge {
  color: #000;
  padding: 5px 13px;
  border: solid 1px #ec008d;
  border-radius: 15px;
  margin-right: 7px;
  margin-bottom: 7px;
}

.voice-type-summary {
  padding-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
}

/* Loading spinner for buttons */
.future-events-list .loading-spinner,
.decline-modal .loading-spinner {
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  border-top-color: #fff !important;
  animation: spin 1s ease-in-out infinite !important;
  margin: -5px 0px;
}

@keyframes spin {
  to {
    transform: rotate(360deg) !important;
  }
}

.stimmlage {
  flex-grow: 1;
  text-align: right;
}

/* Remove user button (minus sign) */
.remove-user-button {
  background-color: #dc3545 !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 15px !important;
  text-align: center !important;
  font-weight: bold !important;
  font-size: 16px !important;
  cursor: pointer !important;
  margin-right: 10px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  transition: background-color 0.2s ease !important;
}

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

/* Restore user button (plus sign) */
.restore-user-button {
  background-color: #28a745 !important;
  color: white !important;
  border: none;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  line-height: 15px !important;
  text-align: center !important;
  font-weight: bold !important;
  font-size: 16px !important;
  cursor: pointer !important;
  margin-right: 10px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  transition: background-color 0.2s ease !important;
}

.restore-user-button:hover {
  background-color: #218838;
}
