/* ================================================
   PROFEAT EVENT WIZARD - DICE EDITION
   
   REQUIRES: profeat-global-alignment.css added to 
   BuddyBoss > Theme Options > Custom CSS
   
   This wizard CSS handles the form styling.
   Global alignment CSS handles page alignment.
   ================================================ */

:root {
  --pf-purple: var(--pf-accent-primary, #7031ED);
  --pf-purple-light: var(--pf-accent-hover, #7A34E0);
  --pf-purple-dark: #5B21B6;
  --pf-purple-glow: rgba(var(--pf-accent-primary-rgb, 112, 49, 237), 0.4);
  --pf-purple-subtle: rgba(var(--pf-accent-primary-rgb, 112, 49, 237), 0.15);
  
  --pf-surface-1: #141414;
  --pf-surface-2: #1a1a1a;
  --pf-surface-3: #222222;
  --pf-surface-4: #2a2a2a;
  --pf-surface-5: #333333;
  
  --pf-border-1: rgba(255, 255, 255, 0.04);
  --pf-border-2: rgba(255, 255, 255, 0.08);
  --pf-border-3: rgba(255, 255, 255, 0.12);
  
  --pf-text-100: rgba(255, 255, 255, 1);
  --pf-text-80: rgba(255, 255, 255, 0.8);
  --pf-text-60: rgba(255, 255, 255, 0.6);
  --pf-text-40: rgba(255, 255, 255, 0.4);
  --pf-text-20: rgba(255, 255, 255, 0.2);
  
  --pf-success: #10B981;
  --pf-error: #EF4444;
  
  --pf-radius-sm: 8px;
  --pf-radius-md: 12px;
  --pf-radius-lg: 16px;
  --pf-radius-xl: 20px;
  --pf-radius-full: 9999px;
  
  --pf-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pf-duration: 200ms;
}

/* ============================
   PAGE BACKGROUND - FORCE BLACK
   Override ALL possible sources of light backgrounds
   ============================ */

/* Target the page body when on community events form */
body.tribe_community_edit,
body.page-template-events-submit,
body[class*="community-events"] {
  background-color: #121212 !important;
}

/* CRITICAL: Remove padding from main container that breaks alignment */
/* Only target content area, NOT the header */
main#tribe-events-pg-template,
main#tribe-events-pg-template.tribe-events-pg-template,
#tribe-events-pg-template,
.tribe-events-pg-template,
body main#tribe-events-pg-template,
body .tribe-events-pg-template,
#page main#tribe-events-pg-template {
  background: #121212 !important;
}

/* Force content containers to fill width - but NOT header */
/* Target only #content and below, never the header */
body.tribe_community_edit #content,
body.tribe_community_edit .site-content {
  background: #121212 !important;
}

/* Force black on containers */
.tribe-events-pg-template .site-content,
.tribe-events-pg-template #content,
.tribe-events-pg-template .container,
.tribe-events-pg-template #primary,
.tribe-events-pg-template .bb-grid,
.tribe-events-pg-template .bb-grid-cell,
.tribe-events-pg-template .entry-content,
.tribe-events-pg-template article,
.tribe-events-pg-template .site-main,
#tribe-events,
#tribe-events-content,
.tribe-community-events-content,
.tribe-events-community-details,
.tribe-community-events,
#tribe-community-events,
.events-community-post-title,
.events-community-post-content {
  background: #121212 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Force black even on inner wrappers - but preserve form elements */
#tribe-community-events > *,
#tribe-community-events .tribe-section-content,
#tribe-community-events .tribe-section-header,
.tribe-community-events-content > * {
  background-color: transparent !important;
}

/* ============================
   MAIN FORM - DARK BACKGROUND
   ============================ */

#tribe-community-events,
.tribe-community-events,
.tribe-community-events.form {
  background: #121212 !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  border: none !important;
  color: var(--pf-text-80) !important;
  box-sizing: border-box !important;
}

#tribe-community-events .my-events-header {
  display: none !important;
}

/* ============================
   WIZARD WRAPPER - INHERITS CONTAINER WIDTH
   ============================ */

#pf-wizard {
  /* Inherit width from parent container naturally */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

/* Step panels - full width within wizard */
.pf-step {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Grid must also be full width within step */
.pf-grid-2x2,
.pf-grid-2 {
  width: 100% !important;
  max-width: 100% !important;
}

/* ============================
   PROGRESS BAR - PILL TABS
   ============================ */

.pf-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 48px;
  padding: 8px;
  background: var(--pf-surface-1);
  border-radius: var(--pf-radius-full);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pf-dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: var(--pf-radius-full);
  cursor: pointer;
  transition: all var(--pf-duration) var(--pf-ease);
  outline: none;
}

.pf-dot:hover {
  background: var(--pf-surface-3);
}

.pf-dot::before {
  content: attr(data-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--pf-surface-3);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--pf-text-40);
  transition: all var(--pf-duration) var(--pf-ease);
  flex-shrink: 0;
}

