/* Product Dialog Core Styles - Tailwind CSS Equivalent */

/* Dialog Overlay & Container */
.product-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.product-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.product-dialog-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

/* Dialog Body - bg-card-light w-full max-w-[1200px] h-[85vh] rounded-xl shadow-2xl flex flex-col overflow-hidden border */
.product-dialog-body {
  background-color: #ffffff;
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  border-radius: 16px; /* rounded-xl */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
 padding: 24px 0px 24px 0px;
}

/* Header - flex justify-between items-start px-8 py-6 border-b shrink-0 */
.product-dialog-body > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
    padding: 0rem 1.5rem 0.5rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

/* text-xl font-bold */
.product-dialog-body h1 {
  font-size: 1.25rem; /* text-xl */
  line-height: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* text-sm mt-1 */
.product-dialog-body > div:first-child p {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: #6b7280;
  margin-top: 0.25rem; /* mt-1 */
  margin-bottom: 0;
}

/* Close button - transition-colors */
.product-dialog-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.product-dialog-close:hover {
  color: #111827;
}

.product-dialog-close .material-icons {
  font-size: 1.5rem; /* text-2xl */
}

/* Main Content - flex flex-1 overflow-hidden */
.product-dialog-body > div:nth-child(2) {
  display: flex;
  flex: 1 1 0%;
  overflow: hidden;
}

/* Left Panel - w-1/3 flex flex-col p-6 border-r overflow-y-auto custom-scrollbar */
.product-dialog-body > div:nth-child(2) > div:first-child {
  width: 33.333333%; /* w-1/3 */
  display: flex;
  flex-direction: column;
  padding: 1.5rem; /* p-6 */
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

/* mb-4 */
.product-dialog-body > div:nth-child(2) > div:first-child > div:first-child {
  margin-bottom: 1rem; /* mb-4 */
}

/* text-base font-semibold */
.product-dialog-body > div:nth-child(2) > div:first-child h2 {
  font-size: 1rem; /* text-base */
  line-height: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* text-xs mt-1 */
.product-dialog-body > div:nth-child(2) > div:first-child > div:first-child > p {
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  color: #6b7280;
  margin-top: 0.25rem; /* mt-1 */
  margin-bottom: 0;
}

/* Layout Options Container - space-y-6 */
.product-dialog-body > div:nth-child(2) > div:first-child > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

/* Layout Option Item - flex items-center gap-4 group */
.layout-option {
  display: flex;
  align-items: center;
  gap: 1rem; /* gap-4 */
  cursor: pointer;
}

/* Custom Radio Button (Layout Preview) */
.layout-radio-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

/* Hide the default radio button */
.layout-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom radio visual */
.custom-radio {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem; /* 4px - rounded */
  border: 1px solid rgba(224, 224, 224, 1);
  background-color: #ffffff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Checkmark icon - hidden by default */
.radio-checkmark {
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

/* When radio is checked */
.layout-radio:checked + .custom-radio {
  background: rgba(231, 0, 11, 0.1);
  border: 1px solid rgba(224, 224, 224, 1);
}

/* Show checkmark when checked */
.layout-radio:checked + .custom-radio .radio-checkmark {
  opacity: 1;
  transform: scale(1);
}

/* Hover effect */
.layout-radio-wrapper:hover .custom-radio {
  border-color: rgba(224, 224, 224, 1);
}

/* Focus visible for accessibility */
.layout-radio:focus-visible + .custom-radio {
  outline: 2px solid rgba(224, 224, 224, 1);
  outline-offset: 2px;
}

/* flex-1 bg-white border rounded-xl p-4 shadow-sm hover:shadow-md transition-shadow cursor-pointer */
.layout-option > div:last-child {
  flex: 1 1 0%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px; /* rounded-xl */
  padding: 1rem; /* p-4 */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  cursor: pointer;
  transition: all 0.2s ease;
}

.layout-option > div:last-child:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* hover:shadow-md */
}

/* When layout is selected, change the preview card background and border */
.layout-option:has(.layout-radio:checked) > div:last-child,
.layout-option.layout-selected > div:last-child {
  background: rgba(231, 0, 11, 0.1) !important;
  border: 1px solid rgba(231, 0, 11, 1) !important;
}

/* Centered Layout Preview - flex flex-col items-center text-center */
.layout-option > div:last-child > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* w-16 h-16 rounded-full object-cover mb-3 */
.layout-option[data-layout="centered"] img {
  width: 4rem; /* w-16 */
  height: 4rem; /* h-16 */
  border-radius: 9999px; /* rounded-full */
  object-fit: cover;
  margin-bottom: 0.75rem; /* mb-3 */
}

/* font-semibold text-sm */
.layout-option[data-layout="centered"] h3 {
  font-weight: 600;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: #111827;
  margin: 0;
}

/* text-xs mt-1 */
.layout-option[data-layout="centered"] p:first-of-type {
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  color: #6b7280;
  margin-top: 0.25rem; /* mt-1 */
  margin-bottom: 0;
}

/* text-sm font-bold text-primary mt-2 */
.layout-option[data-layout="centered"] p:last-of-type {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 700;
  color: #EC003F; /* text-primary */
  margin-top: 0.5rem; /* mt-2 */
  margin-bottom: 0;
      width: 68px;
    height: 24px;
    background: #FDF2F8;
    border-radius: 16px;
}

/* Horizontal Layout Preview - flex items-center gap-4 */
.layout-option[data-layout="horizontal"] > div:last-child > div {
  display:flex;
  flex-direction: row;
  gap: 1rem; /* gap-4 */
}

/* w-14 h-14 rounded-full object-cover */
.layout-option[data-layout="horizontal"] img {
  width: 3.5rem; /* w-14 */
  height: 3.5rem; /* h-14 */
  border-radius: 9999px; /* rounded-full */
  object-fit: cover;
}

/* font-semibold text-sm */
.layout-option[data-layout="horizontal"] h3 {
  font-weight: 600;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: #111827;
  margin: 0;
}

/* text-xs mt-1 */
.layout-option[data-layout="horizontal"] p:first-of-type {
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  color: #6b7280;
  margin-top: 0.25rem; /* mt-1 */
  margin-bottom: 0;
}

/* text-sm font-bold text-primary mt-1 */
.layout-option[data-layout="horizontal"] p:last-of-type {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 700;
  color: #EC003F; /* text-primary */
  margin-top: 0.25rem; /* mt-1 */
  margin-bottom: 0;
  width: 68px;
    height: 24px;
    background: #FDF2F8;
    border-radius: 16px;
}

/* Card Layout Preview - overflow-hidden */
.layout-option[data-layout="card"] > div:last-child {
  overflow: hidden;
}

/* h-24 w-full relative */
.layout-option[data-layout="card"] > div:last-child > div:first-child {
  height: 6rem; /* h-24 */
  width: 100%;
  position: relative;
}

/* w-full h-full object-cover */
.layout-option[data-layout="card"] > div:last-child > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* p-3 */
.layout-option[data-layout="card"] > div:last-child > div:last-child {
  padding: 0.75rem; /* p-3 */
}

/* font-semibold text-sm */
.layout-option[data-layout="card"] h3 {
  font-weight: 600;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: #111827;
  margin: 0;
}

/* text-xs mt-1 */
.layout-option[data-layout="card"] p:first-of-type {
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  color: #6b7280;
  margin-top: 0.25rem; /* mt-1 */
  margin-bottom: 0;
}

/* text-sm font-bold text-primary mt-2 */
.layout-option[data-layout="card"] p:last-of-type {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 700;
  color: #EC003F; /* text-primary */
  margin-top: 0.5rem; /* mt-2 */
  margin-bottom: 0;
  width: 68px;
    height: 24px;
    background: #FDF2F8;
    border-radius: 16px;
    text-align: center;

}

/* Middle Panel - w-1/3 flex flex-col border-r bg-background-light/50 */
.product-dialog-body > div:nth-child(2) > div:nth-child(2) {
  width: 33.333333%; /* w-1/3 */
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background-color: rgba(249, 250, 251, 0.5);
}

/* Search Header - p-4 border-b flex gap-3 sticky top-0 bg-card-light z-10 */
.product-dialog-body > div:nth-child(2) > div:nth-child(2) > div:first-child {
  padding: 1rem; /* p-4 */
  display: flex;
  gap: 0.75rem; /* gap-3 */
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 10;
}

/* relative flex-1 */
.product-dialog-body > div:nth-child(2) > div:nth-child(2) > div:first-child > div {
  position: relative;
  flex: 1 1 0%;
}

/* absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 text-lg */
.product-dialog-body > div:nth-child(2) > div:nth-child(2) > div:first-child > div .material-icons {
  position: absolute;
  left: 0.75rem; /* left-3 */
  top: 50%;
  transform: translateY(-50%); /* -translate-y-1/2 */
  color: #9ca3af; /* text-gray-400 */
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75rem;
}

/* w-full pl-10 pr-4 py-2 text-sm bg-white border rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent outline-none placeholder-gray-400 */
#dialog-product-search {
  width: 100%;
  padding-left: 2.5rem; /* pl-10 */
  padding-right: 1rem; /* pr-4 */
  padding-top: 0.5rem; /* py-2 */
  padding-bottom: 0.5rem;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px; /* rounded-lg */
  outline: 2px solid transparent;
  outline-offset: 2px;
  color: #111827;
  transition-property: color, background-color, border-color, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

#dialog-product-search:focus {
  border-color: transparent; /* focus:border-transparent */
  box-shadow: 0 0 0 2px #2563eb; /* focus:ring-2 focus:ring-primary */
}

#dialog-product-search::placeholder {
  color: #9ca3af; /* placeholder-gray-400 */
}

/* px-3 py-2 text-sm font-medium bg-white border rounded-lg hover:bg-gray-50 transition-colors whitespace-nowrap */
#dialog-select-all-btn {
  padding-left: 0.75rem; /* px-3 */
  padding-right: 0.75rem;
  padding-top: 0.5rem; /* py-2 */
  padding-bottom: 0.5rem;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 500;
  color: #6b7280;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px; /* rounded-lg */
  white-space: nowrap;
  cursor: pointer;
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

#dialog-select-all-btn:hover {
  background-color: #f9fafb; /* hover:bg-gray-50 */
}

/* Products List - flex-1 overflow-y-auto p-4 space-y-3 custom-scrollbar */
#dialog-products-list {
  flex: 1 1 0%;
  overflow-y: auto;
  padding: 1rem; /* p-4 */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space-y-3 */
  height: 90px;
}

