/* ==========================================================================
   Hide Default Theme Header & Featured Image on Single Event Page
   ========================================================================== */
.single-jd_event header.entry-header,
.single-jd_event header.page-header,
.single-jd_event .post-thumbnail,
.single-jd_event .entry-thumbnail,
.single-jd_event .featured-image,
.single-jd_event .ast-single-post-featured-section,
.single-jd_event .entry-hero,
.single-jd_event figure.entry-media, /* BuddyBoss Theme specific target */
.single-jd_event > .wp-post-image {
  display: none !important;
}

.jd-event-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-top: clamp(50px, 8vh, 100px);
  margin-bottom: 30px;
  font-family: inherit;
  border: 1px solid #e2e8f0;
}
.jd-event-hero {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.jd-event-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px 20px;
}
.jd-event-hero-title {
  color: #ffffff !important;
  margin: 0;
  font-size: 2.2em;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}
.jd-event-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  gap: 40px;
}
.jd-event-content-col {
  flex: 1;
  min-width: 0;
}
.jd-event-sidebar-col {
  width: 320px;
  flex-shrink: 0;
}
.jd-section-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: bold;
}
.jd-event-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 20px;
}
.jd-card-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.jd-card-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.jd-card-title {
  margin-top: 0;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: bold;
}
.jd-card-subtitle {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.95em;
  display: flex;
  align-items: center;
}

/* Schedule List & Session Dots */
.jd-schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95em;
}
.jd-schedule-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jd-session-item.jd-item-past {
  color: #94a3b8;
}
.jd-session-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jd-session-dot.jd-dot-past {
  background-color: #cbd5e1;
}
.jd-session-dot.jd-dot-in-progress {
  background-color: #10b981;
  position: relative;
}
.jd-session-dot.jd-dot-upcoming {
  background-color: #3b82f6;
}

.jd-session-label {
  font-size: 0.85em;
  color: #94a3b8;
  margin-left: auto;
}
.jd-session-label.jd-label-live {
  color: #10b981;
  font-weight: bold;
}

/* Next Session Countdown Box */
.jd-next-session-box {
  margin-top: 15px;
  background: #f8fafc;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.jd-next-label {
  font-size: 0.75em;
  text-transform: uppercase;
  font-weight: bold;
  color: #64748b;
  margin-bottom: 8px;
}
.jd-next-countdown-wrapper .jd-countdown-blocks {
  display: flex;
  gap: 6px;
  margin-top: 0 !important;
}
.jd-next-countdown-wrapper .jd-cd-block {
  background: #ffffff;
  padding: 4px 8px;
  min-width: 40px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}
.jd-next-countdown-wrapper .jd-cd-block span {
  font-size: 1.1em;
}
.jd-next-countdown-wrapper .jd-cd-block label {
  font-size: 0.6em;
  margin-top: 2px;
}
.jd-capacity-text {
  font-size: 0.95em;
  margin-bottom: 8px;
}
.jd-progress-bar {
  width: 100%;
  background: #e2e8f0;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.jd-progress-fill {
  background: #0265dc;
  height: 100%;
  border-radius: 3px;
}
.jd-progress-label {
  text-align: right;
  font-size: 0.8em;
  margin-top: 5px;
  color: #475569;
  font-weight: bold;
}
.jd-form-group {
  margin-bottom: 15px;
}
.jd-form-group label {
  display: block;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
  color: #475569;
}
.jd-form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-sizing: border-box;
}
.jd-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.2s;
}
.jd-btn-primary {
  background-color: #0265dc;
  color: #fff;
}
.jd-btn-primary:hover {
  background-color: #0250ae;
}
.jd-btn-primary:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}
.jd-notice-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 15px;
  border-radius: 4px;
  font-size: 0.95em;
}
.jd-logged-in-text {
  font-size: 0.9em;
  margin-bottom: 15px;
}
.jd-form-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-size: 0.95em;
}
.jd-form-message.jd-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.jd-form-message.jd-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Event List Styling */
.jd-events-list ul {
  list-style-type: none;
  padding-left: 0;
}
.jd-events-list li {
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.jd-date-hint {
  color: #64748b;
  font-size: 0.9em;
}

.jd-auth-container {
  margin-top: 10px;
}
.jd-auth-view form {
  margin-top: 15px;
}
.jd-auth-view .login-username,
.jd-auth-view .login-password {
  margin-bottom: 15px;
}
.jd-auth-view label {
  display: block;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
  color: #475569;
}
.jd-auth-view input[type="text"],
.jd-auth-view input[type="password"],
.jd-auth-view input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-sizing: border-box;
}
.jd-auth-view .login-submit {
  margin-top: 15px;
}
.jd-auth-view input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #0265dc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
}
.jd-auth-view input[type="submit"]:hover {
  background-color: #0250ae;
}
.jd-auth-toggle-text {
  margin-top: 15px;
  font-size: 0.9em;
  text-align: center;
}
.jd-auth-toggle-text a {
  color: #0265dc;
  font-weight: bold;
  text-decoration: none;
}

