/* Product Images Styling */
.product-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.product-image-fallback {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Ensure images don't break the layout */
.avatar.avatar-sm {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image error handling */
.product-image-error {
  display: none;
}

/* Hover effects for product images */
.product-image:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Settings Toggle Specific Styling */
.settings-toggle {
  padding-left: 3rem;
}

.settings-toggle-input {
  width: 2.5rem !important;
  height: 1.25rem !important;
  margin-left: -3rem !important;
  background-image: none !important;
  background-color: rgba(58,65,111,0.1) !important;
  border: 1px solid #e9ecef !important;
  border-radius: 2.5rem !important;
  position: relative !important;
  transition: background-color 0.25s ease, border-color 0.25s ease !important;
}

.settings-toggle-input:after {
  content: "" !important;
  width: 1rem !important;
  height: 1rem !important;
  border-radius: 50% !important;
  position: absolute !important;
  background-color: #fff !important;
  transform: translateX(1px) !important;
  box-shadow: 0 0.25rem 0.375rem -0.0625rem hsla(0,0%,8%,0.12), 0 0.125rem 0.25rem -0.0625rem hsla(0,0%,8%,0.07) !important;
  top: 1px !important;
  transition: transform 0.25s ease-in-out !important;
}

.settings-toggle-input:checked {
  background-color: rgba(58,65,111,0.95) !important;
  border-color: rgba(58,65,111,0.95) !important;
}

.settings-toggle-input:checked:after {
  transform: translateX(21px) !important;
}

.settings-toggle-label {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  margin-bottom: 0 !important;
  padding-left: 0.5rem !important;
}

/* Remove any unwanted pseudo-elements from settings toggle */
.settings-toggle-label::before,
.settings-toggle-label::after {
  display: none !important;
}

/* Image card styling */
.card.position-relative {
  transition: all 0.2s ease;
}

.card.position-relative:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