/* text-center py-8 */
#dialog-products-list > div {
  text-align: center;
  padding-top: 2rem; /* py-8 */
  padding-bottom: 2rem;
  color: #6b7280;
}

/* Product Item - flex items-center gap-3 bg-white p-3 rounded-lg border hover:border-gray-300 transition-colors group cursor-pointer */
.dialog-product-item {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  background-color: #ffffff;
  padding: 0.75rem; /* p-3 */
  border-radius:16px; /* rounded-lg */
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition-property: border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  height: 90px;
}

.dialog-product-item:hover {
  border-color: #d1d5db; /* hover:border-gray-300 */
}

/* text-gray-300 cursor-move */
.dialog-product-item .material-icons {
  color: #d1d5db; /* text-gray-300 */
  cursor: move;
  font-size: 1.25rem;
}

/* w-5 h-5 flex items-center justify-center rounded bg-gray-50 border */
.dialog-product-item > div:nth-child(2) {
  width: 1.25rem; /* w-5 */
  height: 1.25rem; /* h-5 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem; /* rounded */
  background-color: #f9fafb; /* bg-gray-50 */
accent-color: #E7000B1A; /* text-primary */

}

/* w-10 h-10 rounded-lg object-cover bg-gray-100 */
.dialog-product-item img {
  width: 64px; /* w-10 */
  height: 64px; /* h-10 */
  border-radius: 16px; /* rounded-lg */
  object-fit: cover;
  background-color: #f3f4f6; /* bg-gray-100 */
}

