/* ============================
   MXBZH - CSS MODAL AJOUTER TERRAIN
   Bleu Nuit Theme (comme login/inscription)
   ============================ */

/* Modal - Bleu Nuit Opaque */
#addTerrainModal .modal-content {
  width: min(520px, 94vw) !important;
  max-width: 520px !important;
  max-height: calc(100dvh - 3rem) !important;
  padding: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg,
      rgba(15, 23, 42, 0.98) 0%,
      rgba(25, 35, 55, 0.97) 50%,
      rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

/* Effet de brillance subtil */
#addTerrainModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  animation: modalShimmer 10s infinite;
  pointer-events: none;
  z-index: 0;
}

/* Lueur bleue subtile en haut */
#addTerrainModal .modal-content::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes modalShimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Empêcher les SVG géants */
#addTerrainModal .modal-content>svg,
#addTerrainModal .add-terrain-body>svg,
#addTerrainModal .wizard-panel>svg,
#addTerrainModal form>svg,
#addTerrainModal .add-terrain-form>svg {
  display: none !important;
}

#addTerrainModal .leaflet-marker-icon,
#addTerrainModal .custom-marker,
#addTerrainModal .marker-pin,
#addTerrainModal .marker-pill {
  display: none !important;
}

#addTerrainModal svg:not(.wizard-nav svg) {
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Header - Bleu Nuit */
.add-terrain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  position: relative;
  z-index: 1;
}

#addTerrainModal .add-terrain-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff !important;
}

.add-terrain-header p {
  display: none;
}

.add-terrain-header .modal-close {
  position: static;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  opacity: 1;
  transform: none;
  animation: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-terrain-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
  transform: rotate(90deg);
}

/* Progress Steps - Dark */
.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  background: transparent;
  transition: all 0.25s ease;
}

.wizard-step.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.wizard-step.completed {
  background: rgba(16, 185, 129, 0.2);
}

.wizard-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-step.active .wizard-step-num {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.wizard-step.completed .wizard-step-num {
  background: #10b981;
  color: white;
}

.wizard-step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  display: none;
}

.wizard-step.active .wizard-step-label {
  display: block;
  color: #ffffff;
}

/* Body - Dark & Scrollable */
.add-terrain-body {
  padding: 1.25rem 1.5rem;
  background: transparent;
  overflow-y: auto;
  flex: 1;
  max-height: calc(100dvh - 220px);
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

/* Panels */
.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
}

.wizard-panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9 !important;
  margin-bottom: 1rem;
}

/* Form - Dark */
.add-terrain-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#addTerrainModal .add-terrain-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0 !important;
  margin-bottom: 0.5rem;
}

#addTerrainModal .add-terrain-form label .required {
  color: #f87171 !important;
}

#addTerrainModal .add-terrain-form label input,
#addTerrainModal .add-terrain-form label textarea,
#addTerrainModal .add-terrain-form label select {
  margin-top: 0.5rem;
  display: block;
  width: 100%;
}

#addTerrainModal .modal-content .add-terrain-form input,
#addTerrainModal .modal-content .add-terrain-form textarea,
#addTerrainModal .modal-content .add-terrain-form select,
#addTerrainModal .add-terrain-form input[type="text"],
#addTerrainModal .add-terrain-form input[type="email"],
#addTerrainModal .add-terrain-form input[type="tel"],
#addTerrainModal .add-terrain-form input[type="number"],
#addTerrainModal .add-terrain-form select {
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 12px 14px !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 0.9rem !important;
  background: rgba(30, 41, 59, 0.6) !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#addTerrainModal .modal-content .add-terrain-form input:hover,
#addTerrainModal .modal-content .add-terrain-form textarea:hover,
#addTerrainModal .modal-content .add-terrain-form select:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(30, 41, 59, 0.8) !important;
}

#addTerrainModal .modal-content .add-terrain-form input:focus,
#addTerrainModal .modal-content .add-terrain-form textarea:focus,
#addTerrainModal .modal-content .add-terrain-form select:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  background: rgba(30, 41, 59, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  color: #ffffff !important;
}

#addTerrainModal .add-terrain-form textarea {
  resize: vertical;
  min-height: 60px;
  background: rgba(30, 41, 59, 0.6) !important;
  color: #ffffff !important;
}

#addTerrainModal .add-terrain-form input::placeholder,
#addTerrainModal .add-terrain-form textarea::placeholder {
  color: #94a3b8 !important;
}