.pf-dot-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--pf-text-40);
  white-space: nowrap;
  transition: all var(--pf-duration) var(--pf-ease);
}

/* Active pill - white background */
.pf-dot.active {
  background: var(--pf-text-100);
}

.pf-dot.active::before {
  background: var(--pf-purple);
  color: var(--pf-text-100);
}

.pf-dot.active .pf-dot-label {
  color: #000000;
  font-weight: 600;
}

/* Passed state */
.pf-dot.passed::before {
  background: var(--pf-purple);
  color: var(--pf-text-100);
  content: "✓";
}

.pf-dot.passed .pf-dot-label {
  color: var(--pf-text-60);
}

.pf-dot.passed:hover {
  background: var(--pf-purple-subtle);
}

/* ============================
   STEP PANELS
   ============================ */

.pf-step {
  display: none;
  opacity: 0;
}

.pf-step.active {
  display: block;
  animation: stepReveal 0.5s var(--pf-ease) forwards;
}

@keyframes stepReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pf-wizard .pf-step-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--pf-text-100) !important;
  margin: 0 0 32px !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ============================
   2x2 GRID LAYOUT FOR STEP 1
   Fixed to not overflow
   ============================ */

.pf-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: stretch; /* Changed from start to stretch for alignment */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pf-grid-2x2 .pf-col-left-top {
  grid-column: 1;
  grid-row: 1;
  min-width: 0; /* Prevent overflow */
  max-width: 100%;
}

.pf-grid-2x2 .pf-col-right {
  grid-column: 2;
  grid-row: 1 / 3; /* Spans both rows */
  min-width: 0; /* Prevent overflow */
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.pf-grid-2x2 .pf-col-left-bottom {
  grid-column: 1;
  grid-row: 2;
  min-width: 0; /* Prevent overflow */
  max-width: 100%;
}

@media (max-width: 900px) {
  .pf-grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .pf-grid-2x2 .pf-col-left-top,
  .pf-grid-2x2 .pf-col-right,
  .pf-grid-2x2 .pf-col-left-bottom {
    grid-column: 1;
    grid-row: auto;
  }
}

.pf-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0; /* Prevent overflow */
  max-width: 100%;
  overflow: hidden;
}

/* ============================
   FORM CARDS
   ============================ */

#tribe-community-events .tribe-section,
.tribe-community-events .tribe-section,
.tribe-section,
#pf-wizard .tribe-section {
  background: var(--pf-surface-1) !important;
  border: 1px solid var(--pf-border-1) !important;
  border-radius: var(--pf-radius-lg) !important;
  padding: 24px !important;
  margin: 0 0 16px !important;
  transition: all var(--pf-duration) var(--pf-ease);
  box-shadow: inset 0 1px 0 var(--pf-border-2);
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#tribe-community-events .tribe-section:hover {
  border-color: var(--pf-border-2) !important;
}

.events-community-post-title,
.events-community-post-content {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

/* Card wrapper for title + description (top-left of grid) */
.pf-col-left-top {
  background: var(--pf-surface-1) !important;
  border: 1px solid var(--pf-border-1) !important;
  border-radius: var(--pf-radius-lg) !important;
  padding: 24px !important;
  box-shadow: inset 0 1px 0 var(--pf-border-2);
  transition: all var(--pf-duration) var(--pf-ease);
}

.pf-col-left-top:hover {
  border-color: var(--pf-border-2) !important;
}

/* Right column: stretch to fill height and align bottom with left column */
.pf-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Match grid gap */
}

