.vlb-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* VLB Events - Modern modal + form */

/* Modal backdrop */
#vlb-event-modal,
#vlb-boost-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .2s ease;
}

.vlb-center {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vh, 48px) 16px;
  min-height: 100vh;
}

.vlb-modal-wrap {
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  transform: scale(.98);
  transition: transform .18s ease;
  position: relative;
  z-index: 2147483647;
}

#vlb-event-modal .vlb-center,
#vlb-boost-modal .vlb-center {
  position: relative;
  z-index: 2147483647;
}

#vlb-event-modal .vlb-modal-wrap {
  max-width: 680px;
}

#vlb-boost-modal .vlb-modal-wrap {
  max-width: 980px;
}

.vlb-modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vlb-modal-body {
  padding: 14px 16px;
  max-height: 78vh;
  overflow: auto;
}

.vlb-close {
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  font-size: 18px;
  line-height: 1;
  background: #fff;
  cursor: pointer;
}

.vlb-close:hover {
  background: #f3f4f6;
}

/* Buttons */
.vlb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 13px;
}

.vlb-btn--sm {
  padding: 5px 9px;
  font-size: 12px;
}

.vlb-btn--xs {
  padding: 4px 8px;
  font-size: 11px;
}

.vlb-btn-primary {
  background: #0f766e;
  color: #fff;
}

.vlb-btn-primary:hover {
  background: #115e59;
}

.vlb-btn-dark {
  background: #111827;
  color: #fff;
}

.vlb-btn-dark:hover {
  background: #000;
}

.vlb-btn-indigo {
  background: #4f46e5;
  color: #fff;
}

.vlb-btn-indigo:hover {
  background: #4338ca;
}

.vlb-btn-outline {
  background: #fff;
  border-color: #e5e7eb;
  color: #111827;
}

.vlb-btn-outline:hover {
  background: #f9fafb;
}

/* Toast */
#vlb-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100001;
}

#vlb-toast-inner {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  padding: 10px 14px;
  color: #fff;
}

/* Picker dropdown (Lieu / Organisateur) */
.vlb-picker {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  overflow: auto;
  max-height: 240px;
  padding: 6px;
  backdrop-filter: saturate(120%);
}

.vlb-picker-empty {
  color: #6b7280;
  padding: 10px 12px;
  font-size: 13px;
}

.vlb-picker-loading {
  color: #6b7280;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vlb-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #d1d5db;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: vlb-spin .8s linear infinite;
}

@keyframes vlb-spin {
  to {
    transform: rotate(360deg);
  }
}

.vlb-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s ease, transform .06s ease;
}

.vlb-picker-item:hover {
  background: #f9fafb;
}

.vlb-picker-item:active {
  transform: scale(.995);
}

.vlb-picker-title {
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Boost grid */
.vlb-boost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.vlb-boost-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.vlb-boost-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0 4px;
}

.vlb-boost-card .price {
  font-size: 1.125rem;
  margin: 4px 0 8px;
}

.vlb-boost-card .desc {
  color: #4b5563;
  font-size: 0.925rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.vlb-boost-card img {
  border-radius: 8px;
  object-fit: cover;
  max-height: 150px;
  width: 100%;
}

/* Form layout (no Tailwind) */
.vlb-form {
  max-width: 680px;
}

.vlb-form>div {
  margin-bottom: 10px;
}

.vlb-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vlb-col {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.vlb-col--wide {
  flex: 1 1 100%;
  max-width: 680px;
}

#vlb-event-modal form#vlb-event-form .w-full {
  width: 100% !important;
}

#vlb-event-modal form#vlb-event-form textarea {
  width: 100% !important;
}

/* Inline group for date+time */
.vlb-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.vlb-inline .vlb-field {
  flex: 1 1 0;
  min-width: 0;
}

.vlb-inline .vlb-field--date {
  flex: 1 1 50%;
}

.vlb-inline .vlb-field--time {
  flex: 1 1 50%;
}

.vlb-inline input[type=date],
.vlb-inline input[type=time] {
  width: 100% !important;
  max-width: none;
  flex: 1 1 0;
  min-width: 0;
}

/* Inputs look */
#vlb-event-modal form#vlb-event-form input[type=text],
#vlb-event-modal form#vlb-event-form input[type=url],
#vlb-event-modal form#vlb-event-form input[type=number],
#vlb-event-modal form#vlb-event-form input[type=date],
#vlb-event-modal form#vlb-event-form input[type=time],
#vlb-event-modal form#vlb-event-form textarea,
#vlb-event-modal form#vlb-event-form select {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  outline: 0;
  transition: box-shadow .15s ease, border-color .15s ease;
}

#vlb-event-modal form#vlb-event-form input:focus,
#vlb-event-modal form#vlb-event-form textarea:focus,
#vlb-event-modal form#vlb-event-form select:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

/* Force two columns on desktop for date/time row */
.vlb-row.vlb-row--two .vlb-col {
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

/* Smaller buttons */
.vlb-btn--sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* Image line: preview left, input right */
.vlb-image-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vlb-image-line input[type=file] {
  max-width: 240px;
}

.vlb-field--file {
  margin-top: 8px;
}

.vlb-field--file>label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.vlb-image-preview {
  margin-top: 8px;
}

.vlb-image-preview img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}

#vlb-thumbnail-file {
  top: 10px;
  position: relative;
}

/* Floating labels */
.vlb-field {
  position: relative;
}

.vlb-field>input,
.vlb-field>textarea,
.vlb-field>select {
  width: 100% !important;
}

.vlb-field>label {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #6b7280;
  font-size: 12px;
  background: #fff;
  padding: 0 4px;
  pointer-events: none;
  transition: all .12s ease;
  z-index: 1;
}

.vlb-field>input:focus+label,
.vlb-field>textarea:focus+label,
.vlb-field>input:not(:placeholder-shown)+label,
.vlb-field>textarea:not(:placeholder-shown)+label {
  top: -8px;
  font-size: 11px;
  color: #4b5563;
}

/* Suffix button inside field (for + add) */
.vlb-field--suffix {
  position: relative;
}

.vlb-field--suffix>input {
  padding-right: 34px;
}

/* Minimal icon button for suffix (+) */
.vlb-icon-btn {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #111827;
  border-radius: 6px;
  height: 26px;
  width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vlb-icon-btn:hover {
  background: #f9fafb;
}

.vlb-suffix-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  line-height: 1;
  z-index: 2;
}

#vlb-event-modal form#vlb-event-form input[type=text],
#vlb-event-modal form#vlb-event-form input[type=url],
#vlb-event-modal form#vlb-event-form input[type=number],
#vlb-event-modal form#vlb-event-form input[type=date],
#vlb-event-modal form#vlb-event-form input[type=time],
#vlb-event-modal form#vlb-event-form textarea,
#vlb-event-modal form#vlb-event-form select {
  width: 100% !important;
  max-width: 100%;
}

@media (max-width: 640px) {
  .vlb-row {
    gap: 10px;
  }

  .vlb-col,
  .vlb-col--wide {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .vlb-row.vlb-row--two .vlb-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #vlb-event-modal form#vlb-event-form input[type=text],
  #vlb-event-modal form#vlb-event-form input[type=url],
  #vlb-event-modal form#vlb-event-form input[type=number],
  #vlb-event-modal form#vlb-event-form input[type=date],
  #vlb-event-modal form#vlb-event-form input[type=time],
  #vlb-event-modal form#vlb-event-form textarea,
  #vlb-event-modal form#vlb-event-form select {
    width: 100% !important;
    max-width: 100%;
  }
}