#addTerrainModal .add-terrain-form select {
  cursor: pointer;
  appearance: none;
  background-color: rgba(30, 41, 59, 0.6) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
  color: #ffffff !important;
}

#addTerrainModal .add-terrain-form select option {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

/* Input with unit - Dark */
.input-with-unit {
  display: flex;
  align-items: center;
  margin-top: 0.35rem;
}

.input-with-unit input {
  margin-top: 0;
  border-radius: 10px 0 0 10px;
  border-right: none;
}

.input-with-unit span {
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-radius: 0 10px 10px 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Days selector - Dark */
.days-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.day-btn {
  padding: 12px 18px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.day-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.day-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.day-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}

.day-btn.active::before {
  opacity: 1;
}

.day-btn span {
  position: relative;
  z-index: 1;
}

/* Pricing Sliders - Dark */
.pricing-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
}

.slider-value {
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.price-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  cursor: pointer;
  border: 3px solid #0f172a;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
  transition: transform 0.15s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  cursor: pointer;
  border: 3px solid #0f172a;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* Navigation - Dark */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-nav .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wizard-nav .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  transform: translateY(-2px);
}

/* Bouton Suivant - Liquid Glass Apple Style */
.wizard-nav .btn-primary {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.80) 50%,
      rgba(255, 255, 255, 0.90) 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 8px 32px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Effet de brillance liquide */
.wizard-nav .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: skewX(-20deg);
}

.wizard-nav .btn-primary:hover::before {
  left: 150%;
}

/* Reflet en haut du bouton */
.wizard-nav .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 50%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0) 100%);
  border-radius: 14px 14px 50% 50%;
  pointer-events: none;
  opacity: 0.5;
}

.wizard-nav .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.wizard-nav .btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Bouton submit - Liquid Glass Apple Style */
.add-terrain-submit {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.80) 50%,
      rgba(255, 255, 255, 0.90) 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 32px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 8px 32px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Effet de brillance liquide */
.add-terrain-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: skewX(-20deg);
}

.add-terrain-submit:hover::before {
  left: 150%;
}

/* Reflet en haut du bouton */
.add-terrain-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 50%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0) 100%);
  border-radius: 16px 16px 50% 50%;
  pointer-events: none;
  opacity: 0.5;
}

.add-terrain-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.add-terrain-submit:active {
  transform: translateY(-1px) scale(0.98);
}

.add-terrain-submit svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

.add-terrain-submit span {
  position: relative;
  z-index: 1;
}

/* File input - Dark */
.add-terrain-form input[type="file"] {
  padding: 20px 16px;
  border: 2px dashed rgba(59, 130, 246, 0.3);
  background: rgba(30, 41, 59, 0.4);
  cursor: pointer;
  font-size: 0.85rem;
  color: #94a3b8;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.add-terrain-form input[type="file"]:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

.add-terrain-form input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.add-terrain-form input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}


/* Système d'horaires comme dans la capture */
.hours-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hours-info-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Sélection des jours - Boutons ronds */
.days-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.day-btn {
  padding: 12px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.day-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.day-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Plages horaires - Champs séparés */
.time-slots-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.time-slot {
  display: flex;
  justify-content: center;
}

.time-slot-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.2s ease;
  min-width: 200px;
  justify-content: center;
}

.time-slot-inputs:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

.time-slot-inputs:focus-within {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.time-hour,
.time-minute {
  width: 40px !important;
  padding: 8px 4px !important;
  border: none !important;
  background: transparent !important;
  color: #3b82f6 !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  outline: none !important;
  font-family: 'Sora', sans-serif !important;
}

.time-hour::placeholder,
.time-minute::placeholder {
  color: rgba(59, 130, 246, 0.4) !important;
}

.time-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  font-weight: 700;
}

.hours-section>label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
}

.hours-info-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Périodes matin/après-midi - Nouveau design */
.hours-periods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.period-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  position: relative;
}

.period-row:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.period-delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0;
}

.period-row:hover .period-delete-btn {
  opacity: 1;
}

.period-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.period-delete-btn svg {
  width: 16px;
  height: 16px;
}