/* flex-1 min-w-0 */
.dialog-product-item > div:nth-child(4) {
  min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
}

/* text-sm font-medium truncate */
.dialog-product-item h4 {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-wrap: unset;
}

/* text-xs */
.dialog-product-item > div:nth-child(4) > p {
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Right Panel - w-1/3 flex flex-col p-6 items-center justify-center text-center */
.product-dialog-body > div:nth-child(2) > div:last-child {
  width: 33.333333%; /* w-1/3 */
  display: flex;
  flex-direction: column;
  padding: 1.5rem; /* p-6 */
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* w-full flex justify-start mb-4 */
.product-dialog-body > div:nth-child(2) > div:last-child > div:first-child {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem; /* mb-4 */
}

/* text-base font-semibold */
.product-dialog-body > div:nth-child(2) > div:last-child > div:first-child h2 {
  font-size: 1rem; /* text-base */
  line-height: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* flex-1 overflow-y-auto space-y-3 custom-scrollbar */
#dialog-selected-products {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* space-y-3 */
  width: 100%;
  overflow-y: auto; /* Enable vertical scrolling */
  max-height: 100%; /* Ensure it respects parent height constraints */
}

/* flex flex-col items-center justify-center py-8 */
#dialog-selected-products > div.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0.75rem;
  background: #FFFFFF;
  text-align: center;
}

#dialog-selected-products > div.empty-state svg {
  margin-bottom: 1rem;
}