/* Make the last section in right column (audio) grow to fill remaining space */
.pf-col-right .tribe-section:last-child,
.pf-col-right #pf-audio-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important; /* Remove margin since we're using flex gap */
}

.pf-col-right .tribe-section:last-child .tribe-section-content,
.pf-col-right #pf-audio-section .tribe-section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Image section should not grow, keep its natural size */
.pf-col-right .tribe-section-image-uploader {
  flex: 0 0 auto;
  margin-bottom: 0 !important; /* Remove margin since we're using flex gap */
}

/* Section headers with purple accent */
.tribe-section-header,
.tribe-section-header h3,
#tribe-community-events h3,
.tribe-community-events h3 {
  position: relative;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--pf-text-60) !important;
  margin: 0 0 20px !important;
  padding: 0 0 12px 12px !important;
  border-bottom: 1px solid var(--pf-border-1) !important;
  background: transparent !important;
}

.tribe-section-header::before,
.tribe-section-header h3::before,
#tribe-community-events h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 12px;
  width: 3px;
  background: var(--pf-purple);
  border-radius: 2px;
}

/* ============================
   LABELS
   ============================ */

#tribe-community-events label,
.tribe-community-events label,
#pf-wizard label {
  display: block;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--pf-text-60) !important;
  margin-bottom: 8px !important;
}

.tribe-events-community-required,
.required {
  color: var(--pf-purple-light) !important;
}

/* ============================
   INPUTS
   ============================ */

#tribe-community-events input[type="text"],
#tribe-community-events input[type="email"],
#tribe-community-events input[type="url"],
#tribe-community-events input[type="number"],
#tribe-community-events input[type="date"],
#tribe-community-events input[type="time"],
#tribe-community-events input[type="password"],
#tribe-community-events textarea,
#tribe-community-events select,
.tribe-community-events input[type="text"],
.tribe-community-events textarea,
.tribe-community-events select {
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 20px !important;
  background: var(--pf-surface-2) !important;
  border: 1px solid var(--pf-border-2) !important;
  border-radius: var(--pf-radius-md) !important;
  color: var(--pf-text-100) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  transition: all var(--pf-duration) var(--pf-ease) !important;
  outline: none !important;
  box-sizing: border-box !important;
}

#tribe-community-events input::placeholder,
#tribe-community-events textarea::placeholder {
  color: var(--pf-text-20) !important;
}

#tribe-community-events input:hover:not(:focus),
#tribe-community-events textarea:hover:not(:focus),
#tribe-community-events select:hover:not(:focus) {
  border-color: var(--pf-border-3) !important;
  background: var(--pf-surface-3) !important;
}

#tribe-community-events input:focus,
#tribe-community-events textarea:focus,
#tribe-community-events select:focus {
  border-color: var(--pf-purple) !important;
  box-shadow: 0 0 0 4px var(--pf-purple-subtle) !important;
  background: var(--pf-surface-2) !important;
}

#tribe-community-events textarea {
  min-height: 160px !important;
  resize: vertical !important;
}

#tribe-community-events select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 48px !important;
  cursor: pointer !important;
}

/* ============================
   IMAGE UPLOADER
   ============================ */

.tribe-section-image,
.tribe-section-image-uploader,
#tribe-community-events .tribe-section-image-uploader {
  background: var(--pf-surface-1) !important;
  border: 1px solid var(--pf-border-1) !important;
  border-radius: var(--pf-radius-lg) !important;
  padding: 24px !important;
  text-align: center;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* The actual image preview box - FORCE dark background */