.period-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.period-times {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.period-times input[type="time"],
.period-start,
.period-end {
  padding: 10px 14px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-family: 'Sora', sans-serif !important;
  background: rgba(15, 23, 42, 0.6) !important;
  min-width: 110px !important;
  width: auto !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s ease !important;
}

.period-times input[type="time"]:hover,
.period-start:hover,
.period-end:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.period-times input[type="time"]:focus,
.period-start:focus,
.period-end:focus {
  border-color: #3b82f6 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  background: rgba(59, 130, 246, 0.1) !important;
}

.period-times .arrow-icon {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.add-period-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  color: #3b82f6;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  width: 100%;
}

.add-period-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.add-period-btn svg {
  width: 18px;
  height: 18px;
}

.hours-mode-selector {
  display: flex;
  gap: 0.5rem;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.mode-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hours-mode-content {
  display: grid;
  gap: 1rem;
}

.period-section {
  display: grid;
  gap: 0.4rem;
}

.period-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

#customMode textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  background: rgba(30, 41, 59, 0.6);
  color: #f1f5f9;
  resize: vertical;
  line-height: 1.5;
  transition: all 0.2s ease;
}

#customMode textarea::placeholder {
  color: #64748b;
}

#customMode textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.hours-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-row input[type="time"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  background: rgba(30, 41, 59, 0.6);
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.hours-row input[type="time"]:focus {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

.hours-row input[type="time"]:disabled {
  background: rgba(15, 23, 42, 0.3);
  color: #64748b;
  cursor: not-allowed;
}

.hours-row span {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Label contenant l'autocomplete adresse */
#addTerrainModal label:has(#trackAddress) {
  position: relative;
  display: block;
}

/* Autocomplete suggestions - Fixed position pour éviter overflow:hidden */
.suggestions-list {
  position: fixed;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 999999;
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  width: calc(520px - 3rem);
  max-width: calc(94vw - 3rem);
}

.suggestions-list:not(:empty) {
  display: block;
  padding: 0.4rem;
}

.suggestions-list li {
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.suggestions-list li:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

/* Section tarifs - Dark */
.pricing-section {
  display: grid;
  gap: 0.8rem;
}

/* Contact row (email + phone) - Dark */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
}

.contact-field input {
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
}

.pricing-table {
  display: grid;
  gap: 0.6rem;
  background: rgba(59, 130, 246, 0.05);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 1.5rem;
}

.pricing-label {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
}

.pricing-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 12px;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  min-width: 120px;
}

.pricing-input-group:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.8);
}

.pricing-input-group:focus-within {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.pricing-input-group input {
  border: none;
  padding: 10px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #f1f5f9;
  flex: 1;
  text-align: right;
  background: transparent;
  min-width: 0;
}

.pricing-input-group input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.pricing-input-group input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.pricing-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3b82f6;
  flex-shrink: 0;
  min-width: 15px;
}

/* Masquer les flèches des inputs number */
.pricing-input-group input[type="number"]::-webkit-inner-spin-button,
.pricing-input-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pricing-input-group input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Mode personnalisé - Horaires jour par jour - Dark */
.custom-schedule {
  display: grid;
  gap: 0.5rem;
}

.custom-day-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.custom-day-row:has(.custom-day-toggle.active) {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.custom-day-toggle {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.28, 0.11, 0.32, 1);
  text-align: left;
  width: 100%;
}

.custom-day-toggle:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
  color: #e2e8f0;
}

.custom-day-toggle.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.custom-day-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.custom-day-hours input[type="time"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  background: rgba(30, 41, 59, 0.6);
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.custom-day-hours input[type="time"]:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.custom-day-hours span {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
}


/* ============================
   FORCE DARK INPUTS - OVERRIDE ALL
   ============================ */

#addTerrainModal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="time"]),
#addTerrainModal textarea,
#addTerrainModal select {
  background: rgba(30, 41, 59, 0.6) !important;
  background-color: rgba(30, 41, 59, 0.6) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
}

#addTerrainModal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="time"]):focus,
#addTerrainModal textarea:focus,
#addTerrainModal select:focus {
  background: rgba(30, 41, 59, 0.8) !important;
  background-color: rgba(30, 41, 59, 0.8) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

#addTerrainModal input::placeholder,
#addTerrainModal textarea::placeholder {
  color: #94a3b8 !important;
}

#addTerrainModal select option {
  background: #1e293b !important;
  color: #ffffff !important;
}


/* ============================
   FIX AUTOCOMPLETE BACKGROUND
   Force dark background on autofill
   ============================ */

#addTerrainModal input:-webkit-autofill,
#addTerrainModal input:-webkit-autofill:hover,
#addTerrainModal input:-webkit-autofill:focus,
#addTerrainModal input:-webkit-autofill:active,
#addTerrainModal select:-webkit-autofill,
#addTerrainModal textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgb(30, 41, 59) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 1000px rgb(30, 41, 59) inset !important;
  background-color: rgb(30, 41, 59) !important;
  color: #ffffff !important;
  caret-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  transition: background-color 600000s 0s, color 600000s 0s !important;
}