/* text-sm */
#dialog-selected-products > div.empty-state p {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  color: #6b7280;
  margin: 0;
}

/* Selected Product Item - horizontal row layout */
.selected-product-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem !important;
  background-color: #ffffff;
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  width: 100%;
}

.selected-product-item img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  flex-shrink: 0 !important;
  border-radius: 16px;
  object-fit: cover;
  background-color: #f3f4f6;
}

.selected-product-info {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
}

.selected-product-info h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-product-info p {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Selected Product Item - flex items-center gap-3 bg-white p-3 rounded-lg border */
#dialog-selected-products > div[data-id] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem; /* gap-3 */
  background-color: #ffffff;
  padding: 0.75rem; /* p-3 */
  border-radius: 16px; /* rounded-lg */
  border: 1px solid #e5e7eb;
}

/* Force row layout for first product too */
#dialog-selected-products > div[data-id]:first-child,
#dialog-selected-products > div[data-id]:first-of-type {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Ensure no column layout on any selected product */
#dialog-selected-products > div:not(.empty-state) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

/* w-12 h-12 rounded-lg object-cover bg-gray-100 */
#dialog-selected-products img {
  width: 64px; /* w-12 */
  height: 64px; /* h-12 */
  min-width: 64px;
  max-width: 64px;
  flex-shrink: 0;
  border-radius: 16px; /* rounded-lg */
  object-fit: cover;
  background-color: #f3f4f6; /* bg-gray-100 */
}

/* flex-1 min-w-0 text-left */
#dialog-selected-products > div[data-id] > div:nth-child(2) {
  flex: 1 1 0%;
  min-width: 0;
  text-align: left;
}