/* Archive Grid Layout */
.jd-events-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.jd-event-archive-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.jd-event-archive-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.jd-event-archive-thumb {
  display: block;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #cbd5e1;
}
.jd-event-archive-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.jd-event-archive-title {
  padding-bottom: 8px;
  margin: 0 0 12px 0;
  font-size: 1.25em;
  line-height: 1.4;
  border-bottom: 1px dashed #e2e8f0;
}
.jd-event-archive-title a {
  text-decoration: none;
}
.jd-event-archive-title a:hover {
  text-decoration: underline;
}
.jd-event-archive-date {
  color: #64748b;
  font-size: 0.9em;
  margin-top: auto;
  display: flex;
  align-items: center;
}

/* Force hide any Remember Me checkbox injected by other plugins in our auth view */
.jd-auth-view .forgetmenot,
.jd-auth-view input[type="checkbox"][name="rememberme"],
.jd-auth-view label:has(input[type="checkbox"]) {
  display: none !important;
}

/* ==========================================================================
   Event Status & Countdown UI
   ========================================================================== */
.jd-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.jd-status-badge.jd-past {
  background-color: #f1f5f9;
  color: #64748b;
}
.jd-status-badge.jd-progress {
  background-color: #ecfdf5;
  color: #059669;
}
.jd-status-badge.jd-upcoming {
  background-color: #eff6ff;
  color: #2563eb;
}
.jd-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: jd-pulse 1.5s infinite;
}
@keyframes jd-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.jd-cd-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  min-width: 45px;
}
.jd-cd-block span {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  color: #0f172a;
  line-height: 1;
}
.jd-cd-block label {
  display: block;
  font-size: 0.65em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 4px;
}

/* ==========================================================================
   Archive Grid Updates (Meta & Footer)
   ========================================================================== */
.jd-event-archive-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jd-event-archive-meta-item {
  color: #64748b;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.jd-event-archive-footer {
  padding: 15px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.jd-archive-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 10px;
  background-color: #ffffff;
  color: #0265dc;
  border: 1px solid #0265dc;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none !important;
  text-transform: uppercase;
  font-size: 0.9em;
  transition: all 0.2s;
  box-sizing: border-box;
}
.jd-archive-btn:hover {
  background-color: #0265dc;
  color: #ffffff;
}

/* ==========================================================================
   Shortcode Archive Template (Status Breakdown)
   ========================================================================== */