#addTerrainModal input:-internal-autofill-selected {
  -webkit-box-shadow: 0 0 0 1000px rgb(30, 41, 59) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: rgb(30, 41, 59) !important;
}

/* Firefox autofill */
#addTerrainModal input:autofill,
#addTerrainModal select:autofill,
#addTerrainModal textarea:autofill {
  background-color: rgb(30, 41, 59) !important;
  color: #ffffff !important;
}


/* ============================
   FIX HOURS MODE TOGGLE - DARK
   ============================ */

#addTerrainModal .hours-mode-toggle,
#addTerrainModal .hours-mode-selector {
  display: flex !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  gap: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: fit-content !important;
}

#addTerrainModal .hours-mode-btn,
#addTerrainModal .mode-btn {
  padding: 10px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

#addTerrainModal .hours-mode-btn:hover:not(.active),
#addTerrainModal .mode-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
}

#addTerrainModal .hours-mode-btn.active,
#addTerrainModal .mode-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* ============================
   FIX HOURS PREVIEW - DARK
   ============================ */

#addTerrainModal .hours-preview {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 12px 16px !important;
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  margin-top: 1rem !important;
}

#addTerrainModal .hours-preview-label {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
}

#addTerrainModal .hours-preview-value,
#addTerrainModal #hoursPreview {
  color: #3b82f6 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}


/* ============================
   FIX CUSTOM HOURS MODE - DARK
   ============================ */

#addTerrainModal .custom-days-list,
#addTerrainModal .hours-custom-mode {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#addTerrainModal .custom-day-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  background: rgba(30, 41, 59, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
}

#addTerrainModal .custom-day-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 130px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
}

#addTerrainModal .custom-day-check,
#addTerrainModal .custom-day-toggle input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

#addTerrainModal .custom-day-check:checked,
#addTerrainModal .custom-day-toggle input[type="checkbox"]:checked {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

#addTerrainModal .custom-day-check:checked::after,
#addTerrainModal .custom-day-toggle input[type="checkbox"]:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: bold !important;
}

#addTerrainModal .custom-day-name {
  color: #e2e8f0 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

#addTerrainModal .custom-day-hours {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
  justify-content: flex-end !important;
}

#addTerrainModal .custom-day-hours input[type="time"],
#addTerrainModal .custom-start,
#addTerrainModal .custom-end {
  padding: 10px 12px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: #3b82f6 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  min-width: 110px !important;
  width: auto !important;
  text-align: center !important;
}

#addTerrainModal .custom-day-hours input[type="time"]:disabled,
#addTerrainModal .custom-start:disabled,
#addTerrainModal .custom-end:disabled {
  background: rgba(15, 23, 42, 0.4) !important;
  color: #64748b !important;
  opacity: 0.5 !important;
}

#addTerrainModal .custom-day-hours input[type="time"]:not(:disabled):focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

#addTerrainModal .custom-day-hours>span {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

/* Fix all checkboxes in the modal */
#addTerrainModal input[type="checkbox"]:not(.custom-day-check):not(.day-checkbox) {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  position: relative !important;
}

#addTerrainModal input[type="checkbox"]:not(.custom-day-check):not(.day-checkbox):checked {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

#addTerrainModal input[type="checkbox"]:not(.custom-day-check):not(.day-checkbox):checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

/* ===========================================
   SECTION BLOCKS - Horaires & Tarifs séparés
   =========================================== */

.section-block {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.section-block:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

/* Séparateur entre sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 20%,
      rgba(59, 130, 246, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 80%,
      transparent 100%);
  margin: 20px 0;
}

/* ===========================================
   TIME PERIODS - Matin / Après-midi design
   =========================================== */

.time-periods-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-period {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.time-period:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(59, 130, 246, 0.2);
}

.time-period .period-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-period .period-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.time-period .time-slot-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.time-period .time-slot-inputs:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

.time-period .time-slot-inputs:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.time-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  font-weight: 500;
}

.time-period .time-hour,
.time-period .time-minute {
  width: 32px !important;
  padding: 4px 2px !important;
  border: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  outline: none !important;
}

.time-period .time-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Pricing block specific styling */
.pricing-block .pricing-sliders {
  margin-top: 0;
}

/* Responsive ajustements */
@media (max-width: 480px) {
  .time-period .period-times {
    flex-direction: column;
    gap: 8px;
  }

  .time-arrow {
    transform: rotate(90deg);
  }

  .section-block {
    padding: 16px;
  }
}