.tribe-community-events-preview-image,
#tribe-community-events .tribe-community-events-preview-image,
.tribe-section-image-uploader .tribe-community-events-preview-image,
#EventFeaturedImage,
.tribe-events-community-preview {
  background: #222222 !important;
  background-color: #222222 !important;
  border: 2px dashed rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--pf-radius-md) !important;
  padding: 48px 24px !important;
  margin-bottom: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 200px !important;
  cursor: pointer !important;
  transition: all var(--pf-duration) var(--pf-ease);
}

.tribe-community-events-preview-image:hover,
#tribe-community-events .tribe-community-events-preview-image:hover {
  background: #2a2a2a !important;
  background-color: #2a2a2a !important;
  border-color: var(--pf-purple) !important;
}

/* Override any inline styles on the preview image */
.tribe-community-events-preview-image[style],
#tribe-community-events .tribe-community-events-preview-image[style] {
  background: #222222 !important;
  background-color: #222222 !important;
}

.tribe-community-events-preview-image .dashicons,
.tribe-community-events-preview-image svg {
  width: 48px !important;
  height: 48px !important;
  font-size: 48px !important;
  color: var(--pf-text-40) !important;
  margin-bottom: 12px !important;
}

.tribe-section-image-uploader .description,
.tribe-section-image-uploader p {
  color: var(--pf-text-40) !important;
  font-size: 13px !important;
  margin: 0 0 16px !important;
}

.tribe-community-events-image-upload-button,
#tribe-community-events .tribe-community-events-image-upload-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  background: var(--pf-surface-4) !important;
  color: var(--pf-text-100) !important;
  border: none !important;
  border-radius: var(--pf-radius-full) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  transition: all var(--pf-duration) var(--pf-ease) !important;
}

.tribe-community-events-image-upload-button:hover {
  background: var(--pf-surface-5) !important;
  transform: translateY(-2px);
}

/* ============================
   AUDIO SECTION
   ============================ */

.tribe-section-audio,
#pf-audio-section {
  background: var(--pf-surface-1) !important;
  border: 1px solid var(--pf-border-1) !important;
  border-radius: var(--pf-radius-lg) !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

#tribe-community-events input[type="file"] {
  color: var(--pf-text-60) !important;
  font-size: 14px !important;
  max-width: 100% !important;
}

#tribe-community-events input[type="file"]::file-selector-button {
  padding: 12px 24px !important;
  background: var(--pf-surface-4) !important;
  color: var(--pf-text-100) !important;
  border: none !important;
  border-radius: var(--pf-radius-full) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-right: 16px !important;
  transition: all var(--pf-duration) var(--pf-ease) !important;
}

#tribe-community-events input[type="file"]::file-selector-button:hover {
  background: var(--pf-surface-5) !important;
}

/* ============================
   CHECKBOXES
   ============================ */

#tribe-community-events input[type="checkbox"],
#tribe-community-events input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  accent-color: var(--pf-purple) !important;
  cursor: pointer !important;
  margin-right: 8px !important;
}

/* ============================
   NAVIGATION BUTTONS
   ============================ */

.pf-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--pf-border-1);
}

.pf-nav-spacer {
  flex: 1;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--pf-radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--pf-duration) var(--pf-ease);
  border: none;
  text-decoration: none;
}

/* Previous button - ghost */
.pf-btn.pf-prev {
  background: transparent;
  color: var(--pf-text-60);
  border: 1px solid var(--pf-border-2);
  padding: 15px 31px;
}

.pf-btn.pf-prev::before {
  content: '←';
  transition: transform var(--pf-duration) var(--pf-ease);
}

.pf-btn.pf-prev:hover {
  background: var(--pf-surface-3);
  color: var(--pf-text-100);
  border-color: var(--pf-border-3);
}

.pf-btn.pf-prev:hover::before {
  transform: translateX(-4px);
}

/* Next button - white that goes purple */
.pf-btn.pf-next {
  background: var(--pf-text-100);
  color: #000000;
}

.pf-btn.pf-next::after {
  content: '→';
  transition: transform var(--pf-duration) var(--pf-ease);
}

.pf-btn.pf-next:hover {
  background: var(--pf-purple-light);
  color: var(--pf-text-100);
  box-shadow: 0 8px 32px var(--pf-purple-glow);
}

