/* Styles pour le composant ProfileForm */

.profile-form {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in;
}

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

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #e0e0e0;
  text-align: center;
  border-bottom: 2px solid #ff6b6b;
  padding-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}

#profile-select-group {
  background: #222;
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #4CAF50;
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e0e0e0;
}

.form-group small {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  background: #1a1a1a;
  border: 2px solid #444;
  border-radius: 4px;
  color: #e0e0e0;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

.form-control::placeholder {
  color: #666;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
}

.btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ff8e72);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #444;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background: #555;
}

.form-message {
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid #4caf50;
}

.form-message.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid #f44336;
}

.form-message.info {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  border: 1px solid #2196f3;
}

/* Responsive design */
@media (max-width: 768px) {
  .profile-form {
    margin: 10px;
    padding: 20px;
  }

  .form-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    max-width: 100%;
  }
}