/* ===========================================
   DAY SCHEDULE - Toggles par jour style iOS
   =========================================== */

.day-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.day-schedule-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  transition: all 0.25s ease;
}

.day-schedule-row:first-child {
  border-radius: 12px 12px 0 0;
}

.day-schedule-row:last-child {
  border-radius: 0 0 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.day-schedule-row:hover {
  background: rgba(30, 41, 59, 0.6);
}

/* Checkbox wrapper avec nom jour en dessous */
.day-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}

/* Custom checkbox style */
.day-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.day-checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(75, 85, 99, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-checkbox-label input:checked+.checkbox-custom {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #3b82f6;
}

.checkbox-custom::after {
  content: '';
  display: none;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.day-checkbox-label input:checked+.checkbox-custom::after {
  display: block;
}

.day-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #e2e8f0;
  text-align: center;
}

/* Time inputs - Format DE 09 : À 17 : */
.day-times {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.day-schedule-row.closed .day-times {
  display: none;
}

.time-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-input-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.time-input-box:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.time-input-box:focus-within {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.time-hour {
  width: 32px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #3b82f6 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  outline: none !important;
  font-family: 'Sora', sans-serif !important;
}

.time-hour:disabled {
  color: rgba(255, 255, 255, 0.3) !important;
}

.time-colon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  font-weight: 600;
}

/* Closed badge */
.day-closed-badge {
  display: none;
  padding: 8px 20px;
  background: rgba(75, 85, 99, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
}

.day-schedule-row.closed .day-closed-badge {
  display: block;
}

.day-schedule-row.closed .day-name {
  color: rgba(255, 255, 255, 0.35);
}

.day-schedule-row.closed .checkbox-custom {
  background: rgba(75, 85, 99, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 520px) {
  .day-schedule-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .day-toggle-wrapper {
    flex-direction: row;
    min-width: auto;
    gap: 8px;
  }

  .day-times {
    width: 100%;
    justify-content: flex-start;
  }

  .time-input-box {
    padding: 6px 10px;
  }
}

/* ==================================================
   NOUVEAU SCHEDULE - Toggle iOS Style (sans conflit)
   ================================================== */

.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
}

.schedule-day:first-child {
  border-radius: 10px 10px 0 0;
}

.schedule-day:last-child {
  border-radius: 0 0 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Toggle wrapper avec nom du jour */
.schedule-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 60px;
}

/* Toggle switch iOS style */
.toggle-input {
  display: none !important;
}

.toggle-label {
  width: 36px;
  height: 20px;
  background: rgba(120, 113, 108, 0.5);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block;
}

.toggle-label::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked+.toggle-label {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.toggle-input:checked+.toggle-label::before {
  transform: translateX(16px);
}

.schedule-day-name {
  font-size: 0.65rem;
  font-weight: 500;
  color: #e2e8f0;
  text-align: center;
}

/* Time inputs */
.schedule-times {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.schedule-day.is-closed .schedule-times {
  display: none;
}

.schedule-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.schedule-time-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  color: #3b82f6;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Sora', sans-serif;
  outline: none;
  transition: all 0.2s ease;
  color-scheme: dark;
}

.schedule-time-input:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.schedule-time-input:focus {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.schedule-time-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Closed badge */
.schedule-closed {
  display: none;
  padding: 5px 14px;
  background: rgba(75, 85, 99, 0.3);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-day.is-closed .schedule-closed {
  display: flex;
}

.schedule-day.is-closed .schedule-day-name {
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 520px) {
  .schedule-day {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .schedule-toggle {
    flex-direction: row;
    min-width: auto;
    gap: 8px;
  }

  .schedule-times {
    width: 100%;
    justify-content: flex-start;
  }

  .schedule-time-box {
    padding: 6px 10px;
  }
}


/* ============================
   FIX ZOOM iOS - INPUTS 16PX MINIMUM
   ============================ */
@media (max-width: 768px) {
  #addTerrainModal .add-terrain-form input,
  #addTerrainModal .add-terrain-form textarea,
  #addTerrainModal .add-terrain-form select,
  #addTerrainModal .add-terrain-form input[type="text"],
  #addTerrainModal .add-terrain-form input[type="email"],
  #addTerrainModal .add-terrain-form input[type="tel"],
  #addTerrainModal .add-terrain-form input[type="number"],
  #addTerrainModal .add-terrain-form input[type="time"] {
    font-size: 16px !important;
  }

  /* Scroll vertical uniquement sur le modal-content */
  #addTerrainModal .modal-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #addTerrainModal .add-terrain-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
