/* PARTICIPANTS MANAGER - Styles pour la gestion des participants */

.participants-container {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.participants-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #2c3e50;
}

.participants-label span:first-child {
  font-size: 0.95rem;
}

.participants-count {
  background: #3b82f6;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.participants-list {
  margin-bottom: 0.75rem;
}

.participant-item {
  margin-bottom: 0.5rem;
}

.participant-item:last-child {
  margin-bottom: 0;
}

.participant-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.participant-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: white;
}

.participant-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.participant-input.warning {
  border-color: #f59e0b;
  background-color: #fef3c7;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  75% {
    transform: translateX(2px);
  }
}

.btn-remove-participant {
  background: transparent;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-participant:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.btn-remove-participant:active {
  transform: scale(0.95);
}

.btn-add-participant {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.btn-add-participant:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-add-participant:active {
  transform: translateY(0);
}

.btn-add-participant:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .participants-container {
    padding: 0.75rem;
  }

  .participant-input {
    font-size: 16px;
    /* Évite le zoom sur iOS */
  }

  .btn-remove-participant {
    min-width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
}

/* Animation d'apparition */
.participant-item {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* États de validation */
.participants-container.valid {
  border-color: #10b981;
}

.participants-container.invalid {
  border-color: #ef4444;
}

.participants-container.invalid .participants-label {
  color: #ef4444;
}