/* text-sm font-medium truncate */
#dialog-selected-products h4 {
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* text-xs */
#dialog-selected-products > div[data-id] > div:nth-child(2) p {
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* text-red-500 hover:text-red-700 transition */
.remove-selected-product {
  background: none;
  border: none;
  color: #ef4444; /* text-red-500 */
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.remove-selected-product:hover {
  color: #dc2626; /* hover:text-red-700 */
}

/* text-lg */
.remove-selected-product .material-icons {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75rem;
}

/* Footer - flex justify-end items-center gap-3 px-8 py-5 border-t shrink-0 */
.product-dialog-body > div:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  padding-left: 2rem; /* px-8 */
  padding-right: 2rem;
  padding-top: 1.25rem; /* py-5 */
  padding-bottom: 1.25rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

/* Cancel button - px-6 py-2.5 text-sm font-medium bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors */
.product-dialog-body > div:last-child button:first-child {
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
  padding-top: 0.625rem; /* py-2.5 */
  padding-bottom: 0.625rem;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 500;
  color: #6b7280;
  background-color: #ffffff;
  border: 1px solid #d1d5db; /* border-gray-300 */
  border-radius: 16px; /* rounded-lg */
  cursor: pointer;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.product-dialog-body > div:last-child button:first-child:hover {
  background-color: #f9fafb; /* hover:bg-gray-50 */
}

/* Update Menu button - px-6 py-2.5 text-sm font-medium text-white bg-primary rounded-lg hover:bg-primary-hover shadow-sm transition-colors */
.product-dialog-body > div:last-child button:last-child {
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
  padding-top: 0.625rem; /* py-2.5 */
  padding-bottom: 0.625rem;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #BA474C; /* bg-primary */
  border: none;
  border-radius: 16px; /* rounded-lg */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  cursor: pointer;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.product-dialog-body > div:last-child button:last-child:hover {
  background-color: rgba(231, 0, 11, 1); /* hover:bg-primary-hover (blue-700) */
}

/* Custom Scrollbar - Tailwind doesn't have default scrollbar styling, this is custom */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background-color: #f3f4f6; /* gray-100 */
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #d1d5db; /* gray-300 */
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af; /* gray-400 */
}

/* Dark Mode Support - dark: variants in Tailwind */
@media (prefers-color-scheme: dark) {
  /* dark:bg-card-dark dark:border-border-dark */
  .product-dialog-body {
    background-color: #1f2937; /* gray-800 */
    border-color: #374151; /* gray-700 */
  }

  /* dark:text-text-main-dark */
  .product-dialog-body h1,
  .product-dialog-body h2,
  .product-dialog-body h3 {
    color: #f9fafb; /* gray-50 */
  }

  /* dark:text-text-sub-dark */
  .product-dialog-body p {
    color: #9ca3af; /* gray-400 */
  }

  /* dark:border-border-dark */
  .product-dialog-body > div:first-child,
  .product-dialog-body > div:nth-child(2) > div:first-child,
  .product-dialog-body > div:nth-child(2) > div:nth-child(2),
  .product-dialog-body > div:last-child {
    border-color: #374151; /* gray-700 */
  }

  /* dark:bg-gray-800 dark:border-gray-600 */
  .layout-option > div:last-child,
  .dialog-product-item,
  .selected-product-item,
  #dialog-selected-products > div[data-id],
  #dialog-product-search,
  #dialog-select-all-btn {
    background-color: #1f2937; /* gray-800 */
    border-color: #4b5563; /* gray-600 */
    color: #f9fafb;
  }

  /* dark:text-text-main-dark */
  .dialog-product-item h4,
  .selected-product-item h4,
  #dialog-selected-products h4 {
    color: #f9fafb;
  }

  /* dark:bg-background-dark/50 */
  .product-dialog-body > div:nth-child(2) > div:nth-child(2) {
    background-color: rgba(17, 24, 39, 0.5); /* gray-900/50 */
  }

  /* dark:bg-card-dark */
  .product-dialog-body > div:nth-child(2) > div:nth-child(2) > div:first-child {
    background-color: #1f2937; /* gray-800 */
  }

  /* dark:hover:bg-gray-700 */
  #dialog-select-all-btn:hover {
    background-color: #374151; /* gray-700 */
  }

  /* dark:bg-transparent dark:border-gray-600 */
  .product-dialog-body > div:last-child button:first-child {
    background-color: transparent;
    border-color: #4b5563; /* gray-600 */
    color: #9ca3af;
  }

  /* dark:hover:bg-gray-800 */
  .product-dialog-body > div:last-child button:first-child:hover {
    background-color: #1f2937; /* gray-800 */
  }

  /* dark:hover:text-text-main-dark */
  .product-dialog-close:hover {
    color: #f9fafb;
  }

  /* Dark mode for custom radio buttons */
  .custom-radio {
    background-color: #374151; /* gray-700 */
    border-color: transparent;
  }

  .layout-radio-wrapper:hover .custom-radio {
    border-color: transparent;
  }
}