.pf-btn.pf-next:hover::after {
  transform: translateX(4px);
}

/* Submit button */
.pf-submit,
#tribe-community-events input[type="submit"],
.tribe-events-community-footer input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 40px !important;
  background: var(--pf-purple) !important;
  color: var(--pf-text-100) !important;
  border: none !important;
  border-radius: var(--pf-radius-full) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all var(--pf-duration) var(--pf-ease) !important;
  box-shadow: 0 4px 20px var(--pf-purple-glow) !important;
}

.pf-submit:hover,
#tribe-community-events input[type="submit"]:hover {
  background: var(--pf-purple-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--pf-purple-glow) !important;
}

.tribe-events-community-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* ============================
   VALIDATION
   ============================ */

.pf-invalid {
  border-color: var(--pf-error) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
  animation: shake 0.4s var(--pf-ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ============================
   HELPER TEXT
   ============================ */

.description,
.tribe-field-description,
small {
  color: var(--pf-text-40) !important;
  font-size: 12px !important;
  margin-top: 6px !important;
}

/* ============================
   LINKS
   ============================ */

#tribe-community-events a:not(.pf-btn),
.tribe-community-events a:not(.pf-btn) {
  color: var(--pf-purple-light) !important;
  text-decoration: none !important;
  transition: color var(--pf-duration) !important;
}

#tribe-community-events a:not(.pf-btn):hover {
  color: var(--pf-text-100) !important;
}

/* ============================
   TABLES
   ============================ */

#tribe-community-events table {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

#tribe-community-events table td,
#tribe-community-events table tr {
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
}

/* ============================
   DATEPICKER
   ============================ */

.ui-datepicker {
  background: var(--pf-surface-2) !important;
  border: 1px solid var(--pf-border-2) !important;
  border-radius: var(--pf-radius-lg) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
  padding: 16px !important;
  backdrop-filter: blur(20px);
}

.ui-datepicker-header {
  background: transparent !important;
  border: none !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--pf-border-1) !important;
}

.ui-datepicker-title {
  color: var(--pf-text-100) !important;
  font-weight: 600 !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  cursor: pointer !important;
  border-radius: var(--pf-radius-sm) !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
  background: var(--pf-surface-4) !important;
}

.ui-datepicker th {
  color: var(--pf-text-40) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
  color: var(--pf-text-80) !important;
  background: transparent !important;
  border-radius: var(--pf-radius-sm) !important;
  padding: 8px !important;
}

.ui-datepicker td a:hover {
  background: var(--pf-surface-4) !important;
  color: var(--pf-text-100) !important;
}

.ui-datepicker .ui-state-active {
  background: var(--pf-purple) !important;
  color: var(--pf-text-100) !important;
}

.ui-datepicker .ui-state-highlight {
  border: 1px solid var(--pf-purple) !important;
}

/* ============================
   TIMEPICKER
   ============================ */

.ui-timepicker-wrapper {
  background: var(--pf-surface-2) !important;
  border: 1px solid var(--pf-border-2) !important;
  border-radius: var(--pf-radius-md) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px);
}

.ui-timepicker-list li {
  color: var(--pf-text-80) !important;
  padding: 10px 16px !important;
}

.ui-timepicker-list li:hover {
  background: var(--pf-surface-4) !important;
  color: var(--pf-text-100) !important;
}

.ui-timepicker-list li.ui-timepicker-selected {
  background: var(--pf-purple) !important;
  color: var(--pf-text-100) !important;
}

/* ============================
   NOTICES
   ============================ */

.tribe-events-community-notice {
  padding: 16px 20px !important;
  border-radius: var(--pf-radius-md) !important;
  margin-bottom: 16px !important;
}

.tribe-events-community-notice:not(.updated) {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

.tribe-events-community-notice.updated {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}

/* ============================
   RESPONSIVE - TABLET
   ============================ */

@media (max-width: 900px) {
  #tribe-community-events {
    padding: 80px 15px 48px 15px !important;
  }
  
  .pf-progress {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  
  .pf-dot {
    padding: 10px 16px;
  }
  
  .pf-dot::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  
  .pf-dot-label {
    font-size: 12px;
  }
  
  #pf-wizard .pf-step-title {
    font-size: 1.5rem !important;
  }
  
  .pf-nav {
    flex-direction: column;
    gap: 12px;
  }
  
  .pf-btn {
    width: 100%;
    justify-content: center;
  }
  
  .pf-btn.pf-next {
    order: -1;
  }
  
  .pf-nav-spacer {
    display: none;
  }
}

