/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f7f7f7;
  /* Couleur de fond plus claire */
  color: #333;
  margin: 0;
  padding: 0;
}

/* Container principal */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 30px auto;
}
.panel-body {
  display: flex;
  justify-content: space-between;
}

.panel-body form .form-group {
  display: inline-block;
}

.config-product {
  text-align: center;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  background: #2196f3;
  /* Bleu plat */
  padding: 15px;
  border-radius: 8px;
}

.success {
  color: green;
  font-size: 12px;
  font-weight: bold;
  background-color: #e0f7e0;
  padding: 10px;
  border-radius: 5px;
  display: inline-block;
  position: absolute;
  right: 15px;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

/* Animation d'entrée (fade in) */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Animation de sortie (fade out) */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
}

.navbar .logo {
  height: 40px;
  margin-right: auto;
}

.navbar .active {
  font-weight: bold;
  text-decoration: underline;
}

/* Contenu principal */
.content {
  margin-top: 20px;
}

.form-options {
  justify-content: center;
}

.form-submit {
  text-align: center !important;
}

/* Panel */
.panel {
  background: white;
  border-radius: 8px;
  box-shadow: none;
  /* Suppression de l'ombre */
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  /* Bordure légère */
}

.panel-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

/* Formulaire */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  font-size: 15px;
  font-weight: 500;
}

.form-options {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.form-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.form-option input {
  transform: scale(1.2);
  accent-color: #2196f3;
  /* Bleu plat */
}

/* Bouton */
.form-submit {
  margin-top: 15px;
  text-align: left;
}

.btn-primary {
  background-color: #2196f3;
  /* Bleu plat */
  border: none;
  color: white;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #1976d2;
}
.container {
  max-width: 400px;
  margin-top: 40px;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.profile-img {
  display: block;
  margin: 0 auto 20px auto;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0d6efd; /* bootstrap primary color */
}

.container {
  max-width: 400px;
  margin-top: 40px;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Conteneur profil */
.profile-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  position: relative;
  border-radius: 50%;
  border: 3px solid #0d6efd;
  overflow: hidden;
  background-color: #0d6efd; /* couleur de fond par défaut si pas d'image */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: white;
  font-weight: 700;
  user-select: none;
}

.profile-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* On masque l'image si src vide */
.profile-container img[src=""] {
  display: none;
}

input[name="password"] {
  background-color: #e9ecef;
  opacity: 1;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-container:hover {
  color: #007bff; /* Couleur bleue au survol */
}
.navbar-nav {
  align-items: center;
}
#floating-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
#floating-alert.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