.jd-status-breakdown {
  margin-top: auto;
  background: #f8fafc;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.jd-status-total {
  font-size: 0.9em;
  color: #0f172a;
  margin-bottom: 8px;
  text-align: center;
}
.jd-status-pills {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.jd-pill {
  flex: 1;
  text-align: center;
  font-size: 0.75em;
  font-weight: bold;
  padding: 4px 0;
  border-radius: 4px;
  color: #fff;
}
.jd-pill-accepted {
  background-color: #10b981;
} /* Green */
.jd-pill-pending {
  background-color: #f59e0b;
} /* Orange */
.jd-pill-waitlist {
  background-color: #6366f1;
} /* Indigo */
.jd-pill-declined {
  background-color: #ef4444;
} /* Red */

/* ==========================================================================
   Frontend Manage Attendees Table (Admin Only) & Session Styles
   ========================================================================== */
.jd-event-frontend-admin {
  margin-bottom: 60px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.jd-event-frontend-admin .jd-frontend-attendees-table {
  width: 100%;
  border-collapse: separate; /* Changed from collapse */
  border-spacing: 0;
  font-size: 0.95em;
  margin-bottom: 20px;
  border-radius: 8px; /* Assuming this is where you want the radius */
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.jd-event-frontend-admin
  .jd-frontend-attendees-table
  thead
  tr:first-child
  th:first-child {
  border-top-left-radius: 8px;
}

.jd-event-frontend-admin
  .jd-frontend-attendees-table
  thead
  tr:first-child
  th:last-child {
  border-top-right-radius: 8px;
}
.jd-event-frontend-admin .jd-frontend-attendees-table th {
  text-align: left;
  padding: 12px 15px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  color: #475569;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
}
.jd-event-frontend-admin .jd-frontend-attendees-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.jd-event-frontend-admin .jd-frontend-attendees-table select.jd-status-select {
  padding: 6px 30px 6px 12px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  font-size: 0.9em;
}

/* Attendance Checkbox Styles */
.jd-attendance-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.jd-attendance-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.jd-attendance-item:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.jd-attendance-item input[type="checkbox"] {
  margin: 0 !important;
  cursor: pointer;
  width: 14px;
  height: 14px;
}
.jd-att-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.jd-attendance-item:has(input:checked) {
  background-color: #dcfce7;
  border-color: #22c55e;
}
.jd-attendance-item:has(input:checked) .jd-att-label {
  color: #166534;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.jd-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jd-toast {
  padding: 12px 20px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.9em;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.jd-toast.jd-show {
  opacity: 1;
  transform: translateY(0);
}
.jd-toast-success {
  background-color: #10b981;
}
.jd-toast-error {
  background-color: #ef4444;
}

.jd-event-meeting-section {
  margin-top: 24px;
}

.jd-event-venue-section .jd-venue-detail {
  margin-top: 12px;
}
.jd-event-venue-section .jd-venue-detail:first-of-type {
  margin-top: 0;
}
.jd-event-venue-section .jd-venue-label {
  display: block;
  margin-bottom: 4px;
}
.jd-event-venue-section .jd-venue-value {
  color: #334155;
}
.jd-venue-map strong {
  margin-right: 8px;
}

.jd-session-label.jd-label-next {
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.85em;
  margin-left: 4px;
}

/* ==========================================================================
   Cleaned Up Styles from Template (Moved from Inline)
   ========================================================================== */

/* Debug Box */
.jd-debug-box {
  background: #fee2e2;
  border: 2px dashed #ef4444;
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
}
.jd-debug-title {
  margin: 0 0 10px 0;
  color: #991b1b;
  font-weight: bold;
}
.jd-debug-pre {
  background: #fff;
  padding: 10px;
  border: 1px solid #f87171;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Meeting Buttons & Subtitles */
.jd-btn-join-meeting {
  display: inline-flex !important;
  width: auto !important;
  padding: 10px 24px !important;
  text-decoration: none !important;
}
.jd-btn-join-meeting svg,
.jd-card-subtitle svg,
.jd-event-archive-meta-item svg,
.jd-event-archive-date svg {
  vertical-align: middle;
  margin-right: 8px;
}
.jd-btn-join-meeting svg {
  margin-top: -2px;
}
.jd-event-archive-meta-item svg,
.jd-event-archive-date svg {
  margin-right: 5px;
}

/* Frontend Attendees Table Elements */
.jd-no-attendees-text {
  color: #64748b;
}
.jd-table-responsive {
  overflow-x: auto;
}
.jd-attendee-email {
  color: #0265dc;
  text-decoration: none;
}
.jd-no-schedule-text,
.jd-req-accepted-text {
  color: #94a3b8;
  font-size: 12px;
}
.jd-att-spinner,
.jd-status-spinner {
  margin-left: 5px;
}
.jd-status-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.jd-btn-save-status {
  padding: 4px 10px !important;
  font-size: 0.85em !important;
  width: auto !important;
  background-color: #059669 !important;
  color: white !important;
}

/* Schedule Elements */
.jd-event-status-container {
  margin-bottom: 20px;
}
.jd-pulse-small {
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: jd-pulse 1.5s infinite;
}

/* Notice Alerts */
.jd-notice-success {
  background-color: #dcfce7;
  color: #166534;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
  margin-bottom: 15px;
  font-size: 0.95em;
}
.jd-notice-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 15px;
  border-radius: 4px;
  font-size: 0.95em;
  margin-bottom: 15px;
}
.jd-notice-gray {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.jd-btn-cancel {
  background-color: #ef4444;
  color: white;
}
.jd-btn-cancel:hover {
  background-color: #dc2626;
}

/* Archive Page */
.jd-events-archive-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 60vh;
}
.jd-archive-page-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  color: #0f172a;
}
.jd-event-archive-thumb {
  position: relative;
}
.jd-archive-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.jd-badge-past {
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  backdrop-filter: blur(4px);
  box-shadow: none;
}
.jd-badge-live {
  background: #10b981;
  color: #fff;
  display: inline-flex;
  align-items: center;
}
.jd-pulse-white {
  background-color: #fff;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  display: inline-block;
  border-radius: 50%;
  animation: jd-pulse 1.5s infinite;
}
.jd-badge-upcoming {
  background: #3b82f6;
  color: #fff;
}
.jd-event-archive-date {
  margin-bottom: 15px;
  color: #64748b;
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Frontend Hosts Display
   ========================================================================== */

/* Sidebar Hosts */
.jd-sidebar-hosts-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
.jd-sidebar-host-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.jd-sidebar-host-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}
.jd-sidebar-host-name {
  font-size: 0.85em;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

/* Main Content Hosts */
.jd-main-hosts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.jd-main-host-card {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  align-items: flex-start;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.jd-main-host-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.jd-main-host-avatar-wrap {
  flex-shrink: 0;
}
.jd-main-host-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.jd-main-host-info {
  flex-grow: 1;
}
.jd-main-host-name {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  font-weight: bold;
  color: #0f172a;
}
.jd-main-host-bio {
  font-size: 0.9em;
  color: #475569;
  line-height: 1.5;
}
.jd-main-host-bio p {
  margin: 0 0 10px 0;
}
.jd-main-host-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .jd-event-sidebar-col {
    width: 100%;
  }
  .jd-event-grid {
    padding: 20px;
  }
  .jd-event-hero {
    height: 200px;
  }
}
/* ==========================================================================
   Frontend Registration Modal
   ========================================================================== */
.jd-frontend-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}
.jd-frontend-modal-content {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.jd-frontend-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jd-frontend-modal-header h3 {
  margin: 0;
  font-size: 1.25em;
  font-weight: bold;
  color: #0f172a;
}
.jd-frontend-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}
.jd-frontend-modal-close:hover {
  color: #ef4444;
}
.jd-frontend-modal-body {
  padding: 24px;
  overflow-y: auto;
}
.jd-frontend-form-group {
  margin-bottom: 20px;
}
.jd-frontend-form-group label {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
  text-transform: none;
}
.jd-frontend-form-group input[type="text"],
.jd-frontend-form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1em;
}
.jd-frontend-form-group input[type="text"]:focus,
.jd-frontend-form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.jd-frontend-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jd-frontend-radio-group label {
  font-weight: normal;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  color: #475569;
}
.jd-frontend-radio-group input[type="radio"] {
  margin-right: 10px;
}
.jd-frontend-form-message {
  padding: 12px;
  border-radius: 6px;
  font-size: 0.95em;
}
.jd-frontend-form-actions {
  margin-top: 30px;
}

/* ==========================================================================
   User Dashboard UI
   ========================================================================== */
.jd-user-dashboard {
  margin-top: 20px;
  margin-bottom: 40px;
}
.jd-dashboard-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}
.jd-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.jd-dashboard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.jd-dashboard-card-header {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
}
.jd-dashboard-event-title {
  margin: 0 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.jd-dashboard-event-title a {
  color: #0f172a;
  text-decoration: none;
}
.jd-dashboard-event-title a:hover {
  color: #3b82f6;
}
.jd-dashboard-card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.jd-dashboard-date {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  margin-bottom: 20px;
}
.jd-dashboard-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.jd-btn-small {
  padding: 6px 12px;
  font-size: 12px;
}
.jd-btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  text-decoration: none;
  border: 1px solid #cbd5e1;
}
.jd-btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}
.jd-btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
}
.jd-btn-danger:hover {
  background-color: #dc2626;
}
/* Dashboard Status Pills */
.jd-dash-status-accepted {
  background: #dcfce7;
  color: #166534;
}
.jd-dash-status-pending {
  background: #fef9c3;
  color: #854d0e;
}
.jd-dash-status-waitlist {
  background: #ffedd5;
  color: #9a3412;
}
.jd-dash-status-declined {
  background: #fee2e2;
  color: #991b1b;
}

/* Empty States for User Dashboard */
.jd-user-dashboard-empty-state {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.jd-user-dashboard-empty-state svg {
  color: #94a3b8;
  margin-bottom: 16px;
}
.jd-user-dashboard-empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px 0 !important;
}
.jd-user-dashboard-empty-state p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px 0;
  max-width: 400px;
  line-height: 1.5;
}
.jd-user-dashboard-empty-state .jd-btn {
  display: inline-block !important;
  width: auto !important;
  text-decoration: none !important;
  padding: 12px 32px !important;
}
/* Ensure cancel form in dashboard doesn't break layout */
.jd-dashboard-actions .jd-event-cancel-form {
  margin: 0;
}

/* Host Notice Styling */
.jd-notice-host {
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
}

/* Optional: Add an icon if you like */
.jd-notice-host::before {
  content: "ⓘ";
  margin-right: 8px;
  color: #94a3b8;
}