/* ============================
   RESPONSIVE - MOBILE
   ============================ */

@media (max-width: 600px) {
  #tribe-community-events {
    padding: 70px 12px 40px 12px !important;
  }
  
  .pf-progress {
    gap: 4px;
    padding: 6px;
    margin-bottom: 32px;
  }
  
  .pf-dot {
    padding: 8px 12px;
  }
  
  .pf-dot-label {
    display: none;
  }
  
  .pf-dot.active .pf-dot-label {
    display: block;
  }
  
  #pf-wizard .pf-step-title {
    font-size: 1.25rem !important;
    margin-bottom: 24px !important;
  }
  
  #tribe-community-events .tribe-section {
    padding: 16px !important;
  }
  
  #tribe-community-events input[type="text"],
  #tribe-community-events textarea,
  #tribe-community-events select {
    padding: 14px 16px !important;
    font-size: 16px !important;
  }
  
  .pf-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ============================
   SCROLLBAR
   ============================ */

#tribe-community-events ::-webkit-scrollbar {
  width: 8px;
}

#tribe-community-events ::-webkit-scrollbar-track {
  background: transparent;
}

#tribe-community-events ::-webkit-scrollbar-thumb {
  background: var(--pf-surface-4);
  border-radius: 4px;
}

#tribe-community-events ::-webkit-scrollbar-thumb:hover {
  background: var(--pf-surface-5);
}

/* ============================
   FIX: Image upload dark theme (actual selectors)
   ============================ */
