.flatpickr-calendar,
#inline-calendar .flatpickr-calendar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  font-family: 'Inter', -apple-system, sans-serif;
}

.flatpickr-months {
  padding: 10px 0 !important;
}

.flatpickr-month {
  height: 50px !important;
}

.flatpickr-current-month {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  color: #1a1d24;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  left: 0 !important;
  pointer-events: none !important;
}

.flatpickr-current-month .cur-month,
.flatpickr-current-month input.cur-year {
  cursor: default !important;
  background: transparent !important;
  color: #1a1d24 !important;
}

.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month input.cur-year:focus {
  background: transparent !important;
  outline: none !important;
}

.flatpickr-innerContainer{
	justify-self: center !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  height: 50px !important;
  width: 50px !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 5px !important;
  color: #10b981 !important;
  fill: #10b981 !important;
  transition: transform 0.2s ease;
}

.flatpickr-prev-month {
  left: 5px !important;
}

.flatpickr-next-month {
  right: 5px !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 24px !important;
  height: 24px !important;
  fill: #10b981 !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  transform: scale(1.1);
}

.flatpickr-weekday {
  color: #9ca3af !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.flatpickr-day {
  border-radius: 50% !important;
  color: #333;
  font-weight: 500;
  height: 40px;
  line-height: 40px;
  margin-top: 2px;
}

.flatpickr-day.selected {
  background: #10b981 !important;
  border: none !important;
  color: white !important;
}

.flatpickr-day:hover {
  background: #f3f4f6 !important;
}

.time-filter-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb; /* Ligne séparatrice discrète */
    display: flex;
    justify-content: center;
}

/* La "pilule" contenant le label et le champ */

.time-filter-group {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pousse le texte à gauche et le select à droite */
    background-color: #f9fafb;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
}


/* Style du texte "À partir de :" */
.time-filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563; /* Gris moyen pour ne pas voler la vedette à la date */
    margin: 0;
    white-space: nowrap;
}



/* Icône verte rappelant la couleur Flatpickr */
.clock-icon {
    color: #10b981; 
}

/* Conteneur relatif pour positionner la flèche SVG par dessus le select */
.custom-select-wrapper {
    position: relative;
    width: 80px; /* Taille fixe et parfaite pour "HH:MM" */
}

/* Le vrai bouton <select> stylisé */
.custom-time-select {
    appearance: none;         /* Masque le style moche par défaut sur Chrome/Firefox */
    -webkit-appearance: none; /* Masque sur Safari */
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 32px 8px 12px; /* De la place à droite (32px) pour la flèche SVG */
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1d24; /* Même noir que les jours du Flatpickr */
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Ombre très légère */
}

/* Effets au survol et au clic (Focus) */
.custom-time-select:hover {
    border-color: #10b981;
}

.custom-time-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); /* Halo vert "glow" */
}

/* La petite flèche droite pointant vers le bas */
.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none; /* CRUCIAL: Empêche le SVG de bloquer le clic sur le select en dessous */
}

.date-modal-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.btn-validate {
    background-color: #10b981; /* Ton vert principal */
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    width: 100%; /* Prend toute la largeur de la modale */
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-validate:hover {
    background-color: #059669; /* Vert légèrement plus foncé au survol */
}

.btn-validate:active {
    transform: scale(0.98); /* Petit effet d'enfoncement très "app mobile" */
}