/* Conteneur général */
.table-responsive {
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table personnalisée */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
.bienvenueAdmin {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.sidebarAdmin {
  position: fixed; /* ou absolute */
  top: 80px; /* Ajuste selon la hauteur de ton header */
  left: 0;
  height: 100%;
  width: 280px;
  background-color: #1f1f1f;
  z-index: 1000;
}

.bienvenueAdmin h1.display-5 {
  font-size: 1.6rem; /* Réduit par rapport à 2.5rem */
  font-weight: 500;
  color: #b58dff;
  margin: 0;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
#colIngredientDroit {
  padding-left: 1rem; /* ou moins */
  padding-right: 1rem;
}

.admin-table thead {
  background: #f9f9f9;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

/* Hover sur les lignes */
.admin-table tbody tr:hover {
  background: #f5f5f5;
}

/* Colonnes image */
.imageColumn img.ingredientAvatar {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

/* Overlay Modifier */
.editOverlay {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #6200ea;
  text-decoration: none;
}

.editOverlay:hover {
  text-decoration: underline;
}

/* Statuts */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-validated {
  background: #d4edda;
  color: #155724;
}

.status-removed {
  background: #f8d7da;
  color: #721c24;
}

/* Boutons actions */
.admin-table button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.btn-primary {
  background: #007bff;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-success {
  background: #28a745;
}

.btn-success:hover {
  background: #1e7e34;
}

.btn-danger {
  background: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}


/*admin/gestionIngredient.php*/
/* --- Menu de filtre --- */
.gestionMenuIng ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 1rem;
  margin: 1rem 0;
  background-color: #1f1f1f;
  border-radius: 8px;
  justify-content: center;
  gap: 1rem;
}

.gestionMenuIng ul li {
  margin: 0;
}

.gestionMenuIng ul li a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  background-color: #2c2c2c;
  color: #c9c9c9;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gestionMenuIng ul li a:hover,
.gestionMenuIng ul li a.active {
  background-color: #8e44ff;
  color: #fff;
}

/* --- Tableau principal --- */
.table-responsive {
  overflow-x: auto;
}

#ingredientTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #1a1a1a;
  color: #eee;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

#ingredientTable thead {
  background-color: #2c2c2c;
}

#ingredientTable thead th {
  padding: 12px;
  text-transform: uppercase;
  font-weight: bold;
  color: #b58dff;
  text-align: center;
  border-bottom: 1px solid #444;
}

#ingredientTable tbody td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}

#ingredientTable tbody tr:hover {
  background-color: #292929;
}

/* --- Image + Modif bouton --- */
.ingredientImageWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ingredientAvatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #444;
}

.editOverlay {
  font-size: 12px;
  color: #b58dff;
  text-decoration: underline;
  cursor: pointer;
}

.editOverlay:hover {
  color: #d3a5ff;
}

/* --- Boutons action --- */
.btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #fff;
}

.btn-primary {
  background-color: #6c63ff;
}

.btn-primary:hover {
  background-color: #5247d6;
}

.btn-success {
  background-color: #28a745;
}

.btn-success:hover {
  background-color: #1c7c36;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #a52835;
}

/* --- Statut visuel dans le tableau --- */
td:nth-child(7) {
  font-weight: bold;
  text-transform: capitalize;
}

tr[data-status="0"] td:nth-child(7) {
  color: #f1c40f;
}

tr[data-status="1"] td:nth-child(7) {
  color: #2ecc71;
}

tr[data-status="3"] td:nth-child(7) {
  color: #e74c3c;
}