.tribe-section-image-uploader .tribe-image-upload-area,
#tribe-community-events .tribe-image-upload-area {
    background: transparent !important;
}
.tribe-section-image-uploader .form-controls,
#tribe-community-events .tribe-image-upload-area .form-controls {
    background: #1e1e1e !important;
    border: 2px dashed rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 40px 24px !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
}
.tribe-section-image-uploader .form-controls .uploadFile {
    display: none !important;
}
.tribe-section-image-uploader .form-controls .selected-msg {
    color: rgba(255, 255, 255, 0.5) !important;
}
.tribe-section-image-uploader .choose-file,
#tribe-community-events .choose-file.tribe-button {
    display: inline-block !important;
    padding: 14px 28px !important;
    background: #2a2a2e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
}
.tribe-section-image-uploader .choose-file:hover {
    background: #3a3a3e !important;
}
.tribe-section-image-uploader .event_image,
#tribe-community-events .tribe-section-image-uploader .event_image {
    cursor: pointer !important;
    inset: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
}
.tribe-section-image-uploader .note p,
.tribe-section-image-uploader .tribe-remove-upload a {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* FIX: Reduce excessive spacing in image uploader */
.tribe-section-image-uploader .tribe-section-content {
    padding: 0 !important;
}
.tribe-section-image-uploader .tribe-image-upload-area {
    padding: 10px 0 !important;
}
.tribe-section-image-uploader .tribe-image-upload-area .note {
    margin: 0 0 8px !important;
}
.tribe-section-image-uploader .tribe-image-upload-area.has-image .note,
.tribe-section-image-uploader .tribe-image-upload-area.has-image .form-controls,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image .note,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image .form-controls {
    display: block !important;
}
.tribe-section-image-uploader .tribe-image-upload-area.has-image .form-controls,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image .form-controls {
    background: rgba(255, 255, 255, 0.02) !important;
    border-width: 1px !important;
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto 0 !important;
    max-width: none !important;
    padding: 12px 14px !important;
    width: auto !important;
}
.tribe-section-image-uploader .tribe-image-upload-area.has-image.uploaded .form-controls,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image.uploaded .form-controls,
.tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .form-controls,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .form-controls {
    background: rgba(255, 255, 255, 0.02) !important;
    border-width: 1px !important;
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto 0 !important;
    max-width: none !important;
    padding: 12px 14px !important;
    width: auto !important;
}
.tribe-section-image-uploader .tribe-image-upload-area.has-image .choose-file,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image .choose-file,
.tribe-section-image-uploader .tribe-image-upload-area.has-image.uploaded .choose-file,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image.uploaded .choose-file,
.tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .choose-file,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .choose-file {
    margin: 0 !important;
    min-width: 0 !important;
    padding: 10px 18px !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.tribe-section-image-uploader .tribe-image-upload-area.has-image .event_image,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image .event_image,
.tribe-section-image-uploader .tribe-image-upload-area.has-image.uploaded .event_image,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image.uploaded .event_image,
.tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .event_image,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .event_image {
    height: 100% !important;
    margin: 0 !important;
}
.tribe-section-image-uploader .tribe-image-upload-area.has-image .selected-msg,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image .selected-msg,
.tribe-section-image-uploader .tribe-image-upload-area.has-image .uploadFile,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.has-image .uploadFile,
.tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .selected-msg,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .selected-msg,
.tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .uploadFile,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area.pf-image-pending .uploadFile {
    display: none !important;
}
.tribe-section-image-uploader .tribe-image-upload-area .tribe-community-events-preview-image img {
    border-radius: 12px !important;
    max-width: min(100%, 360px) !important;
}
.tribe-section-image-uploader .tribe-image-upload-area .tribe-remove-upload,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area .tribe-remove-upload {
    display: block !important;
    margin-top: 10px !important;
}
.tribe-section-image-uploader .tribe-image-upload-area .tribe-remove-upload a,
#tribe-community-events .tribe-section-image-uploader .tribe-image-upload-area .tribe-remove-upload a {
    color: rgba(255, 255, 255, 0.58) !important;
}

/* FIX: Kill excessive min-height and padding on image preview placeholder */
.tribe-community-events-preview-image,
#tribe-community-events .tribe-community-events-preview-image,
.tribe-section-image-uploader .tribe-community-events-preview-image,
#EventFeaturedImage,
.tribe-events-community-preview {
    min-height: 0 !important;
    padding: 16px !important;
    margin-bottom: 8px !important;
}

/* FIX: div.note has 80px padding-top from TEC */
.tribe-section-image-uploader .note,
.tribe-image-upload-area .note {
    padding: 0 !important;
}

/* Hide tags/étiquettes section */
.tribe-section-events-tags,
#tribe-community-events .tribe-section-events-tags {
    display: none !important;
}

/* ============================
   FIX: Venue editor card UI
   ============================ */
#event_tribe_venue .tribe-section-content {
    display: block !important;
    border-spacing: 0 !important;
}

#event_tribe_venue .tribe-section-content > tbody,
#event_tribe_venue .tribe-section-content > tfoot {
    display: block !important;
    width: 100% !important;
}

#event_tribe_venue .tribe-section-content > tbody {
    background:
        linear-gradient(180deg, rgba(112, 49, 237, 0.10), rgba(112, 49, 237, 0.02)),
        rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
    padding: 20px !important;
}

#event_tribe_venue .tribe-section-content > tbody > tr {
    align-items: start !important;
    display: grid !important;
    gap: 10px 20px !important;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) !important;
    width: 100% !important;
}

#event_tribe_venue .tribe-section-content > tbody > tr + tr {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#event_tribe_venue .tribe-section-content > tbody > tr.saved-linked-post {
    margin: 0 !important;
    padding: 0 0 14px !important;
    border-top: 0 !important;
}

#event_tribe_venue .tribe-section-content > tbody > tr.saved-linked-post + tr {
    margin-top: 16px !important;
}

#event_tribe_venue .tribe-section-content > tbody > tr > td {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#event_tribe_venue .saved-venue-table-cell {
    align-self: center !important;
    padding-top: 10px !important;
}

#event_tribe_venue .saved-venue-table-cell label,
#event_tribe_venue .tribe-table-field-label,
#event_tribe_venue tr.linked-post.venue > td:first-child {
    color: rgba(255, 255, 255, 0.62) !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
}

#event_tribe_venue .saved-linked-post > td:last-child {
    align-items: center !important;
    column-gap: 12px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
}

#event_tribe_venue .move-linked-post-group {
    display: none !important;
}

#event_tribe_venue .edit-linked-post-link {
    margin: 0 !important;
}

#event_tribe_venue .edit-linked-post-link a {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    display: inline-flex !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    justify-content: center !important;
    line-height: 1 !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
}

#event_tribe_venue .edit-linked-post-link a:hover {
    background: rgba(112, 49, 237, 0.16) !important;
    border-color: rgba(139, 92, 246, 0.42) !important;
    color: #ffffff !important;
}

#event_tribe_venue .tribe-delete-this {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    display: inline-flex !important;
    font-size: 14px !important;
    height: 40px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-width: 40px !important;
    text-decoration: none !important;
    width: 40px !important;
}

#event_tribe_venue .tribe-delete-this:hover {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.36) !important;
    color: #ffffff !important;
}

#event_tribe_venue .select2,
#event_tribe_venue .select2.select2-container {
    max-width: 100% !important;
    width: 100% !important;
}

#event_tribe_venue .select2-selection--single,
#event_tribe_venue .select2-selection--multiple {
    align-items: center !important;
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    display: flex !important;
    min-height: 56px !important;
    padding: 0 16px !important;
}

#event_tribe_venue .select2-selection__rendered {
    color: rgba(255, 255, 255, 0.96) !important;
    line-height: 1.45 !important;
    padding: 0 !important;
}

#event_tribe_venue .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.42) !important;
}

#event_tribe_venue .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
}

#event_tribe_venue .select2-selection__clear {
    color: rgba(255, 255, 255, 0.48) !important;
    font-size: 18px !important;
    margin-right: 10px !important;
}

#event_tribe_venue .select2-container--default.select2-container--focus .select2-selection--multiple,
#event_tribe_venue .select2-container--default.select2-container--open .select2-selection--single,
#event_tribe_venue .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: rgba(112, 49, 237, 0.72) !important;
    box-shadow: 0 0 0 4px rgba(112, 49, 237, 0.14) !important;
}

#event_tribe_venue .linked-post input[type="text"],
#event_tribe_venue .linked-post input[type="url"],
#event_tribe_venue .linked-post select {
    min-height: 52px !important;
}

#event_tribe_venue .new-tribe_venue .linked-post input[type="text"],
#event_tribe_venue .new-tribe_venue .linked-post input[type="url"],
#event_tribe_venue .new-tribe_venue .linked-post select {
    background: rgba(255, 255, 255, 0.03) !important;
}

#event_tribe_venue tfoot tr {
    display: block !important;
}

#event_tribe_venue tfoot td {
    display: block !important;
    padding: 0 !important;
}

#event_tribe_venue .tribe-add-post {
    align-items: center !important;
    background: rgba(112, 49, 237, 0.12) !important;
    border: 1px solid rgba(112, 49, 237, 0.22) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    gap: 8px !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0 18px !important;
}

#event_tribe_venue .tribe-add-post::before {
    content: '+' !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

#event_tribe_venue .tribe-add-post:hover {
    background: rgba(112, 49, 237, 0.22) !important;
    border-color: rgba(139, 92, 246, 0.42) !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    #event_tribe_venue .tribe-section-content > tbody {
        padding: 16px !important;
    }

    #event_tribe_venue .tribe-section-content > tbody > tr,
    #event_tribe_venue .tribe-section-content > tbody > tr.saved-linked-post {
        grid-template-columns: 1fr !important;
    }

    #event_tribe_venue .saved-venue-table-cell {
        padding-top: 0 !important;
    }

    #event_tribe_venue .saved-linked-post > td:last-child {
        grid-template-columns: 1fr !important;
    }

    #event_tribe_venue .edit-linked-post-link a,
    #event_tribe_venue .tribe-delete-this,
    #event_tribe_venue .tribe-add-post {
        width: 100% !important;
    }
}
