/*!********************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/styles/app.scss ***!
  \********************************************************************************************************************************************************************************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap);
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/PriceModal/PriceModal.scss ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
/* Modal Overlay */
.price-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* Modal Wrapper */
.price-modal-wrapper {
  position: fixed;
  z-index: 10000;
}
.price-modal-wrapper.price-modal-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}
.price-modal-wrapper.price-modal-top-right {
  top: 20px;
  right: 20px;
  max-width: 400px;
}
.price-modal-wrapper.price-modal-bottom-right {
  bottom: 20px;
  right: 20px;
  max-width: 400px;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Premium Modal Container */
.price-modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 100%;
  position: relative;
}
.price-modal-container.mobile {
  max-width: 95vw;
  margin: 10px;
}

.price-modal-header {
  position: relative;
  padding: 0;
}
.price-modal-header .price-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  z-index: 1;
  transition: all 0.2s ease;
}
.price-modal-header .price-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

.price-modal-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.price-modal-guarantee-badge {
  background: #22c55e;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.price-modal-guarantee-text {
  flex: 1;
}
.price-modal-guarantee-text h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}
.price-modal-guarantee-text p {
  margin: 0;
  font-size: 12px;
  color: #15803d;
  line-height: 1.4;
}

/* Confirmation Modal */
.price-modal-confirmation {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  position: relative;
}

.price-modal-confirmation .price-modal-header {
  padding: 24px 24px 16px;
  text-align: center;
}
.price-modal-confirmation .price-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}
.price-modal-confirmation .price-modal-header p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
.price-modal-confirmation .price-modal-header .price-modal-close {
  top: 16px;
  right: 16px;
}

.price-modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
}

.price-modal-decline {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.price-modal-decline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.price-modal-confirm {
  flex: 1;
  padding: 12px 20px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.price-modal-confirm:hover {
  background: #4338ca;
  transform: translateY(-1px);
}
.price-modal-confirm .arrow-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}
.price-modal-confirm:hover .arrow-icon {
  transform: translateX(2px);
}

/* Toast Modal */
.price-modal-toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 400px;
  position: relative;
  border-left: 4px solid;
}
.price-modal-toast.price-border-left-success {
  border-left-color: #22c55e;
}
.price-modal-toast.price-border-left-info {
  border-left-color: #3b82f6;
}
.price-modal-toast.price-border-left-warning {
  border-left-color: #f59e0b;
}
.price-modal-toast.price-border-left-error {
  border-left-color: #ef4444;
}

.price-modal-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.price-modal-toast-icon.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.price-modal-toast-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.price-modal-toast-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.price-modal-toast-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.price-modal-toast-content {
  flex: 1;
}
.price-modal-toast-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
}
.price-modal-toast-content h4.success {
  color: #166534;
}
.price-modal-toast-content h4.info {
  color: #1e40af;
}
.price-modal-toast-content h4.warning {
  color: #92400e;
}
.price-modal-toast-content h4.error {
  color: #dc2626;
}
.price-modal-toast-content p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.price-modal-toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.price-modal-toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .price-modal-wrapper.price-modal-center {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .price-modal-container {
    max-width: none;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }
  .price-modal-wrapper.price-modal-top-right,
  .price-modal-wrapper.price-modal-bottom-right {
    left: 10px;
    right: 10px;
    max-width: none;
  }
  .price-modal-wrapper.price-modal-top-right {
    top: 10px;
  }
  .price-modal-wrapper.price-modal-bottom-right {
    bottom: 10px;
  }
  .price-modal-confirmation {
    max-width: none;
    width: 100%;
  }
  .price-modal-actions {
    flex-direction: column;
  }
  .price-modal-actions .price-modal-decline,
  .price-modal-actions .price-modal-confirm {
    flex: none;
  }
}
/*!**********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/PremiumModal/PremiumModal.scss ***!
  \**********************************************************************************************************************************************************************************************************************************************************************/
.premium-modal-container {
  background: rgba(79, 70, 229, 0.05);
  border-radius: 12px;
  padding: 20px 16px;
  margin: 0 auto 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.premium-header {
  text-align: center;
  margin-bottom: 20px;
}
.premium-header .premium-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  margin-bottom: 10px;
}
.premium-header .premium-crown span {
  font-size: 24px;
}
.premium-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
  color: #1a1a1a;
}
.premium-header p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #4a4a4a;
}
.premium-header p strong {
  font-weight: 600;
  color: #4f46e5;
}

.premium-offer {
  background: rgba(79, 70, 229, 0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.premium-offer__badge {
  gap: 6px;
  background: rgba(79, 70, 229, 0.15);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #4f46e5;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 70%;
  margin: 0 auto 12px;
}
.premium-offer__badge span {
  font-size: 16px;
  color: #4f46e5;
}
.premium-offer__text {
  margin: 12px 0 0 0;
  font-size: 15px;
  text-align: center;
  color: #1a1a1a;
}
.premium-offer__text strong {
  color: #4f46e5;
  font-weight: 700;
  font-size: 16px;
}

.premium-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(79, 70, 229, 0.1);
  padding: 8px 10px;
  border-radius: 6px;
  min-width: 52px;
}

.countdown-number {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
  color: #4f46e5;
}

.countdown-label {
  font-size: 10px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.countdown-separator {
  font-size: 18px;
  font-weight: 700;
  color: #4f46e5;
  padding: 0 2px;
}

.premium-cta {
  width: 100%;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}
.premium-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.35);
  background: #4338ca;
}
.premium-cta:active {
  transform: translateY(0);
}
.premium-cta span:last-child {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.premium-cta:hover span:last-child {
  transform: translateX(4px);
}

.premium-basic-offer {
  background: rgba(79, 70, 229, 0.08);
  border-radius: 10px;
  padding: 20px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.premium-basic-offer .premium-value-props {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.premium-basic-offer .value-prop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}
.premium-basic-offer .value-prop .value-icon {
  font-size: 24px;
  margin-top: 2px;
  flex-shrink: 0;
}
.premium-basic-offer .value-prop .value-content {
  flex: 1;
}
.premium-basic-offer .value-prop .value-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
  line-height: 1.3;
}
.premium-basic-offer .value-prop .value-content p {
  font-size: 13px;
  margin: 0;
  color: #4a4a4a;
  line-height: 1.4;
}
.premium-basic-offer .premium-offer-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.15);
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 12px;
}
.premium-basic-offer .premium-offer-highlight .offer-badge {
  font-size: 12px;
  font-weight: 500;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.premium-basic-offer .premium-offer-highlight .offer-text {
  font-size: 16px;
  font-weight: 700;
  color: #4f46e5;
}

.premium-highlights {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  gap: 12px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.highlight-item span:first-child {
  font-size: 22px;
}
.highlight-item span:last-child {
  font-size: 11px;
  text-align: center;
  color: #4a4a4a;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .premium-modal-container {
    padding: 16px 12px;
    max-width: 95%;
  }
  .premium-header {
    margin-bottom: 16px;
  }
  .premium-header .premium-crown {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  .premium-header .premium-crown span {
    font-size: 20px;
  }
  .premium-header h2 {
    font-size: 20px;
  }
  .premium-header p {
    font-size: 13px;
  }
  .premium-offer {
    padding: 14px;
    margin-bottom: 16px;
  }
  .premium-offer__badge {
    font-size: 11px;
    padding: 5px 10px;
    max-width: 80%;
  }
  .premium-offer__badge span {
    font-size: 14px;
  }
  .premium-offer__text {
    font-size: 14px;
  }
  .premium-offer__text strong {
    font-size: 15px;
  }
  .premium-basic-offer {
    padding: 16px 12px;
    margin-bottom: 16px;
  }
  .premium-basic-offer .premium-value-props {
    gap: 12px;
    margin-bottom: 12px;
  }
  .premium-basic-offer .value-prop {
    gap: 10px;
    padding: 10px;
  }
  .premium-basic-offer .value-prop .value-icon {
    font-size: 20px;
  }
  .premium-basic-offer .value-prop .value-content h4 {
    font-size: 14px;
  }
  .premium-basic-offer .value-prop .value-content p {
    font-size: 12px;
  }
  .premium-basic-offer .premium-offer-highlight {
    padding: 8px 12px;
    gap: 6px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-badge {
    font-size: 11px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-text {
    font-size: 15px;
  }
  .countdown-item {
    min-width: 48px;
    padding: 6px 8px;
  }
  .countdown-number {
    font-size: 18px;
  }
  .countdown-label {
    font-size: 9px;
  }
  .countdown-separator {
    font-size: 16px;
  }
  .premium-cta {
    padding: 12px 20px;
    font-size: 15px;
    margin-bottom: 16px;
  }
  .premium-cta span:last-child {
    font-size: 16px;
  }
  .premium-highlights {
    gap: 8px;
    margin-bottom: 12px;
  }
  .highlight-item {
    gap: 4px;
  }
  .highlight-item span:first-child {
    font-size: 20px;
  }
  .highlight-item span:last-child {
    font-size: 10px;
  }
}
@media (max-width: 400px) {
  .premium-modal-container {
    padding: 14px 10px;
  }
  .premium-header h2 {
    font-size: 18px;
  }
  .countdown-item {
    min-width: 42px;
    padding: 5px 6px;
  }
  .countdown-number {
    font-size: 16px;
  }
  .countdown-separator {
    font-size: 14px;
    padding: 0 1px;
  }
  .premium-cta {
    font-size: 14px;
    padding: 11px 18px;
  }
  .highlight-item span:first-child {
    font-size: 18px;
  }
  .premium-basic-offer {
    padding: 12px 8px;
  }
  .premium-basic-offer .value-prop {
    gap: 8px;
    padding: 8px;
  }
  .premium-basic-offer .value-prop .value-icon {
    font-size: 18px;
  }
  .premium-basic-offer .value-prop .value-content h4 {
    font-size: 13px;
  }
  .premium-basic-offer .value-prop .value-content p {
    font-size: 11px;
  }
  .premium-basic-offer .premium-offer-highlight {
    padding: 6px 10px;
    gap: 4px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-badge {
    font-size: 10px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-text {
    font-size: 14px;
  }
}
/*!*****************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/styles/_quickaction.scss ***!
  \*****************************************************************************************************************************************************************************************************************************************************/
.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}
.loading-center .spinner-action {
  width: 40px;
  height: 40px;
  border: 4px solid #2ea2cc;
  border-top: 4px solid #720eec;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}
.loading-center p {
  color: #474747;
  margin: 0;
  font-size: 0.95rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/AISettings/AISettings.scss ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
.ai-settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ai-settings .card-header {
  margin-bottom: 15px;
}
.ai-settings-loading {
  padding: 40px;
  text-align: center;
  color: #6b7280;
}
.ai-settings-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0 4px;
}
.ai-settings-header .ai-header-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.ai-settings-header h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 700;
}
.ai-settings-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}
.ai-settings-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.ai-card .card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px;
}
.ai-card .card-header p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

/* Provider grid */
.ai-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.ai-provider-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
}
.ai-provider-btn .provider-icon {
  font-size: 1.5rem;
}
.ai-provider-btn:hover {
  border-color: #6366f1;
  background: #f5f3ff;
}
.ai-provider-btn.active {
  border-color: #6366f1;
  background: #ede9fe;
  color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* API key input */
.api-key-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}
.api-key-input-wrapper input {
  flex: 1;
}
.api-key-input-wrapper .btn-icon {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s;
}
.api-key-input-wrapper .btn-icon:hover {
  background: #f3f4f6;
}

.field-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 4px 0 0;
}
.field-hint a {
  color: #6366f1;
  text-decoration: none;
}
.field-hint a:hover {
  text-decoration: underline;
}

/* Params grid */
.ai-params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .ai-params-grid {
    grid-template-columns: 1fr;
  }
}

input[type=range] {
  width: 100%;
  accent-color: #6366f1;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
}

.param-value {
  font-weight: 700;
  color: #6366f1;
  margin-left: 6px;
}

/* Test result */
.test-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.test-result.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.test-result.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.test-result .test-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mt-4 {
  margin-top: 16px;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/AISettings/AIRevenuePanel.scss ***!
  \**********************************************************************************************************************************************************************************************************************************************************************/
:root {
  --arp-primary: #6366f1;
  --arp-primary-deep: #4f46e5;
  --arp-secondary: #8b5cf6;
  --arp-accent: #6366f1;
  --arp-accent-warm: #7c3aed;
  --arp-bg-panel: #ffffff;
  --arp-bg-card: #f8f7ff;
  --arp-bg-card-hover: #f0effe;
  --arp-bg-input: #f4f4fd;
  --arp-border: rgba(99, 102, 241, 0.14);
  --arp-border-bright: rgba(99, 102, 241, 0.28);
  --arp-text: #1e1b4b;
  --arp-text-muted: #4b5563;
  --arp-text-dim: #9ca3af;
  --arp-user-bg: rgba(99, 102, 241, 0.08);
  --arp-user-border: rgba(99, 102, 241, 0.2);
  --arp-ai-bg: rgba(248, 247, 255, 0.95);
  --arp-ai-border: rgba(99, 102, 241, 0.1);
  --arp-glow-primary: rgba(99, 102, 241, 0.2);
  --arp-glow-accent: rgba(99, 102, 241, 0.12);
  --arp-radius-sm: 8px;
  --arp-radius-md: 12px;
  --arp-radius-lg: 18px;
  --arp-radius-pill: 100px;
  --arp-shadow-glow: 0 0 24px rgba(99, 102, 241, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  --arp-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.ai-revenue-fab {
  position: fixed;
  bottom: clamp(20px, 4vw, 32px);
  right: clamp(16px, 4vw, 32px);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px 11px 14px;
  background: linear-gradient(135deg, var(--arp-primary) 0%, var(--arp-secondary) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--arp-radius-pill);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--arp-shadow-glow);
  transition: transform 0.2s var(--arp-transition), box-shadow 0.2s var(--arp-transition), background 0.2s;
  position: fixed;
  overflow: hidden;
}
.ai-revenue-fab .fab-glow {
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, var(--arp-primary), var(--arp-accent), var(--arp-secondary), var(--arp-primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  filter: blur(6px);
}
.ai-revenue-fab .fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--arp-radius-sm);
  flex-shrink: 0;
  transition: background 0.2s;
}
.ai-revenue-fab .fab-label {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .ai-revenue-fab .fab-label {
    display: none;
  }
}
.ai-revenue-fab .fab-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: fabPulse 2s ease-in-out infinite;
}
.ai-revenue-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.35), 0 8px 24px rgba(0, 0, 0, 0.12);
}
.ai-revenue-fab:hover .fab-glow {
  opacity: 0.4;
}
.ai-revenue-fab:hover .fab-icon {
  background: rgba(255, 255, 255, 0.28);
}
.ai-revenue-fab:active {
  transform: translateY(-1px) scale(0.98);
}
.ai-revenue-fab:focus-visible {
  outline: 2px solid var(--arp-primary);
  outline-offset: 3px;
}
.ai-revenue-fab.active {
  background: linear-gradient(135deg, var(--arp-primary-deep) 0%, #6d28d9 100%);
}

@keyframes fabPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}
.ai-revenue-panel {
  position: fixed;
  top: 0;
  right: -460px;
  width: clamp(320px, 95vw, 440px);
  height: 100dvh;
  z-index: 110000;
  background: var(--arp-bg-panel);
  border-left: 1px solid var(--arp-border);
  box-shadow: -8px 0 48px rgba(99, 102, 241, 0.08), -1px 0 0 var(--arp-border-bright);
  display: flex;
  flex-direction: column;
  transition: right 0.35s var(--arp-transition);
  overflow: hidden;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.ai-revenue-panel .arp-header,
.ai-revenue-panel .arp-body,
.ai-revenue-panel .arp-footer {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s var(--arp-transition), transform 0.3s var(--arp-transition);
}
.ai-revenue-panel.open {
  right: 0;
}
.ai-revenue-panel.ready .arp-header {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}
.ai-revenue-panel.ready .arp-body {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}
.ai-revenue-panel.ready .arp-footer {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
@media (max-width: 480px) {
  .ai-revenue-panel {
    width: 100vw;
    right: -100vw;
  }
}

.arp-neural-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.arp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.06;
  animation: orbFloat 8s ease-in-out infinite;
}
.arp-orb.arp-orb-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--arp-primary), transparent);
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}
.arp-orb.arp-orb-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--arp-secondary), transparent);
  bottom: 120px;
  left: -60px;
  animation-delay: 4s;
  opacity: 0.04;
}

.arp-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.06);
  }
}
.arp-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 18px 20px;
  border-bottom: 1px solid var(--arp-border);
  flex-shrink: 0;
  overflow: hidden;
}
.arp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
}

.arp-header-aurora {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 80px;
  background: linear-gradient(90deg, transparent, var(--arp-primary), var(--arp-secondary), var(--arp-primary), transparent);
  filter: blur(24px);
  opacity: 0.1;
  animation: auroraShift 4s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from {
    opacity: 0.08;
    transform: translateX(-50%) scaleX(0.9);
  }
  to {
    opacity: 0.14;
    transform: translateX(-50%) scaleX(1.1);
  }
}
.arp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.arp-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--arp-primary), var(--arp-secondary));
  border-radius: var(--arp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.arp-avatar-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1.5px solid var(--arp-primary);
  opacity: 0;
  animation: avatarPulse 2.5s ease-out infinite;
}

@keyframes avatarPulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
.arp-header-text .arp-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--arp-text);
  letter-spacing: 0.01em;
}
.arp-header-text .arp-subtitle {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--arp-text-dim);
  letter-spacing: 0.02em;
}

.arp-header-actions {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.arp-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--arp-border);
  border-radius: var(--arp-radius-sm);
  color: var(--arp-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.arp-icon-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--arp-text);
  transform: scale(1.05);
}
.arp-icon-btn:focus-visible {
  outline: 2px solid var(--arp-primary);
  outline-offset: 2px;
}
.arp-icon-btn.arp-close-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

.arp-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--arp-border-bright) transparent;
}
.arp-body::-webkit-scrollbar {
  width: 4px;
}
.arp-body::-webkit-scrollbar-track {
  background: transparent;
}
.arp-body::-webkit-scrollbar-thumb {
  background: var(--arp-border-bright);
  border-radius: 4px;
}

.arp-welcome {
  text-align: center;
  padding: 12px 8px 4px;
  animation: fadeSlideUp 0.4s var(--arp-transition) both;
}

.arp-welcome-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.arp-welcome-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--arp-primary);
  opacity: 0.2;
  animation: ringExpand 3s ease-in-out infinite;
}

.arp-welcome-icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid var(--arp-border-bright);
  border-radius: var(--arp-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arp-accent-warm);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
}

@keyframes ringExpand {
  0%, 100% {
    transform: scale(1);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.06;
  }
}
.arp-welcome-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--arp-text);
}

.arp-welcome-desc {
  font-size: 0.82rem;
  color: var(--arp-text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.arp-chips {
  text-align: left;
}

.arp-chips-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--arp-text-dim);
  margin-bottom: 10px;
}

.arp-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 360px) {
  .arp-chips-grid {
    grid-template-columns: 1fr;
  }
}

.arp-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--arp-bg-card);
  border: 1px solid var(--arp-border);
  border-radius: var(--arp-radius-md);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--arp-text-muted);
  cursor: pointer;
  transition: all 0.18s var(--arp-transition);
  text-align: left;
}
.arp-chip .arp-chip-zap {
  display: flex;
  color: var(--arp-primary);
  flex-shrink: 0;
  opacity: 0.6;
}
.arp-chip:hover:not(:disabled) {
  background: var(--arp-bg-card-hover);
  border-color: var(--arp-border-bright);
  color: var(--arp-primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}
.arp-chip:hover:not(:disabled) .arp-chip-zap {
  opacity: 1;
  color: var(--arp-primary);
}
.arp-chip:focus-visible {
  outline: 2px solid var(--arp-primary);
  outline-offset: 2px;
}
.arp-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.arp-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  animation: fadeSlideUp 0.3s both;
}

.arp-loading-ring {
  position: relative;
  width: 52px;
  height: 52px;
}
.arp-loading-ring::before, .arp-loading-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.arp-loading-ring::before {
  border-top-color: var(--arp-primary);
  border-right-color: var(--arp-primary);
  animation: spin 1s linear infinite;
}
.arp-loading-ring::after {
  border-bottom-color: var(--arp-secondary);
  animation: spin 1.5s linear infinite reverse;
}

.arp-loading-inner {
  position: absolute;
  inset: 8px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
  border-radius: 50%;
  animation: innerPulse 1.5s ease-in-out infinite;
}

@keyframes innerPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.arp-loading-text {
  font-size: 0.85rem;
  color: var(--arp-text-muted);
  font-weight: 500;
}

.arp-loading-dots {
  display: flex;
  gap: 5px;
}
.arp-loading-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--arp-primary);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.arp-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--arp-secondary);
}
.arp-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
  background: #a78bfa;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.arp-chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arp-chat-pair {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeSlideUp 0.35s var(--arp-transition) both;
}

.arp-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.arp-msg.arp-msg-user {
  flex-direction: row-reverse;
}

.arp-msg-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arp-msg-avatar.arp-msg-avatar-user {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--arp-primary);
}
.arp-msg-avatar.arp-msg-avatar-ai {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--arp-primary);
}

.arp-msg-bubble {
  max-width: calc(100% - 44px);
  border-radius: var(--arp-radius-md);
  padding: 11px 14px;
  font-size: 0.83rem;
  line-height: 1.65;
}
.arp-msg-bubble.arp-bubble-user {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: var(--arp-primary-deep);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.arp-msg-bubble.arp-bubble-ai {
  background: var(--arp-ai-bg);
  border: 1px solid var(--arp-ai-border);
  color: var(--arp-text);
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.arp-msg-bubble.arp-bubble-ai::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--arp-primary), var(--arp-secondary));
  border-radius: 0 2px 2px 0;
}

.arp-typing-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px !important;
  min-width: 68px;
}

.arp-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arp-primary);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.arp-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--arp-secondary);
}
.arp-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
  background: #a78bfa;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.arp-analysis-body p {
  margin: 0 0 6px;
}
.arp-analysis-body p:last-child {
  margin-bottom: 0;
}
.arp-analysis-body li {
  margin: 3px 0 3px 18px;
  list-style: disc;
  color: var(--arp-text-muted);
}
.arp-analysis-body li strong {
  color: var(--arp-text);
}
.arp-analysis-body strong {
  color: var(--arp-primary-deep);
  font-weight: 600;
}
.arp-analysis-body .arp-spacer {
  height: 6px;
}

.arp-footer {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border-top: 1px solid var(--arp-border);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arp-analyze-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--arp-primary) 0%, var(--arp-secondary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--arp-radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s var(--arp-transition), box-shadow 0.2s;
}
.arp-analyze-btn .arp-btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmerSlide 2.5s ease-in-out infinite;
  pointer-events: none;
}
.arp-analyze-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3), 0 6px 20px rgba(0, 0, 0, 0.1);
}
.arp-analyze-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.arp-analyze-btn:focus-visible {
  outline: 2px solid var(--arp-primary);
  outline-offset: 3px;
}
.arp-analyze-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.arp-analyze-btn.loading .arp-btn-shimmer {
  animation: none;
}

@keyframes shimmerSlide {
  0% {
    transform: translateX(-100%);
  }
  60%, 100% {
    transform: translateX(200%);
  }
}
.arp-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arp-input-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--arp-bg-input);
  border: 1px solid var(--arp-border);
  border-radius: var(--arp-radius-md);
  padding: 2px 4px 4px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.arp-input-wrap:focus-within {
  border-color: var(--arp-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.arp-input-wrap.disabled {
  opacity: 0.55;
}

.arp-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 10px 0;
  font-family: inherit;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--arp-text);
  min-height: 42px;
  max-height: 120px;
}
.arp-textarea::-moz-placeholder {
  color: var(--arp-text-dim);
}
.arp-textarea::placeholder {
  color: var(--arp-text-dim);
}
.arp-textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--arp-border) transparent;
}
.arp-textarea::-webkit-scrollbar {
  width: 3px;
}
.arp-textarea::-webkit-scrollbar-thumb {
  background: var(--arp-border);
  border-radius: 3px;
}

.arp-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
  background: linear-gradient(135deg, var(--arp-primary), var(--arp-secondary));
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.arp-send-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}
.arp-send-btn:active:not(:disabled) {
  transform: scale(0.94);
}
.arp-send-btn:focus-visible {
  outline: 2px solid var(--arp-primary);
  outline-offset: 2px;
}
.arp-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.arp-reanalyze-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--arp-border);
  border-radius: var(--arp-radius-sm);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--arp-text-dim);
  cursor: pointer;
  transition: all 0.18s;
}
.arp-reanalyze-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--arp-border-bright);
  color: var(--arp-text-muted);
}
.arp-reanalyze-btn:focus-visible {
  outline: 2px solid var(--arp-primary);
  outline-offset: 2px;
}
.arp-reanalyze-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.arp-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.ai-revenue-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  z-index: 109999;
  animation: fadeIn 0.25s ease;
}
@media (max-width: 600px) {
  .ai-revenue-backdrop {
    display: block;
  }
}

.analytics-date-range-bar .btn-secondary.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 7px;
  font-size: 0.85rem;
  line-height: 1;
  color: #6366f1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.analytics-date-range-bar .btn-secondary.btn-sm:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.28);
  transform: rotate(45deg);
}
.analytics-date-range-bar .btn-secondary.btn-sm:active {
  transform: rotate(180deg);
  transition-duration: 0.25s;
}
.analytics-date-range-bar .btn-secondary.btn-sm:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.3);
  outline-offset: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .ai-revenue-fab {
    bottom: 20px;
    right: 16px;
  }
  .arp-header {
    padding: 14px 14px 14px 16px;
  }
  .arp-body {
    padding: 16px 12px;
  }
  .arp-footer {
    padding: 12px 12px;
  }
  .arp-welcome-title {
    font-size: 0.95rem;
  }
  .arp-chips-grid {
    grid-template-columns: 1fr 1fr;
  }
  .arp-msg-bubble {
    font-size: 0.82rem;
  }
}
@media (min-width: 1200px) {
  .ai-revenue-panel {
    width: 460px;
  }
}
/* .ai-revenue-fab.fab-locked {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  &:hover { background: linear-gradient(135deg, #6d28d9, #be185d); }
} */
/* .fab-pro-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  border: 2px solid #fff;
} */
.arp-upsell {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow-y: auto;
}

.arp-upsell-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px 16px;
  flex-shrink: 0;
}

.arp-upsell-lock-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(219, 39, 119, 0.15));
  border: 2px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  animation: lockPulse 2.5s ease-in-out infinite;
}

.arp-upsell-lock-icon {
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes lockPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
  }
}
.arp-upsell-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 6px;
}

.arp-upsell-subtitle {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

.arp-upsell-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 16px;
  flex-shrink: 0;
}

.arp-upsell-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.arp-upsell-feature:last-child {
  border-bottom: none;
}
.arp-upsell-feature .arp-upsell-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  flex-shrink: 0;
}
.arp-upsell-feature strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}
.arp-upsell-feature p {
  font-size: 0.76rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.arp-upsell-preview {
  margin: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.arp-preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.arp-preview-bubble {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 6px;
  position: relative;
}
.arp-preview-bubble.arp-preview-user {
  background: #ede9fe;
  color: #3730a3;
  font-weight: 500;
  margin-left: 20px;
}
.arp-preview-bubble.arp-preview-ai {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  margin-right: 20px;
  overflow: hidden;
}
.arp-preview-bubble.arp-preview-ai .arp-preview-ai-icon {
  margin-right: 4px;
}
.arp-preview-bubble.arp-preview-ai .arp-preview-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #f9fafb);
}

.arp-upsell-cta {
  padding: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.arp-upgrade-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #db2777);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  animation: upgradeGlow 3s ease-in-out infinite;
}
.arp-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}
.arp-upgrade-btn svg {
  flex-shrink: 0;
}

@keyframes upgradeGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(219, 39, 119, 0.5);
  }
}
.arp-upsell-note {
  font-size: 0.74rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

.arp-settings-link {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.arp-settings-link:hover {
  color: #4f46e5;
}

.arp-enable-guide {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 16px 24px;
  height: 100%;
  overflow-y: auto;
}

.arp-enable-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 12px 4px;
}

.arp-enable-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--arp-radius-pill);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--arp-border-bright);
  color: var(--arp-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.arp-enable-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  border: 1.5px solid var(--arp-border-bright);
  color: var(--arp-primary);
  box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.06);
  margin: 4px 0;
  animation: arp-enable-pulse 2.8s ease-in-out infinite;
}

@keyframes arp-enable-pulse {
  0%, 100% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.06);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(99, 102, 241, 0.03);
  }
}
.arp-enable-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--arp-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.arp-enable-subtitle {
  font-size: 13px;
  color: var(--arp-text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 280px;
}
.arp-enable-subtitle strong {
  color: var(--arp-primary);
  font-weight: 600;
}

.arp-enable-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--arp-bg-card);
  border: 1px solid var(--arp-border);
  border-radius: var(--arp-radius-lg);
  padding: 6px 8px;
}

.arp-enable-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 8px;
  border-radius: var(--arp-radius-md);
  transition: background 0.18s var(--arp-transition);
}
.arp-enable-step:not(:last-child) {
  border-bottom: 1px solid var(--arp-border);
}
.arp-enable-step:hover {
  background: var(--arp-bg-card-hover);
}

.arp-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--arp-primary), var(--arp-secondary));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 2px 8px var(--arp-glow-primary);
}

.arp-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.arp-step-body strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--arp-text);
  line-height: 1.3;
}
.arp-step-body span {
  font-size: 12px;
  color: var(--arp-text-muted);
  line-height: 1.45;
}
.arp-step-body span em {
  font-style: normal;
  color: var(--arp-primary);
  font-weight: 500;
}

.arp-enable-cta {
  padding: 0 2px;
}

.arp-go-settings-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--arp-radius-md);
  background: linear-gradient(135deg, var(--arp-primary), var(--arp-secondary));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--arp-glow-primary);
  transition: transform 0.18s var(--arp-transition), box-shadow 0.18s var(--arp-transition);
}
.arp-go-settings-btn svg {
  flex-shrink: 0;
  transition: transform 0.18s var(--arp-transition);
}
.arp-go-settings-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}
.arp-go-settings-btn:hover svg {
  transform: translateX(3px);
}
.arp-go-settings-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--arp-glow-primary);
}
.arp-go-settings-btn .arp-btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: arp-shimmer 2.4s infinite;
}
/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/components/Woocommerce/wooanalytics.scss ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
.woo-analytics-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 2rem;
}
.woo-analytics-container .analytics-no-data {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.woo-analytics-container .analytics-no-data .no-data-content .no-data-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  color: #008080;
}
.woo-analytics-container .analytics-no-data .no-data-content .no-data-icon svg {
  width: 40px;
  height: 40px;
}
.woo-analytics-container .analytics-no-data .no-data-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.woo-analytics-container .analytics-no-data .no-data-content > p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.woo-analytics-container .analytics-no-data .no-data-content .no-data-suggestions {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.woo-analytics-container .analytics-no-data .no-data-content .no-data-suggestions h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: center;
}
.woo-analytics-container .analytics-no-data .no-data-content .no-data-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.woo-analytics-container .analytics-no-data .no-data-content .no-data-suggestions ul li {
  color: #6b7280;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.woo-analytics-container .analytics-no-data .no-data-content .no-data-suggestions ul li:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}
.woo-analytics-container .analytics-no-data .no-data-content .retry-button {
  padding: 0.75rem 1.5rem;
  background: #008080;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.woo-analytics-container .analytics-no-data .no-data-content .retry-button:hover {
  background: #004d4d;
}
@media (max-width: 768px) {
  .woo-analytics-container {
    padding: 1rem;
  }
}

.woo-analytics-dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.analytics-loading {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  text-align: center;
  padding: 3rem;
}
.analytics-loading .loading-content {
  max-width: 500px;
  margin: 0 auto;
}
.analytics-loading .loading-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.analytics-loading .loading-content p {
  color: #6b7280;
  margin-bottom: 2rem;
}
.analytics-loading .loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
}
.analytics-loading .loading-spinner .spinner-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 4px solid #e5e7eb;
  border-top-color: #008080;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.analytics-loading .loading-spinner .spinner-ring:nth-child(2) {
  width: 52px;
  height: 52px;
  border-top-color: #10b981;
  animation-delay: 0.15s;
}
.analytics-loading .loading-spinner .spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  border-top-color: #f59e0b;
  animation-delay: 0.3s;
}
.analytics-loading .loading-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.analytics-loading .loading-steps .step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.analytics-loading .loading-steps .step.completed {
  background: #dcfce7;
}
.analytics-loading .loading-steps .step.completed .step-number {
  background: #10b981;
  color: white;
}
.analytics-loading .loading-steps .step.completed .step-number::after {
  content: "✓";
}
.analytics-loading .loading-steps .step.active {
  background: #dbeafe;
}
.analytics-loading .loading-steps .step.active .step-number {
  background: #008080;
  color: white;
}
.analytics-loading .loading-steps .step.pending {
  background: #f9fafb;
}
.analytics-loading .loading-steps .step.pending .step-number {
  background: #d1d5db;
  color: white;
}
.analytics-loading .loading-steps .step .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.analytics-loading .loading-steps .step .step-text {
  color: #1f2937;
  font-size: 0.95rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.analytics-disabled {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.analytics-disabled .disabled-content {
  text-align: center;
}
.analytics-disabled .disabled-content .disabled-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}
.analytics-disabled .disabled-content .disabled-icon svg {
  width: 40px;
  height: 40px;
  color: #008080;
}
.analytics-disabled .disabled-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.analytics-disabled .disabled-content .disabled-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.analytics-disabled .features-preview {
  margin-bottom: 3rem;
}
.analytics-disabled .features-preview h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}
.analytics-disabled .features-preview .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.analytics-disabled .features-preview .features-grid .feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s ease;
}
.analytics-disabled .features-preview .features-grid .feature-item:nth-child(1) {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.analytics-disabled .features-preview .features-grid .feature-item:nth-child(2) {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.analytics-disabled .features-preview .features-grid .feature-item:nth-child(3) {
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
}
.analytics-disabled .features-preview .features-grid .feature-item:nth-child(4) {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}
.analytics-disabled .features-preview .features-grid .feature-item:nth-child(5) {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}
.analytics-disabled .features-preview .features-grid .feature-item:nth-child(6) {
  background: linear-gradient(135deg, #b9a5f5 0%, #a78bfa 100%);
}
.analytics-disabled .features-preview .features-grid .feature-item .feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.analytics-disabled .features-preview .features-grid .feature-item .feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.analytics-disabled .features-preview .features-grid .feature-item .feature-text p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}
.analytics-disabled .activation-section {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border-radius: 12px;
  padding: 2rem;
}
.analytics-disabled .activation-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}
.analytics-disabled .activation-section > p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.analytics-disabled .activation-section .activation-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.analytics-disabled .activation-section .activation-steps .step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.analytics-disabled .activation-section .activation-steps .step-item .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #008080;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.analytics-disabled .activation-section .activation-steps .step-item span:last-child {
  color: #1f2937;
}
.analytics-disabled .activation-section .activation-steps .step-item span:last-child strong {
  font-weight: 600;
}
.analytics-disabled .activation-section .enable-analytics-btn {
  display: block;
  width: 100%;
  background: #008080;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  border: none;
  transition: all 0.3s ease;
}
.analytics-disabled .activation-section .enable-analytics-btn:hover {
  background: #004d4d;
}

.analytics-error {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.analytics-error .error-content .error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  color: #ef4444;
}
.analytics-error .error-content .error-icon svg {
  width: 40px;
  height: 40px;
}
.analytics-error .error-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.analytics-error .error-content p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
}
.analytics-error .error-content .error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.analytics-error .error-content .error-actions .install-woo-button,
.analytics-error .error-content .error-actions .retry-button {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.analytics-error .error-content .error-actions .install-woo-button {
  background: #008080;
  color: white;
}
.analytics-error .error-content .error-actions .install-woo-button:hover {
  background: #004d4d;
}
.analytics-error .error-content .error-actions .retry-button {
  background: #e5e7eb;
  color: #1f2937;
}
.analytics-error .error-content .error-actions .retry-button:hover {
  background: #d1d5db;
}

.analytics-header {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  background: linear-gradient(135deg, #008080 0%, #024343 100%);
  margin-bottom: 2rem;
}
.analytics-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  color: #e6e6e6;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.analytics-header h1 .header-icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 12px;
  color: #008080;
}
.analytics-header .last-updated {
  color: #ffffff;
  font-size: 0.95rem;
  padding-left: 64px;
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.analytics-section {
  margin-bottom: 3rem;
}
.analytics-section h2 {
  border-bottom: 2px solid #e5e7eb;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  margin-left: 15px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.analytics-card {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  transition: all 0.3s ease;
}
.analytics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.analytics-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.analytics-card .card-header .card-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #008080;
}
.analytics-card .card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}
.analytics-card .card-content .main-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.analytics-card .card-content .sub-value {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.analytics-card .card-content .order-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.analytics-card .card-content .order-breakdown .status {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.analytics-card .card-content .order-breakdown .status.completed {
  background: #dcfce7;
  color: #166534;
}
.analytics-card .card-content .order-breakdown .status.processing {
  background: #dbeafe;
  color: #1e40af;
}
.analytics-card .card-content .order-breakdown .status.pending {
  background: #fef3c7;
  color: #92400e;
}
.analytics-card .card-content .order-breakdown .status.cancelled {
  background: #fee2e2;
  color: #991b1b;
}
.analytics-card .card-content .order-breakdown .status.refunded {
  background: #f3e8ff;
  color: #7c3aed;
}
.analytics-card .card-content .order-breakdown .status.on-hold {
  background: #fef3c7;
  color: #92400e;
}
.analytics-card .card-content .order-breakdown .status.failed {
  background: #fee2e2;
  color: #991b1b;
}

.customer-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.customer-card {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}
.customer-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.customer-card .customer-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.customer-card .customer-stats .stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.customer-card .customer-stats .stat .label {
  color: #6b7280;
  font-size: 0.875rem;
}
.customer-card .customer-stats .stat .value {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
}

.revenue-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.revenue-overview .revenue-card {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  transition: all 0.3s ease;
}
.revenue-overview .revenue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.15);
}
.revenue-overview .revenue-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.revenue-overview .revenue-card .card-header .card-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.revenue-overview .revenue-card .card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}
.revenue-overview .revenue-card:nth-child(1) .card-icon {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #10b981;
}
.revenue-overview .revenue-card:nth-child(2) .card-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #008080;
}
.revenue-overview .revenue-card:nth-child(3) .card-icon {
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
  color: #a855f7;
}
.revenue-overview .revenue-card:nth-child(4) .card-icon {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #f59e0b;
}
.revenue-overview .revenue-card .card-content .main-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.revenue-overview .revenue-card .card-content .growth-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.revenue-overview .revenue-card .card-content .growth-indicator.positive {
  color: #10b981;
}
.revenue-overview .revenue-card .card-content .growth-indicator.negative {
  color: #ef4444;
}
.revenue-overview .revenue-card .card-content .growth-indicator svg {
  width: 16px;
  height: 16px;
}
.revenue-overview .revenue-card .card-content .sub-value {
  color: #6b7280;
  font-size: 0.875rem;
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) {
  .analytics-charts {
    grid-template-columns: 1fr;
  }
}
.analytics-charts .chart-container {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}
.analytics-charts .chart-container .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.analytics-charts .chart-container .chart-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}
.analytics-charts .chart-container .chart-header .period-selector {
  display: flex;
  gap: 0.5rem;
}
.analytics-charts .chart-container .chart-header .period-selector button {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  background: #f9fafb;
  color: #6b7280;
  transition: all 0.3s ease;
}
.analytics-charts .chart-container .chart-header .period-selector button:hover {
  background: #e5e7eb;
}
.analytics-charts .chart-container .chart-header .period-selector button.active {
  background: #008080;
  color: white;
}
.analytics-charts .chart-container .chart-content {
  position: relative;
}

.top-products-table {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}
.top-products-table h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}
.top-products-table .table-container {
  overflow-x: auto;
}
.top-products-table .table-container table {
  width: 100%;
  border-collapse: collapse;
}
.top-products-table .table-container table thead tr {
  border-bottom: 2px solid #e5e7eb;
}
.top-products-table .table-container table thead tr th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.top-products-table .table-container table thead tr th:not(:first-child) {
  text-align: right;
}
.top-products-table .table-container table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}
.top-products-table .table-container table tbody tr:hover {
  background: #f9fafb;
}
.top-products-table .table-container table tbody tr td {
  padding: 1rem;
  color: #1f2937;
}
.top-products-table .table-container table tbody tr td:not(.product-name):not(.rank-cell) {
  text-align: right;
}
.top-products-table .table-container table tbody tr td.rank-cell {
  text-align: center;
}
.top-products-table .table-container table tbody tr td.rank-cell .rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #008080;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 auto;
}
.top-products-table .table-container table tbody tr td.product-name {
  font-weight: 500;
  text-align: left;
}
.top-products-table .table-container table tbody tr td.revenue-cell {
  font-weight: 600;
  color: #10b981;
}

@media (max-width: 768px) {
  .analytics-header h1 {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .analytics-header .last-updated {
    padding-left: 0;
  }
  .revenue-overview {
    grid-template-columns: 1fr;
  }
  .analytics-charts {
    grid-template-columns: 1fr;
  }
  .analytics-charts .chart-container .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .top-products-table .table-container table {
    font-size: 0.875rem;
  }
  .top-products-table .table-container table thead th,
  .top-products-table .table-container table tbody td {
    padding: 0.5rem;
  }
  .analytics-disabled .features-grid {
    grid-template-columns: 1fr;
  }
  .analytics-disabled .activation-section {
    padding: 1.5rem;
  }
}
.analytics-preview-mode .preview-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
  border: 1px solid #f59e0b;
}
.analytics-preview-mode .glass-effect-container {
  position: relative;
  overflow: hidden;
}
.analytics-preview-mode .glass-effect-container:hover .glass-overlay {
  opacity: 1;
  visibility: visible;
}
.analytics-preview-mode .glass-effect-container .glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.analytics-preview-mode .glass-effect-container .glass-overlay .glass-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}
.analytics-preview-mode .glass-effect-container .glass-overlay .glass-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}
.analytics-preview-mode .glass-effect-container .glass-overlay .glass-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.analytics-preview-mode .glass-effect-container .glass-overlay .glass-content .enable-hint {
  background: linear-gradient(135deg, #008080, #004d4d);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}
.analytics-preview-mode .glass-effect-container input,
.analytics-preview-mode .glass-effect-container button,
.analytics-preview-mode .glass-effect-container .sortable {
  pointer-events: none;
  opacity: 0.7;
}
.analytics-preview-mode .glass-effect-container .tab-button {
  pointer-events: none;
  opacity: 0.8;
}
.analytics-preview-mode .chart-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border-radius: 12px;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart {
  width: 80%;
  height: 80%;
  position: relative;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1rem;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal .product-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal .product-bar .product-name {
  min-width: 120px;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal .product-bar .bar {
  height: 20px;
  background: linear-gradient(90deg, #008080, #10b981);
  border-radius: 10px;
  opacity: 0.7;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal .product-bar .bar.abandoned {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.line-chart {
  display: flex;
  align-items: center;
  justify-content: center;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.line-chart svg {
  opacity: 0.6;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart.line-chart .chart-lines {
  width: 100%;
  height: 100%;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100%;
  padding: 1rem;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars .bar {
  width: 20px;
  background: linear-gradient(180deg, #008080, #10b981);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars.stacked .bar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 30px;
  justify-content: flex-end;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars.stacked .bar-stack .bar-segment {
  width: 100%;
  border-radius: 2px;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars.stacked .bar-stack .bar-segment.completed {
  background: #10b981;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars.stacked .bar-stack .bar-segment.processing {
  background: #008080;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars.stacked .bar-stack .bar-segment.pending {
  background: #f59e0b;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .placeholder-pie-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
}
.analytics-preview-mode .chart-placeholder .placeholder-chart .placeholder-pie-chart .pie-segment {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.7;
}
.analytics-preview-mode .activation-guide {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  margin-top: 3rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
}
.analytics-preview-mode .activation-guide .guide-content {
  text-align: center;
}
.analytics-preview-mode .activation-guide .guide-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}
.analytics-preview-mode .activation-guide .guide-content > p {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}
.analytics-preview-mode .activation-guide .guide-content .activation-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.analytics-preview-mode .activation-guide .guide-content .activation-steps .step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.analytics-preview-mode .activation-guide .guide-content .activation-steps .step-item .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #008080;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.analytics-preview-mode .activation-guide .guide-content .activation-steps .step-item span:last-child {
  color: #1f2937;
  text-align: left;
}
.analytics-preview-mode .activation-guide .guide-content .activation-steps .step-item span:last-child strong {
  font-weight: 600;
  color: #008080;
}
.analytics-preview-mode .activation-guide .guide-content .enable-analytics-btn {
  display: inline-block;
  background: linear-gradient(135deg, #008080, #004d4d);
  color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  box-shadow: 0 8px 16px rgba(0, 115, 170, 0.3);
  transition: all 0.3s ease;
}
.analytics-preview-mode .activation-guide .guide-content .enable-analytics-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 115, 170, 0.4);
}

@keyframes glassAppear {
  0% {
    opacity: 0;
    transform: scale(0.95);
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    backdrop-filter: blur(10px);
  }
}
.glass-effect-container:hover .glass-overlay {
  animation: glassAppear 0.3s ease-out;
}

@media print {
  .woo-analytics-container {
    background: white;
    padding: 0;
  }
  .revenue-card,
  .chart-container,
  .top-products-table {
    box-shadow: none;
    page-break-inside: avoid;
  }
  .period-selector {
    display: none;
  }
  .glass-overlay,
  .preview-badge,
  .activation-guide {
    display: none !important;
  }
}
.woo-analytics-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.woo-analytics-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 740px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.woo-analytics-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.woo-analytics-modal .modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
.woo-analytics-modal .modal-header .close-icon {
  width: 24px;
  height: 24px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}
.woo-analytics-modal .modal-header .close-icon:hover {
  color: #1f2937;
}
.woo-analytics-modal .modal-content {
  padding: 2rem;
  max-width: 90%;
}

.modal-stats .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.modal-stats .stat-grid .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  background: #f9fafb;
}
.modal-stats .stat-grid .stat-item.completed {
  background: #dcfce7;
  border-left: 4px solid #10b981;
}
.modal-stats .stat-grid .stat-item.processing {
  background: #dbeafe;
  border-left: 4px solid #008080;
}
.modal-stats .stat-grid .stat-item.pending {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
}
.modal-stats .stat-grid .stat-item.cancelled, .modal-stats .stat-grid .stat-item.refunded {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
}
.modal-stats .stat-grid .stat-item.on-hold {
  background: #f3f4f6;
  border-left: 4px solid #6b7280;
}
.modal-stats .stat-grid .stat-item .stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}
.modal-stats .stat-grid .stat-item .stat-value {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
}
.modal-stats .revenue-breakdown,
.modal-stats .period-summary,
.modal-stats .customer-breakdown,
.modal-stats .trends-summary,
.modal-stats .products-summary {
  margin-bottom: 1.5rem;
}
.modal-stats .revenue-breakdown h4,
.modal-stats .revenue-breakdown h5,
.modal-stats .period-summary h4,
.modal-stats .period-summary h5,
.modal-stats .customer-breakdown h4,
.modal-stats .customer-breakdown h5,
.modal-stats .trends-summary h4,
.modal-stats .trends-summary h5,
.modal-stats .products-summary h4,
.modal-stats .products-summary h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}
.modal-stats .revenue-breakdown .revenue-item,
.modal-stats .revenue-breakdown .summary-item,
.modal-stats .revenue-breakdown .trend-item,
.modal-stats .revenue-breakdown .product-stat,
.modal-stats .period-summary .revenue-item,
.modal-stats .period-summary .summary-item,
.modal-stats .period-summary .trend-item,
.modal-stats .period-summary .product-stat,
.modal-stats .customer-breakdown .revenue-item,
.modal-stats .customer-breakdown .summary-item,
.modal-stats .customer-breakdown .trend-item,
.modal-stats .customer-breakdown .product-stat,
.modal-stats .trends-summary .revenue-item,
.modal-stats .trends-summary .summary-item,
.modal-stats .trends-summary .trend-item,
.modal-stats .trends-summary .product-stat,
.modal-stats .products-summary .revenue-item,
.modal-stats .products-summary .summary-item,
.modal-stats .products-summary .trend-item,
.modal-stats .products-summary .product-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.modal-stats .revenue-breakdown .revenue-item:last-child,
.modal-stats .revenue-breakdown .summary-item:last-child,
.modal-stats .revenue-breakdown .trend-item:last-child,
.modal-stats .revenue-breakdown .product-stat:last-child,
.modal-stats .period-summary .revenue-item:last-child,
.modal-stats .period-summary .summary-item:last-child,
.modal-stats .period-summary .trend-item:last-child,
.modal-stats .period-summary .product-stat:last-child,
.modal-stats .customer-breakdown .revenue-item:last-child,
.modal-stats .customer-breakdown .summary-item:last-child,
.modal-stats .customer-breakdown .trend-item:last-child,
.modal-stats .customer-breakdown .product-stat:last-child,
.modal-stats .trends-summary .revenue-item:last-child,
.modal-stats .trends-summary .summary-item:last-child,
.modal-stats .trends-summary .trend-item:last-child,
.modal-stats .trends-summary .product-stat:last-child,
.modal-stats .products-summary .revenue-item:last-child,
.modal-stats .products-summary .summary-item:last-child,
.modal-stats .products-summary .trend-item:last-child,
.modal-stats .products-summary .product-stat:last-child {
  border-bottom: none;
}
.modal-stats .revenue-breakdown .revenue-item .revenue-label,
.modal-stats .revenue-breakdown .revenue-item .summary-label,
.modal-stats .revenue-breakdown .revenue-item .trend-label,
.modal-stats .revenue-breakdown .revenue-item .product-label,
.modal-stats .revenue-breakdown .summary-item .revenue-label,
.modal-stats .revenue-breakdown .summary-item .summary-label,
.modal-stats .revenue-breakdown .summary-item .trend-label,
.modal-stats .revenue-breakdown .summary-item .product-label,
.modal-stats .revenue-breakdown .trend-item .revenue-label,
.modal-stats .revenue-breakdown .trend-item .summary-label,
.modal-stats .revenue-breakdown .trend-item .trend-label,
.modal-stats .revenue-breakdown .trend-item .product-label,
.modal-stats .revenue-breakdown .product-stat .revenue-label,
.modal-stats .revenue-breakdown .product-stat .summary-label,
.modal-stats .revenue-breakdown .product-stat .trend-label,
.modal-stats .revenue-breakdown .product-stat .product-label,
.modal-stats .period-summary .revenue-item .revenue-label,
.modal-stats .period-summary .revenue-item .summary-label,
.modal-stats .period-summary .revenue-item .trend-label,
.modal-stats .period-summary .revenue-item .product-label,
.modal-stats .period-summary .summary-item .revenue-label,
.modal-stats .period-summary .summary-item .summary-label,
.modal-stats .period-summary .summary-item .trend-label,
.modal-stats .period-summary .summary-item .product-label,
.modal-stats .period-summary .trend-item .revenue-label,
.modal-stats .period-summary .trend-item .summary-label,
.modal-stats .period-summary .trend-item .trend-label,
.modal-stats .period-summary .trend-item .product-label,
.modal-stats .period-summary .product-stat .revenue-label,
.modal-stats .period-summary .product-stat .summary-label,
.modal-stats .period-summary .product-stat .trend-label,
.modal-stats .period-summary .product-stat .product-label,
.modal-stats .customer-breakdown .revenue-item .revenue-label,
.modal-stats .customer-breakdown .revenue-item .summary-label,
.modal-stats .customer-breakdown .revenue-item .trend-label,
.modal-stats .customer-breakdown .revenue-item .product-label,
.modal-stats .customer-breakdown .summary-item .revenue-label,
.modal-stats .customer-breakdown .summary-item .summary-label,
.modal-stats .customer-breakdown .summary-item .trend-label,
.modal-stats .customer-breakdown .summary-item .product-label,
.modal-stats .customer-breakdown .trend-item .revenue-label,
.modal-stats .customer-breakdown .trend-item .summary-label,
.modal-stats .customer-breakdown .trend-item .trend-label,
.modal-stats .customer-breakdown .trend-item .product-label,
.modal-stats .customer-breakdown .product-stat .revenue-label,
.modal-stats .customer-breakdown .product-stat .summary-label,
.modal-stats .customer-breakdown .product-stat .trend-label,
.modal-stats .customer-breakdown .product-stat .product-label,
.modal-stats .trends-summary .revenue-item .revenue-label,
.modal-stats .trends-summary .revenue-item .summary-label,
.modal-stats .trends-summary .revenue-item .trend-label,
.modal-stats .trends-summary .revenue-item .product-label,
.modal-stats .trends-summary .summary-item .revenue-label,
.modal-stats .trends-summary .summary-item .summary-label,
.modal-stats .trends-summary .summary-item .trend-label,
.modal-stats .trends-summary .summary-item .product-label,
.modal-stats .trends-summary .trend-item .revenue-label,
.modal-stats .trends-summary .trend-item .summary-label,
.modal-stats .trends-summary .trend-item .trend-label,
.modal-stats .trends-summary .trend-item .product-label,
.modal-stats .trends-summary .product-stat .revenue-label,
.modal-stats .trends-summary .product-stat .summary-label,
.modal-stats .trends-summary .product-stat .trend-label,
.modal-stats .trends-summary .product-stat .product-label,
.modal-stats .products-summary .revenue-item .revenue-label,
.modal-stats .products-summary .revenue-item .summary-label,
.modal-stats .products-summary .revenue-item .trend-label,
.modal-stats .products-summary .revenue-item .product-label,
.modal-stats .products-summary .summary-item .revenue-label,
.modal-stats .products-summary .summary-item .summary-label,
.modal-stats .products-summary .summary-item .trend-label,
.modal-stats .products-summary .summary-item .product-label,
.modal-stats .products-summary .trend-item .revenue-label,
.modal-stats .products-summary .trend-item .summary-label,
.modal-stats .products-summary .trend-item .trend-label,
.modal-stats .products-summary .trend-item .product-label,
.modal-stats .products-summary .product-stat .revenue-label,
.modal-stats .products-summary .product-stat .summary-label,
.modal-stats .products-summary .product-stat .trend-label,
.modal-stats .products-summary .product-stat .product-label {
  color: #6b7280;
  font-size: 0.875rem;
}
.modal-stats .revenue-breakdown .revenue-item .revenue-value,
.modal-stats .revenue-breakdown .revenue-item .summary-value,
.modal-stats .revenue-breakdown .revenue-item .trend-value,
.modal-stats .revenue-breakdown .revenue-item .product-value,
.modal-stats .revenue-breakdown .summary-item .revenue-value,
.modal-stats .revenue-breakdown .summary-item .summary-value,
.modal-stats .revenue-breakdown .summary-item .trend-value,
.modal-stats .revenue-breakdown .summary-item .product-value,
.modal-stats .revenue-breakdown .trend-item .revenue-value,
.modal-stats .revenue-breakdown .trend-item .summary-value,
.modal-stats .revenue-breakdown .trend-item .trend-value,
.modal-stats .revenue-breakdown .trend-item .product-value,
.modal-stats .revenue-breakdown .product-stat .revenue-value,
.modal-stats .revenue-breakdown .product-stat .summary-value,
.modal-stats .revenue-breakdown .product-stat .trend-value,
.modal-stats .revenue-breakdown .product-stat .product-value,
.modal-stats .period-summary .revenue-item .revenue-value,
.modal-stats .period-summary .revenue-item .summary-value,
.modal-stats .period-summary .revenue-item .trend-value,
.modal-stats .period-summary .revenue-item .product-value,
.modal-stats .period-summary .summary-item .revenue-value,
.modal-stats .period-summary .summary-item .summary-value,
.modal-stats .period-summary .summary-item .trend-value,
.modal-stats .period-summary .summary-item .product-value,
.modal-stats .period-summary .trend-item .revenue-value,
.modal-stats .period-summary .trend-item .summary-value,
.modal-stats .period-summary .trend-item .trend-value,
.modal-stats .period-summary .trend-item .product-value,
.modal-stats .period-summary .product-stat .revenue-value,
.modal-stats .period-summary .product-stat .summary-value,
.modal-stats .period-summary .product-stat .trend-value,
.modal-stats .period-summary .product-stat .product-value,
.modal-stats .customer-breakdown .revenue-item .revenue-value,
.modal-stats .customer-breakdown .revenue-item .summary-value,
.modal-stats .customer-breakdown .revenue-item .trend-value,
.modal-stats .customer-breakdown .revenue-item .product-value,
.modal-stats .customer-breakdown .summary-item .revenue-value,
.modal-stats .customer-breakdown .summary-item .summary-value,
.modal-stats .customer-breakdown .summary-item .trend-value,
.modal-stats .customer-breakdown .summary-item .product-value,
.modal-stats .customer-breakdown .trend-item .revenue-value,
.modal-stats .customer-breakdown .trend-item .summary-value,
.modal-stats .customer-breakdown .trend-item .trend-value,
.modal-stats .customer-breakdown .trend-item .product-value,
.modal-stats .customer-breakdown .product-stat .revenue-value,
.modal-stats .customer-breakdown .product-stat .summary-value,
.modal-stats .customer-breakdown .product-stat .trend-value,
.modal-stats .customer-breakdown .product-stat .product-value,
.modal-stats .trends-summary .revenue-item .revenue-value,
.modal-stats .trends-summary .revenue-item .summary-value,
.modal-stats .trends-summary .revenue-item .trend-value,
.modal-stats .trends-summary .revenue-item .product-value,
.modal-stats .trends-summary .summary-item .revenue-value,
.modal-stats .trends-summary .summary-item .summary-value,
.modal-stats .trends-summary .summary-item .trend-value,
.modal-stats .trends-summary .summary-item .product-value,
.modal-stats .trends-summary .trend-item .revenue-value,
.modal-stats .trends-summary .trend-item .summary-value,
.modal-stats .trends-summary .trend-item .trend-value,
.modal-stats .trends-summary .trend-item .product-value,
.modal-stats .trends-summary .product-stat .revenue-value,
.modal-stats .trends-summary .product-stat .summary-value,
.modal-stats .trends-summary .product-stat .trend-value,
.modal-stats .trends-summary .product-stat .product-value,
.modal-stats .products-summary .revenue-item .revenue-value,
.modal-stats .products-summary .revenue-item .summary-value,
.modal-stats .products-summary .revenue-item .trend-value,
.modal-stats .products-summary .revenue-item .product-value,
.modal-stats .products-summary .summary-item .revenue-value,
.modal-stats .products-summary .summary-item .summary-value,
.modal-stats .products-summary .summary-item .trend-value,
.modal-stats .products-summary .summary-item .product-value,
.modal-stats .products-summary .trend-item .revenue-value,
.modal-stats .products-summary .trend-item .summary-value,
.modal-stats .products-summary .trend-item .trend-value,
.modal-stats .products-summary .trend-item .product-value,
.modal-stats .products-summary .product-stat .revenue-value,
.modal-stats .products-summary .product-stat .summary-value,
.modal-stats .products-summary .product-stat .trend-value,
.modal-stats .products-summary .product-stat .product-value {
  font-weight: 600;
  color: #1f2937;
}
.modal-stats .revenue-breakdown .revenue-sources,
.modal-stats .period-summary .revenue-sources,
.modal-stats .customer-breakdown .revenue-sources,
.modal-stats .trends-summary .revenue-sources,
.modal-stats .products-summary .revenue-sources {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 12px;
}
.modal-stats .revenue-breakdown .revenue-sources .source-item,
.modal-stats .period-summary .revenue-sources .source-item,
.modal-stats .customer-breakdown .revenue-sources .source-item,
.modal-stats .trends-summary .revenue-sources .source-item,
.modal-stats .products-summary .revenue-sources .source-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}
.modal-stats .revenue-breakdown .revenue-sources .source-item span:first-child,
.modal-stats .period-summary .revenue-sources .source-item span:first-child,
.modal-stats .customer-breakdown .revenue-sources .source-item span:first-child,
.modal-stats .trends-summary .revenue-sources .source-item span:first-child,
.modal-stats .products-summary .revenue-sources .source-item span:first-child {
  color: #1f2937;
  font-weight: 500;
}
.modal-stats .revenue-breakdown .revenue-sources .source-item span:last-child,
.modal-stats .period-summary .revenue-sources .source-item span:last-child,
.modal-stats .customer-breakdown .revenue-sources .source-item span:last-child,
.modal-stats .trends-summary .revenue-sources .source-item span:last-child,
.modal-stats .products-summary .revenue-sources .source-item span:last-child {
  color: #6b7280;
}
.modal-stats .revenue-breakdown .summary-grid,
.modal-stats .revenue-breakdown .customer-grid,
.modal-stats .revenue-breakdown .trends-grid,
.modal-stats .revenue-breakdown .products-grid,
.modal-stats .period-summary .summary-grid,
.modal-stats .period-summary .customer-grid,
.modal-stats .period-summary .trends-grid,
.modal-stats .period-summary .products-grid,
.modal-stats .customer-breakdown .summary-grid,
.modal-stats .customer-breakdown .customer-grid,
.modal-stats .customer-breakdown .trends-grid,
.modal-stats .customer-breakdown .products-grid,
.modal-stats .trends-summary .summary-grid,
.modal-stats .trends-summary .customer-grid,
.modal-stats .trends-summary .trends-grid,
.modal-stats .trends-summary .products-grid,
.modal-stats .products-summary .summary-grid,
.modal-stats .products-summary .customer-grid,
.modal-stats .products-summary .trends-grid,
.modal-stats .products-summary .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.modal-stats .revenue-breakdown .customer-period,
.modal-stats .period-summary .customer-period,
.modal-stats .customer-breakdown .customer-period,
.modal-stats .trends-summary .customer-period,
.modal-stats .products-summary .customer-period {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 12px;
}
.modal-stats .revenue-breakdown .customer-period .customer-stats,
.modal-stats .period-summary .customer-period .customer-stats,
.modal-stats .customer-breakdown .customer-period .customer-stats,
.modal-stats .trends-summary .customer-period .customer-stats,
.modal-stats .products-summary .customer-period .customer-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-stats .revenue-breakdown .customer-period .customer-stats span,
.modal-stats .period-summary .customer-period .customer-stats span,
.modal-stats .customer-breakdown .customer-period .customer-stats span,
.modal-stats .trends-summary .customer-period .customer-stats span,
.modal-stats .products-summary .customer-period .customer-stats span {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #1f2937;
}
.modal-stats .modal-description {
  padding: 1rem;
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border-radius: 12px;
}
.modal-stats .modal-description p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.trends-tab .trends-summary table {
  width: 100%;
  border-collapse: collapse;
}
.trends-tab .trends-summary table th,
.trends-tab .trends-summary table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.trends-tab .trends-summary table th {
  background: #f9fafb;
  font-weight: 600;
  color: #1f2937;
}

.info-icon,
.section-info-icon,
.chart-info-icon,
.table-info-icon {
  width: 20px;
  height: 20px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}
.info-icon:hover,
.section-info-icon:hover,
.chart-info-icon:hover,
.table-info-icon:hover {
  color: #008080;
  transform: scale(1.1);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-header h2 {
  margin: 0;
  padding: 0;
  border: none;
}

.chart-header .chart-info-icon {
  margin-left: auto;
}

.card-header .info-icon {
  margin-left: auto;
}

.top-products-table .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.top-products-table .table-header .table-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.top-products-table .table-header .table-title h3 {
  margin: 0;
}
.top-products-table .table-header .table-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-products-table .table-header .table-controls .search-box {
  position: relative;
}
.top-products-table .table-header .table-controls .search-box .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #6b7280;
}
.top-products-table .table-header .table-controls .search-box input {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.875rem;
  width: 200px;
  transition: all 0.3s ease;
}
.top-products-table .table-header .table-controls .search-box input:focus {
  outline: none;
  border-color: #008080;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.top-products-table .table-header .table-controls .search-box input::-moz-placeholder {
  color: #9ca3af;
}
.top-products-table .table-header .table-controls .search-box input::placeholder {
  color: #9ca3af;
}
.top-products-table .table-container table thead th.sortable {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  position: relative;
  transition: all 0.3s ease;
}
.top-products-table .table-container table thead th.sortable:hover {
  background: #f9fafb;
}
.top-products-table .table-container table thead th.sortable.active {
  background: #f9fafb;
  color: #008080;
}
.top-products-table .table-container table thead th.sortable .sort-icon {
  width: 14px;
  height: 14px;
  margin-left: 0.25rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.top-products-table .table-container table thead th.sortable:hover .sort-icon, .top-products-table .table-container table thead th.sortable.active .sort-icon {
  opacity: 1;
}
.top-products-table .table-container table tbody .actions-cell {
  text-align: center;
}
.top-products-table .table-container table tbody .actions-cell .edit-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #008080;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.top-products-table .table-container table tbody .actions-cell .edit-product-btn:hover {
  background: #004d4d;
  transform: scale(1.05);
}
.top-products-table .table-container table tbody .actions-cell .edit-product-btn svg {
  width: 16px;
  height: 16px;
}
.top-products-table .pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 1rem;
}
.top-products-table .pagination .pagination-info {
  color: #6b7280;
  font-size: 0.875rem;
}
.top-products-table .pagination .pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.top-products-table .pagination .pagination-controls .pagination-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #1f2937;
  border-radius: 12px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.top-products-table .pagination .pagination-controls .pagination-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #008080;
}
.top-products-table .pagination .pagination-controls .pagination-btn.active {
  background: #008080;
  color: white;
  border-color: #008080;
}
.top-products-table .pagination .pagination-controls .pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .woo-analytics-modal {
    width: 95%;
    max-height: 90vh;
  }
  .woo-analytics-modal .modal-header {
    padding: 1rem 1.5rem;
  }
  .woo-analytics-modal .modal-header h3 {
    font-size: 1.125rem;
  }
  .woo-analytics-modal .modal-content {
    padding: 1.5rem;
  }
  .modal-stats .stat-grid {
    grid-template-columns: 1fr;
  }
  .modal-stats .summary-grid,
  .modal-stats .customer-grid,
  .modal-stats .trends-grid,
  .modal-stats .products-grid {
    grid-template-columns: 1fr;
  }
  .top-products-table .table-header {
    flex-direction: column;
    align-items: stretch;
  }
  .top-products-table .table-header .table-controls {
    justify-content: stretch;
  }
  .top-products-table .table-header .table-controls .search-box input {
    width: 100%;
  }
  .top-products-table .pagination {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .top-products-table .pagination .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
  .analytics-preview-mode .glass-effect-container:active .glass-overlay {
    opacity: 1;
    visibility: visible;
  }
  .analytics-preview-mode .glass-effect-container .glass-overlay .glass-content {
    padding: 1.5rem;
  }
  .analytics-preview-mode .glass-effect-container .glass-overlay .glass-content h4 {
    font-size: 1.125rem;
  }
  .analytics-preview-mode .glass-effect-container .glass-overlay .glass-content p {
    font-size: 0.875rem;
  }
  .analytics-preview-mode .glass-effect-container .glass-overlay .glass-content .enable-hint {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .analytics-preview-mode .chart-placeholder {
    height: 250px;
  }
  .analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal {
    padding: 0.5rem;
  }
  .analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal .product-bar .product-name {
    min-width: 80px;
    font-size: 0.8rem;
  }
  .analytics-preview-mode .chart-placeholder .placeholder-chart.horizontal .product-bar .bar {
    height: 16px;
  }
  .analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars {
    padding: 0.5rem;
  }
  .analytics-preview-mode .chart-placeholder .placeholder-chart .chart-bars .bar {
    width: 16px;
  }
  .analytics-preview-mode .chart-placeholder .placeholder-chart .placeholder-pie-chart {
    width: 120px;
    height: 120px;
  }
  .analytics-preview-mode .activation-guide {
    margin-top: 2rem;
  }
  .analytics-preview-mode .activation-guide .guide-content h3 {
    font-size: 1.25rem;
  }
  .analytics-preview-mode .activation-guide .guide-content > p {
    font-size: 1rem;
  }
  .analytics-preview-mode .activation-guide .guide-content .activation-steps .step-item {
    padding: 0.75rem;
  }
  .analytics-preview-mode .activation-guide .guide-content .activation-steps .step-item .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .analytics-preview-mode .activation-guide .guide-content .activation-steps .step-item span:last-child {
    font-size: 0.9rem;
  }
  .analytics-preview-mode .activation-guide .guide-content .enable-analytics-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  .analytics-preview-mode .preview-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
.modal-table-container {
  max-height: 400px;
  overflow-y: auto;
  margin: 20px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.modal-table-container .modal-products-table,
.modal-table-container .modal-daily-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.modal-table-container .modal-products-table thead,
.modal-table-container .modal-daily-table thead {
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 1;
}
.modal-table-container .modal-products-table thead th,
.modal-table-container .modal-daily-table thead th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}
.modal-table-container .modal-products-table tbody tr,
.modal-table-container .modal-daily-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}
.modal-table-container .modal-products-table tbody tr:hover,
.modal-table-container .modal-daily-table tbody tr:hover {
  background-color: #f8f9fa;
}
.modal-table-container .modal-products-table tbody tr:last-child,
.modal-table-container .modal-daily-table tbody tr:last-child {
  border-bottom: none;
}
.modal-table-container .modal-products-table tbody td,
.modal-table-container .modal-daily-table tbody td {
  padding: 10px 8px;
  vertical-align: middle;
}
.modal-table-container .modal-products-table tbody td.rank-cell,
.modal-table-container .modal-daily-table tbody td.rank-cell {
  text-align: center;
  width: 60px;
}
.modal-table-container .modal-products-table tbody td.rank-cell .rank,
.modal-table-container .modal-daily-table tbody td.rank-cell .rank {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  background: #e9ecef;
  color: #495057;
  font-weight: 600;
  font-size: 12px;
}
.modal-table-container .modal-products-table tbody td.rank-cell .rank.top-performer,
.modal-table-container .modal-daily-table tbody td.rank-cell .rank.top-performer {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #b8860b;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}
.modal-table-container .modal-products-table tbody td.product-name-cell,
.modal-table-container .modal-daily-table tbody td.product-name-cell {
  max-width: 200px;
}
.modal-table-container .modal-products-table tbody td.product-name-cell strong,
.modal-table-container .modal-daily-table tbody td.product-name-cell strong {
  color: #2c3e50;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-table-container .modal-products-table tbody td.quantity-cell, .modal-table-container .modal-products-table tbody td.orders-cell,
.modal-table-container .modal-daily-table tbody td.quantity-cell,
.modal-table-container .modal-daily-table tbody td.orders-cell {
  text-align: center;
  font-weight: 600;
  color: #495057;
}
.modal-table-container .modal-products-table tbody td.price-cell, .modal-table-container .modal-products-table tbody td.revenue-cell, .modal-table-container .modal-products-table tbody td.avg-cell,
.modal-table-container .modal-daily-table tbody td.price-cell,
.modal-table-container .modal-daily-table tbody td.revenue-cell,
.modal-table-container .modal-daily-table tbody td.avg-cell {
  text-align: right;
  font-weight: 600;
  color: #28a745;
}
.modal-table-container .modal-products-table tbody td.date-cell,
.modal-table-container .modal-daily-table tbody td.date-cell {
  font-weight: 500;
  color: #495057;
  white-space: nowrap;
}
.modal-table-container .modal-products-table tbody td.completed-cell,
.modal-table-container .modal-daily-table tbody td.completed-cell {
  text-align: center;
  color: #28a745;
  font-weight: 600;
}
.modal-table-container .modal-products-table tbody td.processing-cell,
.modal-table-container .modal-daily-table tbody td.processing-cell {
  text-align: center;
  color: #ffc107;
  font-weight: 600;
}
.modal-table-container .modal-products-table tbody td.performance-cell,
.modal-table-container .modal-daily-table tbody td.performance-cell {
  width: 120px;
}
.modal-table-container .modal-products-table tbody td.performance-cell .performance-bar,
.modal-table-container .modal-daily-table tbody td.performance-cell .performance-bar {
  position: relative;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}
.modal-table-container .modal-products-table tbody td.performance-cell .performance-bar .performance-fill,
.modal-table-container .modal-daily-table tbody td.performance-cell .performance-bar .performance-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 10px;
  transition: width 0.3s ease;
}
.modal-table-container .modal-products-table tbody td.performance-cell .performance-bar .performance-text,
.modal-table-container .modal-daily-table tbody td.performance-cell .performance-bar .performance-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: #333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.products-detailed-table,
.daily-breakdown-table {
  margin-top: 30px;
}
.products-detailed-table h4,
.daily-breakdown-table h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.revenue-orders-summary {
  margin-bottom: 25px;
}
.revenue-orders-summary h4 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.revenue-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.revenue-orders-grid .summary-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #007cba;
}
.revenue-orders-grid .summary-item .summary-label {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 5px;
  font-weight: 500;
}
.revenue-orders-grid .summary-item .summary-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}

@media (max-width: 768px) {
  .modal-table-container .modal-products-table,
  .modal-table-container .modal-daily-table {
    font-size: 12px;
  }
  .modal-table-container .modal-products-table thead th,
  .modal-table-container .modal-daily-table thead th {
    padding: 8px 4px;
  }
  .modal-table-container .modal-products-table tbody td,
  .modal-table-container .modal-daily-table tbody td {
    padding: 8px 4px;
  }
  .modal-table-container .modal-products-table tbody td.product-name-cell,
  .modal-table-container .modal-daily-table tbody td.product-name-cell {
    max-width: 150px;
  }
  .modal-table-container .modal-products-table tbody td.performance-cell,
  .modal-table-container .modal-daily-table tbody td.performance-cell {
    width: 80px;
  }
  .modal-table-container .modal-products-table tbody td.performance-cell .performance-bar,
  .modal-table-container .modal-daily-table tbody td.performance-cell .performance-bar {
    height: 16px;
  }
  .modal-table-container .modal-products-table tbody td.performance-cell .performance-bar .performance-text,
  .modal-table-container .modal-daily-table tbody td.performance-cell .performance-bar .performance-text {
    font-size: 10px;
  }
  .revenue-orders-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .revenue-orders-grid .summary-item {
    padding: 12px;
  }
  .revenue-orders-grid .summary-item .summary-label {
    font-size: 12px;
  }
  .revenue-orders-grid .summary-item .summary-value {
    font-size: 14px;
  }
}
.incomplete-orders-section {
  margin-top: 2rem;
}
.incomplete-orders-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}
.incomplete-orders-section .section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  font-size: 1.5rem;
  margin: 0;
}
.incomplete-orders-section .section-header .section-icon {
  color: #ef4444;
}
.incomplete-orders-section .section-header .section-tabs {
  display: flex;
  gap: 0.5rem;
}
.incomplete-orders-section .section-header .tab-button {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #6b7280;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}
.incomplete-orders-section .section-header .tab-button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.incomplete-orders-section .section-header .tab-button.active {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}
.incomplete-orders-section .incomplete-orders-loading,
.incomplete-orders-section .incomplete-orders-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}
.incomplete-orders-section .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #ef4444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}
.incomplete-orders-section .error-icon {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
}
.incomplete-orders-section .retry-button {
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  margin-top: 1rem;
}
.incomplete-orders-section .retry-button:hover {
  background: #dc2626;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.incomplete-orders-section .incomplete-orders-list .orders-header {
  margin-bottom: 1.5rem;
}
.incomplete-orders-section .incomplete-orders-list .orders-header h3 {
  color: #1f2937;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}
.incomplete-orders-section .incomplete-orders-list .orders-header p {
  color: #6b7280;
  margin: 0;
}
.incomplete-orders-section .incomplete-orders-list .orders-table-container {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.incomplete-orders-section .incomplete-orders-list .orders-table {
  width: 100%;
  border-collapse: collapse;
}
.incomplete-orders-section .incomplete-orders-list .orders-table thead {
  background: #f9fafb;
}
.incomplete-orders-section .incomplete-orders-list .orders-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.incomplete-orders-section .incomplete-orders-list .orders-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}
.incomplete-orders-section .incomplete-orders-list .orders-table tbody tr:hover {
  background: #f9fafb;
}
.incomplete-orders-section .incomplete-orders-list .orders-table td {
  padding: 1rem;
  vertical-align: top;
}
.incomplete-orders-section .incomplete-orders-list .customer-info strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.incomplete-orders-section .incomplete-orders-list .customer-email {
  color: #6b7280;
  font-size: 0.875rem;
}
.incomplete-orders-section .incomplete-orders-list .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.incomplete-orders-section .incomplete-orders-list .contact-icon {
  font-size: 1rem;
  color: #9ca3af;
}
.incomplete-orders-section .incomplete-orders-list .product-item {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: #374151;
}
.incomplete-orders-section .incomplete-orders-list .more-products {
  color: #6b7280;
  font-size: 0.75rem;
  font-style: italic;
}
.incomplete-orders-section .incomplete-orders-list .no-products {
  color: #9ca3af;
  font-style: italic;
}
.incomplete-orders-section .incomplete-orders-list .value-cell strong {
  color: #059669;
  font-size: 1.125rem;
}
.incomplete-orders-section .incomplete-orders-list .date-cell {
  color: #6b7280;
  font-size: 0.875rem;
}
.incomplete-orders-section .incomplete-orders-list .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.incomplete-orders-section .incomplete-orders-list .status-badge.incomplete {
  background: #fef2f2;
  color: #dc2626;
}
.incomplete-orders-section .incomplete-orders-list .status-badge.contacted {
  background: #fef3c7;
  color: #d97706;
}
.incomplete-orders-section .incomplete-orders-list .status-badge.completed {
  background: #d1fae5;
  color: #059669;
}
.incomplete-orders-section .incomplete-orders-list .action-buttons {
  display: flex;
  gap: 0.5rem;
}
.incomplete-orders-section .incomplete-orders-list .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.incomplete-orders-section .incomplete-orders-list .action-btn svg {
  font-size: 1rem;
}
.incomplete-orders-section .incomplete-orders-list .action-btn.email-btn {
  background: #dbeafe;
  color: #2563eb;
}
.incomplete-orders-section .incomplete-orders-list .action-btn.email-btn:hover {
  background: #bfdbfe;
}
.incomplete-orders-section .incomplete-orders-list .action-btn.contact-btn {
  background: #d1fae5;
  color: #059669;
}
.incomplete-orders-section .incomplete-orders-list .action-btn.contact-btn:hover {
  background: #a7f3d0;
}
.incomplete-orders-section .incomplete-orders-list .no-orders {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px dashed #cbd5e1;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .no-orders-icon {
  font-size: 4rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}
.incomplete-orders-section .incomplete-orders-list .no-orders h3 {
  color: #475569;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}
.incomplete-orders-section .incomplete-orders-list .no-orders p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 400px;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .suggestions {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .suggestions h4 {
  color: #334155;
  font-size: 1.125rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .suggestions ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .suggestions ul li:last-child {
  border-bottom: none;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .suggestions ul li::before {
  content: "💡";
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}
.incomplete-orders-section .incomplete-orders-list .no-orders .refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}
.incomplete-orders-section .incomplete-orders-list .no-orders .refresh-btn svg {
  font-size: 1.125rem;
}
.incomplete-orders-section .incomplete-orders-list .no-data {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 3rem;
}
.incomplete-orders-section .most-abandoned-tab .no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px dashed #cbd5e1;
}
.incomplete-orders-section .abandoned-products-section .products-header {
  margin-bottom: 1.5rem;
}
.incomplete-orders-section .abandoned-products-section .products-header h3 {
  color: #1f2937;
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}
.incomplete-orders-section .abandoned-products-section .products-header p {
  color: #6b7280;
  margin: 0;
}
.incomplete-orders-section .abandoned-products-section .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.incomplete-orders-section .abandoned-products-section .abandoned-product-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}
.incomplete-orders-section .abandoned-products-section .product-rank {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #ef4444;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.incomplete-orders-section .abandoned-products-section .product-info {
  margin-bottom: 1rem;
}
.incomplete-orders-section .abandoned-products-section .product-name {
  color: #1f2937;
  font-size: 1.125rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}
.incomplete-orders-section .abandoned-products-section .stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.incomplete-orders-section .abandoned-products-section .stat-label {
  color: #6b7280;
  font-size: 0.875rem;
}
.incomplete-orders-section .abandoned-products-section .stat-value {
  color: #1f2937;
  font-weight: 600;
}
.incomplete-orders-section .abandoned-products-section .edit-product-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.incomplete-orders-section .abandoned-products-section .edit-product-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}
.incomplete-orders-section .abandoned-products-section .no-abandoned-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  grid-column: 1/-1;
}
.incomplete-orders-section .abandoned-products-section .no-data-icon {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}
.incomplete-orders-section .abandoned-products-section .no-abandoned-products h4 {
  color: #6b7280;
  margin: 0 0 0.5rem 0;
}
.incomplete-orders-section .abandoned-products-section .no-abandoned-products p {
  color: #9ca3af;
  margin: 0;
}

@media (max-width: 768px) {
  .incomplete-orders-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .incomplete-orders-section .section-tabs {
    width: 100%;
  }
  .incomplete-orders-section .tab-button {
    flex: 1;
    text-align: center;
  }
  .incomplete-orders-section .incomplete-orders-overview .stats-grid {
    grid-template-columns: 1fr;
  }
  .incomplete-orders-section .incomplete-orders-overview .charts-grid {
    grid-template-columns: 1fr;
  }
  .incomplete-orders-section .chart-content {
    height: 250px;
  }
  .incomplete-orders-section .orders-table-container {
    overflow-x: auto;
  }
  .incomplete-orders-section .orders-table {
    min-width: 800px;
  }
  .incomplete-orders-section .abandoned-products-section .products-grid {
    grid-template-columns: 1fr;
  }
}
.incomplete-orders-section {
  margin-top: 2rem;
}
.incomplete-orders-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.incomplete-orders-section .section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}
.incomplete-orders-section .section-header .section-tabs {
  display: flex;
  gap: 0.5rem;
}
.incomplete-orders-section .section-header .section-tabs .tab-button {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.incomplete-orders-section .section-header .section-tabs .tab-button:hover {
  background: #f3f4f6;
}
.incomplete-orders-section .section-header .section-tabs .tab-button.active {
  background: #008080;
  color: white;
  border-color: #008080;
}
.incomplete-orders-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.incomplete-orders-section .stats-grid .stat-card {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  padding: 1.5rem;
}
.incomplete-orders-section .stats-grid .stat-card .stat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.incomplete-orders-section .stats-grid .stat-card .stat-header .stat-icon {
  color: #008080;
}
.incomplete-orders-section .stats-grid .stat-card .stat-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}
.incomplete-orders-section .stats-grid .stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.incomplete-orders-section .stats-grid .stat-card .stat-subtext {
  color: #6b7280;
  font-size: 0.875rem;
}
.incomplete-orders-section .orders-table {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  padding: 0;
  overflow: hidden;
}
.incomplete-orders-section .orders-table table {
  width: 100%;
  border-collapse: collapse;
}
.incomplete-orders-section .orders-table table th,
.incomplete-orders-section .orders-table table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.incomplete-orders-section .orders-table table th {
  background: #f9fafb;
  font-weight: 600;
  color: #1f2937;
}
.incomplete-orders-section .orders-table table .customer-info .customer-name {
  font-weight: 600;
  color: #1f2937;
}
.incomplete-orders-section .orders-table table .customer-info .customer-email {
  color: #6b7280;
  font-size: 0.875rem;
}
.incomplete-orders-section .orders-table table .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.incomplete-orders-section .orders-table table .status-badge.incomplete {
  background: #fef3c7;
  color: #92400e;
}
.incomplete-orders-section .orders-table table .status-badge.contacted {
  background: #dbeafe;
  color: #1e40af;
}
.incomplete-orders-section .orders-table table .status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}
.incomplete-orders-section .most-abandoned-products {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  margin-top: 2rem;
}
.incomplete-orders-section .most-abandoned-products h3 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}
.incomplete-orders-section .most-abandoned-products .products-list .product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.incomplete-orders-section .most-abandoned-products .products-list .product-item:last-child {
  border-bottom: none;
}
.incomplete-orders-section .most-abandoned-products .products-list .product-item .product-info .product-name {
  display: block;
  font-weight: 600;
  color: #1f2937;
}
.incomplete-orders-section .most-abandoned-products .products-list .product-item .product-info .abandonment-count {
  color: #6b7280;
  font-size: 0.875rem;
}
.incomplete-orders-section .most-abandoned-products .products-list .product-item .product-value {
  font-weight: 600;
  color: #ef4444;
}

.cart-interactions-analytics {
  margin-top: 2rem;
}
.cart-interactions-analytics .analytics-header {
  margin-bottom: 2rem;
}
.cart-interactions-analytics .analytics-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f3f3f3;
  margin-bottom: 0.5rem;
}
.cart-interactions-analytics .analytics-header p {
  color: #f3f3f3;
}
.cart-interactions-analytics .no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px dashed #cbd5e1;
}
.cart-interactions-analytics .analytics-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.cart-interactions-analytics .analytics-tabs .tab-button {
  padding: 0.75rem 1.5rem;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .analytics-tabs .tab-button:hover {
  background: #f3f4f6;
}
.cart-interactions-analytics .analytics-tabs .tab-button.active {
  background: #008080;
  color: white;
  border-color: #008080;
}
.cart-interactions-analytics .insights-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.cart-interactions-analytics .insights-cards .insight-card {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  padding: 1.5rem;
  text-align: center;
}
.cart-interactions-analytics .insights-cards .insight-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}
.cart-interactions-analytics .insights-cards .insight-card .insight-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #008080;
  margin-bottom: 0.5rem;
}
.cart-interactions-analytics .insights-cards .insight-card .insight-value-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.cart-interactions-analytics .insights-cards .insight-card p {
  color: #6b7280;
  font-size: 0.875rem;
}
.cart-interactions-analytics .charts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.cart-interactions-analytics .charts-row .chart-container {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}
.cart-interactions-analytics .charts-row .chart-container .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cart-interactions-analytics .charts-row .chart-container .chart-header h3 {
  margin: 0;
  color: #1f2937;
}
.cart-interactions-analytics .charts-row .chart-container .chart-header .chart-info-icon {
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .charts-row .chart-container .chart-header .chart-info-icon:hover {
  color: #008080;
  transform: scale(1.1);
}
.cart-interactions-analytics .charts-row .chart-container h3 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}
.cart-interactions-analytics .charts-row .chart-container .no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #6b7280;
}
.cart-interactions-analytics .charts-row .chart-container .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.cart-interactions-analytics .charts-row .chart-container .chart-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-interactions-analytics .charts-row .chart-container .chart-legend .legend-item .legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.cart-interactions-analytics .charts-row .chart-container .chart-legend .legend-item .legend-label {
  color: #6b7280;
  font-size: 0.875rem;
}
.cart-interactions-analytics .charts-row .chart-container .chart-legend .legend-item .legend-value {
  color: #1f2937;
  font-weight: 600;
  font-size: 0.875rem;
}
.cart-interactions-analytics .product-interactions-table {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}
.cart-interactions-analytics .product-interactions-table .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cart-interactions-analytics .product-interactions-table .table-header h3 {
  margin: 0;
  color: #1f2937;
}
.cart-interactions-analytics .product-interactions-table .table-header .table-info-icon {
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .product-interactions-table .table-header .table-info-icon:hover {
  color: #008080;
  transform: scale(1.1);
}
.cart-interactions-analytics .product-interactions-table h3 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}
.cart-interactions-analytics .product-interactions-table table {
  width: 100%;
  border-collapse: collapse;
}
.cart-interactions-analytics .product-interactions-table table th,
.cart-interactions-analytics .product-interactions-table table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.cart-interactions-analytics .product-interactions-table table th {
  background: #f9fafb;
  font-weight: 600;
  color: #1f2937;
}
.cart-interactions-analytics .product-interactions-table table .interaction-type {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.cart-interactions-analytics .product-interactions-table table .interaction-type.increase {
  background: #d1fae5;
  color: #065f46;
}
.cart-interactions-analytics .product-interactions-table table .interaction-type.decrease {
  background: #fef3c7;
  color: #92400e;
}
.cart-interactions-analytics .product-interactions-table table .interaction-type.remove {
  background: #fee2e2;
  color: #991b1b;
}
.cart-interactions-analytics .product-interactions-table table .interaction-type.add {
  background: #dbeafe;
  color: #1e40af;
}
.cart-interactions-analytics .product-interactions-table table .interaction-type.change {
  background: #ede9fe;
  color: #5b21b6;
}
.cart-interactions-analytics .daily-trends-chart {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}
.cart-interactions-analytics .daily-trends-chart .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cart-interactions-analytics .daily-trends-chart .chart-header h3 {
  margin: 0;
  color: #1f2937;
}
.cart-interactions-analytics .daily-trends-chart .chart-header .chart-info-icon {
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .daily-trends-chart .chart-header .chart-info-icon:hover {
  color: #008080;
  transform: scale(1.1);
}
.cart-interactions-analytics .daily-trends-chart .trends-summary {
  margin-top: 2rem;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary h4 {
  color: #1f2937;
  font-size: 1.125rem;
  margin: 0 0 1rem 0;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table {
  width: 100%;
  border-collapse: collapse;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table thead {
  background: #f9fafb;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table tbody tr:hover {
  background: #f9fafb;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table tbody td {
  padding: 1rem;
  color: #1f2937;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table tbody td .interaction-type {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-interactions-analytics .daily-trends-chart .trends-summary table tbody td strong {
  font-weight: 600;
}
.cart-interactions-analytics .cart-interactions-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.cart-interactions-analytics .cart-interactions-modal {
  background: white;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.cart-interactions-analytics .cart-interactions-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.cart-interactions-analytics .cart-interactions-modal .modal-header h3 {
  color: #1f2937;
  font-size: 1.25rem;
  margin: 0;
}
.cart-interactions-analytics .cart-interactions-modal .modal-header .modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .cart-interactions-modal .modal-header .modal-close-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content {
  padding: 2rem;
  max-width: 90%;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-description {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-description p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section {
  margin-bottom: 2rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section h4 {
  color: #1f2937;
  font-size: 1.125rem;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-chart-container {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-stats-grid .modal-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-stats-grid .modal-stat-item .stat-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-stats-grid .modal-stat-item .stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-stats-grid .modal-stat-item .stat-info .stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-stats-grid .modal-stat-item .stat-info .stat-value {
  color: #1f2937;
  font-weight: 600;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-stats-grid .modal-stat-item .stat-info .stat-percentage {
  color: #008080;
  font-size: 0.875rem;
  font-weight: 600;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-trends-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-trends-summary h5 {
  color: #1f2937;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-trends-summary .trends-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-trends-summary .trends-stats .trend-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-trends-summary .trends-stats .trend-stat .trend-label {
  color: #6b7280;
  font-size: 0.875rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-chart-section .modal-trends-summary .trends-stats .trend-stat .trend-value {
  color: #1f2937;
  font-weight: 600;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section {
  margin-bottom: 2rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section h4 {
  color: #1f2937;
  font-size: 1.125rem;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table thead {
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody tr:hover {
  background: #f9fafb;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td {
  padding: 1rem;
  vertical-align: middle;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.rank-cell {
  text-align: center;
  width: 60px;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.rank-cell .rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #008080;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.product-name-cell {
  max-width: 200px;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.product-name-cell strong {
  color: #1f2937;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.count-cell {
  text-align: center;
  font-weight: 600;
  color: #1f2937;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.percentage-cell {
  width: 120px;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.percentage-cell .percentage-bar {
  position: relative;
  height: 20px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.percentage-cell .percentage-bar .percentage-fill {
  height: 100%;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td.percentage-cell .percentage-bar .percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.cart-interactions-analytics .cart-interactions-modal .modal-content .modal-table-section .modal-table-container .modal-products-table tbody td .interaction-type {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-interactions-analytics .cart-interactions-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}
.cart-interactions-analytics .cart-interactions-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cart-interactions-analytics .cart-interactions-modal .modal-footer .btn.btn-default {
  background: #e5e7eb;
  color: #1f2937;
  border: none;
}
.cart-interactions-analytics .cart-interactions-modal .modal-footer .btn.btn-default:hover {
  background: #d1d5db;
}

.analytics-preview {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.analytics-preview .preview-info h4 {
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.analytics-preview .preview-info .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.analytics-preview .preview-info .features-grid .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.analytics-preview .preview-info .features-grid .feature-item .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.analytics-preview .preview-info .features-grid .feature-item .feature-content strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.analytics-preview .preview-info .features-grid .feature-item .feature-content p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}
.analytics-preview .preview-info .preview-actions {
  text-align: center;
}
.analytics-preview .preview-info .preview-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.woo-status-check .status-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.woo-status-check .status-item:last-child {
  border-bottom: none;
}
.woo-status-check .status-item .status-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.woo-status-check .status-item .status-content strong {
  display: block;
  color: #1f2937;
  margin-bottom: 0.25rem;
}
.woo-status-check .status-item .status-content p {
  color: #6b7280;
  margin: 0;
}

@media (max-width: 768px) {
  .woo-analytics-dashboard .analytics-grid {
    grid-template-columns: 1fr;
  }
  .woo-analytics-dashboard .analytics-charts {
    grid-template-columns: 1fr;
  }
  .woo-analytics-dashboard .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .woo-analytics-dashboard .insights-cards {
    grid-template-columns: 1fr;
  }
  .woo-analytics-dashboard .features-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Order Details Modal Styles */
.order-details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.order-details-modal {
  background: white;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.order-details-modal .modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.order-details-modal .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.order-details-modal .close-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.order-details-modal .close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.order-details-modal .modal-body {
  padding: 30px;
}

.order-details-modal .detail-section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
}

.order-details-modal .detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.order-details-modal .detail-section h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-details-modal .detail-section h4:before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.order-details-modal .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.order-details-modal .detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-details-modal .detail-item .label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-details-modal .detail-item .value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.order-details-modal .detail-item .value a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.order-details-modal .detail-item .value a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.order-details-modal .products-table {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.order-details-modal .products-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.order-details-modal .products-table thead {
  background: #f9fafb;
}

.order-details-modal .products-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.order-details-modal .products-table td {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.order-details-modal .products-table tbody tr:last-child td {
  border-bottom: none;
}

.order-details-modal .products-table tbody tr:hover {
  background: #f9fafb;
}

.order-details-modal .product-id,
.order-details-modal .variation-id {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.order-details-modal .product-link {
  display: inline-block;
  padding: 6px 12px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.order-details-modal .product-link:hover {
  background: #764ba2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.order-details-modal .cart-summary {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
}

.order-details-modal .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.order-details-modal .summary-row:last-child {
  border-bottom: none;
}

.order-details-modal .summary-row.total {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #d1d5db;
}

.order-details-modal .summary-row .label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.order-details-modal .summary-row.total .label {
  font-size: 16px;
  color: #1f2937;
  font-weight: 700;
}

.order-details-modal .summary-row .value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.order-details-modal .summary-row.total .value strong {
  font-size: 18px;
  color: #10b981;
}

.order-details-modal .user-agent-value {
  font-size: 13px;
  color: #4b5563;
  background: #f9fafb;
  padding: 12px;
  border-radius: 6px;
  font-family: monospace;
  word-break: break-all;
  margin-top: 8px;
}

.order-details-modal .interactions-data pre {
  background: #1f2937;
  color: #10b981;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
  margin: 0;
}

.order-details-modal .no-data-text {
  text-align: center;
  color: #9ca3af;
  padding: 20px;
  font-style: italic;
}

.order-details-modal .modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.order-details-modal .modal-footer .btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-details-modal .modal-footer .btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.order-details-modal .modal-footer .btn-secondary:hover {
  background: #d1d5db;
}

.order-details-modal .modal-footer .btn-primary {
  background: #667eea;
  color: white;
}

.order-details-modal .modal-footer .btn-primary:hover {
  background: #764ba2;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.order-details-modal .modal-footer .btn-success {
  background: #10b981;
  color: white;
}

.order-details-modal .modal-footer .btn-success:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* View Details Button in Table */
.incomplete-orders-list .view-details-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
  display: inline-block;
}

.incomplete-orders-list .view-details-btn:hover {
  background: #764ba2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.order-actions .btn-info {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.order-actions .btn-info:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-details-modal {
    max-width: 95%;
    max-height: 95vh;
  }
  .order-details-modal .modal-header,
  .order-details-modal .modal-body,
  .order-details-modal .modal-footer {
    padding: 20px;
  }
  .order-details-modal .detail-grid {
    grid-template-columns: 1fr;
  }
  .order-details-modal .modal-footer {
    flex-direction: column;
  }
  .order-details-modal .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}
/* Incomplete Orders Section Styles */
.incomplete-orders-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.incomplete-orders-section .section-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 600;
}
.incomplete-orders-section .section-header h2 .section-icon {
  color: #3b82f6;
}
.incomplete-orders-section .section-tabs {
  display: flex;
  gap: 8px;
}
.incomplete-orders-section .section-tabs .tab-button {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}
.incomplete-orders-section .section-tabs .tab-button:hover {
  background: #f3f4f6;
  color: #374151;
}
.incomplete-orders-section .section-tabs .tab-button.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}
.incomplete-orders-section .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.incomplete-orders-section .loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
.incomplete-orders-section .loading-state p {
  color: #6b7280;
  margin: 0;
}
.incomplete-orders-section {
  /* Overview Tab Styles */
}
.incomplete-orders-section .incomplete-orders-overview .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.incomplete-orders-section .incomplete-orders-overview .stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.incomplete-orders-section .incomplete-orders-overview .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.incomplete-orders-section .incomplete-orders-overview .stat-card .stat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.incomplete-orders-section .incomplete-orders-overview .stat-card .stat-header .stat-icon {
  color: #3b82f6;
  font-size: 20px;
}
.incomplete-orders-section .incomplete-orders-overview .stat-card .stat-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.incomplete-orders-section .incomplete-orders-overview .stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1;
}
.incomplete-orders-section .incomplete-orders-overview .stat-card .stat-subtext {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.incomplete-orders-section .incomplete-orders-overview .no-data-message {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.incomplete-orders-section .incomplete-orders-overview .no-data-message .no-data-icon {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
}
.incomplete-orders-section .incomplete-orders-overview .no-data-message p {
  color: #6b7280;
  margin: 8px 0;
}
.incomplete-orders-section .incomplete-orders-overview .no-data-message p:first-of-type {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}
.incomplete-orders-section .incomplete-orders-overview .no-data-message .no-data-subtext {
  font-size: 14px;
  color: #9ca3af;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products .products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products .product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #f3f4f6;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products .product-item .product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products .product-item .product-info .product-name {
  font-weight: 600;
  color: #1f2937;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products .product-item .product-info .abandonment-count {
  font-size: 12px;
  color: #6b7280;
}
.incomplete-orders-section .incomplete-orders-overview .most-abandoned-products .product-item .product-value {
  font-weight: 600;
  color: #dc2626;
  font-size: 16px;
}
.incomplete-orders-section {
  /* Orders Tab Styles */
}
.incomplete-orders-section .incomplete-orders-list .orders-table {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table {
  width: 100%;
  border-collapse: collapse;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table thead {
  background: #f9fafb;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table thead th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody tr:hover {
  background: #f9fafb;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody tr:last-child {
  border-bottom: none;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td {
  padding: 16px;
  vertical-align: top;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .customer-info .customer-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .customer-info .customer-email {
  font-size: 14px;
  color: #6b7280;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .products-info {
  max-width: 200px;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .products-info .view-details-btn {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
  font-size: 12px;
  padding: 0;
  margin-left: 4px;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .products-info .view-details-btn:hover {
  color: #2563eb;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .status-badge.incomplete {
  background: #fef3c7;
  color: #92400e;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .status-badge.contacted {
  background: #dbeafe;
  color: #1e40af;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.btn-info {
  background: #0ea5e9;
  color: white;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.btn-info:hover {
  background: #0284c7;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.btn-primary {
  background: #3b82f6;
  color: white;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.btn-primary:hover {
  background: #2563eb;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.btn-secondary {
  background: #6b7280;
  color: white;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.btn-secondary:hover {
  background: #4b5563;
}
.incomplete-orders-section .incomplete-orders-list .orders-table table tbody td .order-actions .btn.view-details-btn {
  background: #0ea5e9;
  color: white;
}
.incomplete-orders-section .incomplete-orders-list .no-orders {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}
.incomplete-orders-section .incomplete-orders-list .no-orders p {
  margin: 0;
  font-size: 16px;
}
.incomplete-orders-section {
  /* Most Abandoned Tab Styles */
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table {
  width: 100%;
  border-collapse: collapse;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table thead {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table thead th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #b91c1c;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table thead th:first-child {
  border-top-left-radius: 8px;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table thead th:last-child {
  border-top-right-radius: 8px;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody tr:hover {
  background: #fef2f2;
  transform: translateX(2px);
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody tr:last-child {
  border-bottom: none;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody tr:nth-child(odd) {
  background: #fafafa;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody tr:nth-child(odd):hover {
  background: #fef2f2;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody td {
  padding: 16px;
  vertical-align: middle;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody td:first-child {
  font-weight: 700;
  color: #dc2626;
  font-size: 16px;
  width: 60px;
  text-align: center;
  background: #fef2f2;
  border-right: 2px solid #fecaca;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody td:nth-child(2) {
  font-weight: 600;
  color: #1f2937;
  max-width: 200px;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody td:nth-child(3) {
  font-weight: 600;
  color: #dc2626;
  text-align: center;
  background: #fef2f2;
  border-radius: 4px;
  margin: 2px;
}
.incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody td:nth-child(4), .incomplete-orders-section .most-abandoned-tab .abandoned-products-table table tbody td:nth-child(5) {
  font-weight: 600;
  color: #059669;
  text-align: right;
}
.incomplete-orders-section {
  /* Order Details Modal Styles */
}
.incomplete-orders-section .order-details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.incomplete-orders-section .order-details-modal {
  background: white;
  border-radius: 12px;
  max-width: -moz-max-content;
  max-width: max-content;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.incomplete-orders-section .order-details-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px 12px 0 0;
}
.incomplete-orders-section .order-details-modal .modal-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
}
.incomplete-orders-section .order-details-modal .modal-header .modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.incomplete-orders-section .order-details-modal .modal-header .modal-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.incomplete-orders-section .order-details-modal .modal-content {
  padding: 24px;
}
.incomplete-orders-section .order-details-modal .modal-content .order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .incomplete-orders-section .order-details-modal .modal-content .order-info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.incomplete-orders-section .order-details-modal .modal-content .info-section h4 {
  margin: 0 0 16px 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}
.incomplete-orders-section .order-details-modal .modal-content .info-section .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.incomplete-orders-section .order-details-modal .modal-content .info-section .info-item:last-child {
  border-bottom: none;
}
.incomplete-orders-section .order-details-modal .modal-content .info-section .info-item label {
  font-weight: 600;
  color: #374151;
  min-width: 100px;
}
.incomplete-orders-section .order-details-modal .modal-content .info-section .info-item span {
  color: #6b7280;
  text-align: right;
}
.incomplete-orders-section .order-details-modal .modal-content .info-section .info-item span.total-amount {
  font-weight: 700;
  color: #059669;
  font-size: 18px;
}
.incomplete-orders-section .order-details-modal .modal-content .info-section .info-item span.technical-data {
  font-family: monospace;
  font-size: 12px;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}
.incomplete-orders-section .order-details-modal .modal-content .info-section .info-item span.user-agent {
  font-size: 12px;
  max-width: 200px;
  word-break: break-all;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section {
  margin-bottom: 32px;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section h4 {
  margin: 0 0 16px 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table {
  width: 100%;
  border-collapse: collapse;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table thead {
  background: #f9fafb;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table thead th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table tbody tr:last-child {
  border-bottom: none;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table tbody tr:hover {
  background: #f9fafb;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table tbody td {
  padding: 12px;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table tbody td .product-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
}
.incomplete-orders-section .order-details-modal .modal-content .products-section .products-table table tbody td .product-link:hover {
  text-decoration: underline;
}
.incomplete-orders-section .order-details-modal .modal-content .technical-info {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.incomplete-orders-section .order-details-modal .modal-content .technical-info h4 {
  margin: 0 0 16px 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}
.incomplete-orders-section .order-details-modal .modal-content .technical-info .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .incomplete-orders-section .order-details-modal .modal-content .technical-info .info-grid {
    grid-template-columns: 1fr;
  }
}
.incomplete-orders-section .order-details-modal .modal-footer {
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-radius: 0 0 12px 12px;
}
.incomplete-orders-section .order-details-modal .modal-footer .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.incomplete-orders-section .order-details-modal .modal-footer .btn.btn-primary {
  background: #3b82f6;
  color: white;
}
.incomplete-orders-section .order-details-modal .modal-footer .btn.btn-primary:hover {
  background: #2563eb;
}
.incomplete-orders-section .order-details-modal .modal-footer .btn.btn-secondary {
  background: #6b7280;
  color: white;
}
.incomplete-orders-section .order-details-modal .modal-footer .btn.btn-secondary:hover {
  background: #4b5563;
}
.incomplete-orders-section .order-details-modal .modal-footer .btn.btn-default {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.incomplete-orders-section .order-details-modal .modal-footer .btn.btn-default:hover {
  background: #e5e7eb;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ── Analytics header date range controls ─────────────────────────────────── */
.analytics-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.analytics-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.analytics-date-range-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 40px;
  width: -moz-fit-content;
  width: fit-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.analytics-date-range-bar .range-bar-calendar-icon {
  display: flex;
  align-items: center;
  color: #6b7bff;
  flex-shrink: 0;
}
.analytics-date-range-bar .range-bar-calendar-icon svg {
  display: block;
}
.analytics-date-range-bar .analytics-range-select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
  cursor: pointer;
  outline: none;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23888%27 stroke-width=%272.5%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  min-width: 110px;
}
.analytics-date-range-bar .analytics-range-select:focus {
  outline: none;
}
.analytics-date-range-bar .range-bar-divider {
  width: 1px;
  height: 18px;
  background: #e0e0e0;
  flex-shrink: 0;
}
.analytics-date-range-bar .range-shortcut-pill {
  background: #f0f0f8;
  border: 1px solid #e0e0ee;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #5a5aaa;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.analytics-date-range-bar .range-refresh-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s;
}
.analytics-date-range-bar .range-refresh-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaa;
  box-shadow: 6px 0 0 #aaa, -6px 0 0 #aaa;
}
.analytics-date-range-bar .range-refresh-btn:hover {
  background: #f5f5f5;
}
.analytics-date-range-bar .range-refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.analytics-custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.analytics-custom-range input[type=date] {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}

.analytics-no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}
.analytics-no-data .no-data-content {
  text-align: center;
  max-width: 480px;
}
.analytics-no-data .no-data-content .no-data-icon {
  font-size: 56px !important;
  color: #c5c5e0;
  margin-bottom: 1rem;
}
.analytics-no-data .no-data-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.analytics-no-data .no-data-content > p {
  font-size: 14px;
  color: #888;
  margin: 0 0 1.5rem;
}
.analytics-no-data .no-data-range-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.analytics-no-data .no-data-range-filter label {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.analytics-no-data .no-data-suggestions {
  background: #f8f8fc;
  border: 1px solid #ebebf5;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.analytics-no-data .no-data-suggestions h4 {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 0 0 8px;
}
.analytics-no-data .no-data-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.analytics-no-data .no-data-suggestions ul li {
  font-size: 13px;
  color: #777;
  padding: 3px 0;
}
.analytics-no-data .retry-button {
  background: #6b7bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.analytics-no-data .retry-button:hover {
  background: #5566ee;
}

.analytics-custom-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.analytics-custom-range input[type=date] {
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.82rem;
  background: #fff;
}
.analytics-custom-range input[type=date]:focus {
  outline: none;
  border-color: #6366f1;
}
.analytics-custom-range span {
  color: #6b7280;
  font-size: 0.85rem;
}

.date-range-label {
  color: #dddddd;
  font-size: 0.8rem;
}

/* ── Section & chart range badges ─────────────────────────────────────────── */
.analytics-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.analytics-section-header h2 {
  margin: 0;
}

.section-range-badge,
.chart-range-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #008080;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-range-badge::before,
.chart-range-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #008080;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 6px rgba(0, 128, 128, 0.3);
}

.chart-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* No-data range filter */
.no-data-range-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}
.no-data-range-filter label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

/* Customer stat highlight for selected period */
.customer-stats .stat:first-child .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4f46e5;
}

.customer-stats .stat:first-child .label {
  font-weight: 600;
  color: #4f46e5;
}
/*!************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/styles/app.scss (1) ***!
  \************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* Main App Styles */
/* Import page-specific styles */
/* ===================================
   Enhanced Dashboard Styles - Full Responsive
   =================================== */
/* ===================================
   Revenue Analytics - Recharts Implementation
   =================================== */
.dashboard {
  /* Period Filters */
}
.dashboard .period-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dashboard .period-filters .form-select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}
.dashboard .period-filters .form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.dashboard .period-filters .custom-date-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dashboard .period-filters .custom-date-inputs .form-input {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  min-width: 140px;
  transition: border-color 0.2s;
}
.dashboard .period-filters .custom-date-inputs .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.dashboard .period-filters .custom-date-inputs .btn {
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.dashboard {
  /* Revenue Analytics Enhanced */
}
.dashboard .revenue-analytics-enhanced {
  /* Summary Stats */
}
.dashboard .revenue-analytics-enhanced .analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-info .summary-value {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-info .summary-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.dashboard .revenue-analytics-enhanced {
  /* Date Range Indicator */
}
.dashboard .revenue-analytics-enhanced .date-range-indicator {
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.dashboard .revenue-analytics-enhanced .date-range-indicator .range-label {
  font-size: 11px;
  color: #6b7280;
  margin-right: 6px;
}
.dashboard .revenue-analytics-enhanced .date-range-indicator .range-dates {
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
}
.dashboard .revenue-analytics-enhanced {
  /* Recharts Container */
}
.dashboard .revenue-analytics-enhanced .recharts-container {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  /* Recharts customizations */
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-cartesian-grid-horizontal line,
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-cartesian-grid-vertical line {
  stroke: #f3f4f6;
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-bar {
  cursor: pointer;
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-tooltip-wrapper .recharts-default-tooltip {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-legend-wrapper .recharts-legend-item {
  margin-right: 20px !important;
}
.dashboard {
  /* Responsive Design */
}
@media (max-width: 1024px) {
  .dashboard .period-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard .period-filters .form-select {
    width: 100%;
  }
  .dashboard .period-filters .custom-date-inputs {
    flex-direction: column;
  }
  .dashboard .period-filters .custom-date-inputs .form-input {
    width: 100%;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard .revenue-analytics-enhanced .recharts-container {
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .dashboard .revenue-analytics-enhanced .analytics-summary {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item {
    padding: 16px;
    gap: 12px;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-info .summary-value {
    font-size: 18px;
  }
  .dashboard .revenue-analytics-enhanced .recharts-container {
    padding: 12px;
  }
}
@media (max-width: 480px) {
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

.dashboard {
  /* Loading State */
}
.dashboard .loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.dashboard .loading-center p {
  color: #718096;
  font-size: 16px;
}
.dashboard {
  /* Section Title */
}
.dashboard .section-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
}
.dashboard {
  /* Mode Chips */
}
.dashboard .mode-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dashboard {
  /* Stats Grid */
}
.dashboard .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.dashboard .stats-grid .stat-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.dashboard .stats-grid .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dashboard .stats-grid .stat-card .stat-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.orders {
  background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.products {
  background: linear-gradient(135deg, #fcdeff 0%, #f8b7c0 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.revenue {
  background: linear-gradient(135deg, #b5d7f5 0%, #b1ebee 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.vendors {
  background: linear-gradient(135deg, #b3f5c9 0%, #b5f8ec 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-info {
  flex: 1;
  min-width: 0;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1;
  margin-bottom: 4px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-label {
  font-size: 14px;
  color: #718096;
  margin-bottom: 4px;
  font-weight: 500;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-growth {
  font-size: 12px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-warning {
  font-size: 12px;
  color: #d69e2e;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-period {
  font-size: 12px;
  color: #718096;
}
.dashboard .stats-grid .stat-card .stat-details {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f7fafc;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dashboard {
  /* Main Content Grid Layout */
}
.dashboard .main-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.dashboard .left-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dashboard .right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 20px;
}
.dashboard {
  /* Quick Actions - 2 cards per row */
}
.dashboard .quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dashboard .quick-actions .action-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  /* &::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #71facc 0%, #aff3de 100%);
    opacity: 0.12;
    border-radius: 50%;
    transform: rotate(45deg);
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(225deg, #b6f3dd 0%, #8bc2af 100%);
    opacity: 0.1;
    border-radius: 50%;
  } */
}
.dashboard .quick-actions .action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #bda1fd 0%, #c2a4f7 100%);
  opacity: 0.08;
  border-radius: 0 0 100% 0;
  z-index: 0;
}
.dashboard .quick-actions .action-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: linear-gradient(225deg, #beabf7 0%, #bea6f7 100%);
  opacity: 0.1;
  border-radius: 100% 0 0 0;
  z-index: 0;
}
.dashboard .quick-actions .action-card:hover:not(.upcoming-feature) {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.dashboard .quick-actions .action-card .card-content {
  padding: 24px;
}
.dashboard .quick-actions .action-card .card-content .action-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard .quick-actions .action-card .card-content .action-header .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dashboard .quick-actions .action-card .card-content .action-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard .quick-actions .action-card .card-content p {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.dashboard .quick-actions .action-card .card-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
}
.dashboard .quick-actions .action-card .card-footer .btn {
  margin-top: 15px;
  z-index: 10;
}
.dashboard .quick-actions .action-card.upcoming-feature {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}
.dashboard .quick-actions .action-card.upcoming-feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  border-radius: 12px;
}
.dashboard .quick-actions .action-card.upcoming-feature button {
  cursor: not-allowed;
  pointer-events: none;
}
.dashboard {
  /* Promo Card - Blue Theme */
}
.dashboard .promo-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .promo-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0.1;
  border-radius: 0 0 0 100%;
}
.dashboard .promo-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  opacity: 0.08;
  border-radius: 0 100% 0 0;
}
.dashboard .promo-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 0;
}
.dashboard .promo-card .card-header h3 {
  color: #1e40af;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.dashboard .promo-card .card-header p {
  color: #3b82f6;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}
.dashboard .promo-card .card-content {
  position: relative;
  z-index: 1;
  padding: 16px 24px;
}
.dashboard .promo-card .card-footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 24px;
}
.dashboard .promo-card .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  z-index: 10;
}
.dashboard .promo-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}
.dashboard {
  /* Activity Card - Green Theme */
}
.dashboard .activity-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .activity-card::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}
.dashboard .activity-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}
.dashboard .activity-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}
.dashboard .activity-card .card-header h3 {
  color: #065f46;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.dashboard .activity-card .card-content {
  position: relative;
  z-index: 1;
  padding: 0;
}
.dashboard {
  /* Export Status Card - Purple Theme */
}
.dashboard .sync-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .sync-card::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  transform: translateY(-50%);
}
.dashboard .sync-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.dashboard .sync-card .card-header h3 {
  color: #6b21a8;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.dashboard .sync-card .card-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.dashboard {
  /* Analytics Card - Orange Theme */
}
.dashboard .analytics-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border: 2px solid #f97316;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .analytics-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}
.dashboard .analytics-card::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
}
.dashboard .analytics-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 16px;
}
.dashboard .analytics-card .card-header h3 {
  color: #9a3412;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.dashboard .analytics-card .card-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.dashboard {
  /* Sidebar Components */
}
.dashboard .sidebar .sync-status {
  margin-bottom: 16px;
}
.dashboard .sidebar .sync-status .status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.dashboard .sidebar .sync-status .status-item .status-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.dashboard .sidebar .sync-status .status-item .status-indicator.success {
  background-color: #c6f6d5;
  color: #2f855a;
}
.dashboard .sidebar .sync-status .status-item .status-indicator.warning {
  background-color: #fef3c7;
  color: #d97706;
}
.dashboard .sidebar .sync-status .status-item .status-indicator.error {
  background-color: #fee2e2;
  color: #dc2626;
}
.dashboard .sidebar .sync-status .status-item span {
  font-weight: 500;
  color: #1a202c;
  font-size: 14px;
}
.dashboard .sidebar .sync-info p {
  margin: 0 0 8px 0;
  color: #718096;
  font-size: 14px;
}
.dashboard .sidebar .activity-list .activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  position: relative;
  z-index: 1;
}
.dashboard .sidebar .activity-list .activity-item:last-child {
  border-bottom: none;
}
.dashboard .sidebar .activity-list .activity-item .activity-icon {
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 8px;
  flex-shrink: 0;
  color: #10b981;
}
.dashboard .sidebar .activity-list .activity-item .activity-content {
  flex: 1;
  min-width: 0;
}
.dashboard .sidebar .activity-list .activity-item .activity-content .activity-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 2px;
}
.dashboard .sidebar .activity-list .activity-item .activity-content .activity-time {
  font-size: 12px;
  color: #718096;
}
.dashboard .sidebar .empty-activity-state {
  padding: 40px 24px;
  text-align: center;
}
.dashboard .sidebar .empty-activity-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.dashboard .sidebar .empty-activity-state .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.dashboard .sidebar .empty-activity-state .empty-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}
.dashboard .col-span-2 {
  grid-column: span 2;
}

/* ===================================
   Form & Table Elements
   =================================== */
.page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.form-input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #1976d2;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.table thead {
  background: #f5f5f5;
}
.table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
}
.table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.table tbody tr:hover {
  background: #fafafa;
}
.table tbody td {
  padding: 16px;
  font-size: 14px;
  color: #333;
}

/* ===================================
   Alert & Badge Components
   =================================== */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert.alert-info {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  color: #1565c0;
}
.alert.alert-info strong {
  display: block;
  margin-bottom: 4px;
}
.alert.alert-info p {
  margin: 0;
  font-size: 14px;
}

.upcoming-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 10px;
  font-weight: 400;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.upcoming-feature {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
}
.upcoming-feature * {
  cursor: not-allowed;
}
.upcoming-feature input,
.upcoming-feature select,
.upcoming-feature textarea,
.upcoming-feature button {
  pointer-events: none;
}

/* ===================================
   Responsive Design
   =================================== */
/* Large Desktop */
@media (max-width: 1400px) {
  .dashboard .main-content-grid {
    grid-template-columns: 1fr 350px;
  }
}
/* Desktop */
@media (max-width: 1200px) {
  .dashboard .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard .main-content-grid {
    grid-template-columns: 1fr;
  }
  .dashboard .right-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .dashboard .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .dashboard .grid-cols-3 .col-span-2 {
    grid-column: span 1;
  }
}
/* Mobile Large */
@media (max-width: 768px) {
  .dashboard .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard .quick-actions {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard .right-sidebar {
    grid-template-columns: 1fr;
  }
  .dashboard .stat-card .stat-content {
    padding: 16px;
  }
  .dashboard .stat-card .stat-content .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .dashboard .stat-card .stat-content .stat-info .stat-number {
    font-size: 24px;
  }
  .dashboard .stat-card .stat-details {
    padding: 12px 16px;
  }
  .dashboard .action-card .card-content {
    padding: 20px;
  }
  .dashboard .action-card .card-content .action-header .action-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .dashboard .action-card .card-content .action-header h3 {
    font-size: 15px;
  }
  .dashboard .action-card .card-content p {
    font-size: 13px;
  }
  .dashboard .action-card .card-footer {
    padding: 0 20px 20px;
  }
  .dashboard .mode-chips {
    justify-content: center;
  }
  .page-actions {
    flex-direction: column;
    width: 100%;
  }
  .page-actions .form-input,
  .page-actions .btn {
    width: 100%;
  }
}
/* Mobile Small */
@media (max-width: 480px) {
  .dashboard .section-title {
    font-size: 20px;
    text-align: center;
  }
  .dashboard .stat-card .stat-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dashboard .action-card .card-content {
    padding: 16px;
  }
  .dashboard .action-card .card-content .action-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dashboard .promo-card .card-header,
  .dashboard .activity-card .card-header,
  .dashboard .sync-card .card-header,
  .dashboard .analytics-card .card-header {
    padding: 20px 20px 12px;
  }
  .dashboard .promo-card .card-header h3,
  .dashboard .activity-card .card-header h3,
  .dashboard .sync-card .card-header h3,
  .dashboard .analytics-card .card-header h3 {
    font-size: 16px;
  }
  .dashboard .promo-card .card-content,
  .dashboard .activity-card .card-content,
  .dashboard .sync-card .card-content,
  .dashboard .analytics-card .card-content {
    padding: 16px 20px;
  }
  .dashboard .promo-card .card-footer,
  .dashboard .activity-card .card-footer,
  .dashboard .sync-card .card-footer,
  .dashboard .analytics-card .card-footer {
    padding: 0 20px 20px;
  }
  .table {
    font-size: 13px;
  }
  .table thead th {
    padding: 10px 12px;
    font-size: 12px;
  }
  .table tbody td {
    padding: 12px;
  }
}
/* ===================================
   Enhanced Frontend Dashboard Styles
   =================================== */
.dashboard {
  /* Enhanced Stats Grid */
}
.dashboard .stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.dashboard .stats-grid-enhanced .stat-card-modern {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dashboard .stats-grid-enhanced .stat-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}
.dashboard .stats-grid-enhanced .stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.dashboard .stats-grid-enhanced .stat-card-modern.primary {
  --accent-color: #3b82f6;
  --accent-light: #60a5fa;
  --bg-color: #eff6ff;
}
.dashboard .stats-grid-enhanced .stat-card-modern.secondary {
  --accent-color: #8b5cf6;
  --accent-light: #a78bfa;
  --bg-color: #f3e8ff;
}
.dashboard .stats-grid-enhanced .stat-card-modern.success {
  --accent-color: #10b981;
  --accent-light: #34d399;
  --bg-color: #ecfdf5;
}
.dashboard .stats-grid-enhanced .stat-card-modern.info {
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --bg-color: #fffbeb;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-icon-wrapper .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-icon-wrapper .stat-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  opacity: 0.1;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-trend .trend-indicator {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-trend .trend-indicator.positive {
  background: #dcfce7;
  color: #166534;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-trend .trend-indicator.negative {
  background: #fef2f2;
  color: #dc2626;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-badge .badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-badge .badge.warning {
  background: #fef3c7;
  color: #92400e;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-comparison .comparison-text {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-alert .alert-indicator {
  font-size: 18px;
  animation: pulse 2s infinite;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body {
  padding: 16px 24px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body .stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body .stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body .stat-subtitle {
  font-size: 13px;
  color: #6b7280;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer {
  padding: 0 24px 20px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-color);
  border-radius: 10px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-detail .detail-label {
  font-size: 13px;
  color: #6b7280;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-detail .detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.completed {
  background: #10b981;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.processing {
  background: #f59e0b;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.in-stock {
  background: #10b981;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.low-stock {
  background: #ef4444;
}
.dashboard {
  /* Enhanced Revenue Chart */
}
.dashboard .revenue-analytics-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 32px;
}
.dashboard .revenue-analytics-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.dashboard .revenue-analytics-card .card-header .header-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}
.dashboard .revenue-analytics-card .card-header .header-content p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend {
  display: flex;
  gap: 16px;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item .legend-dot.revenue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item .legend-dot.orders {
  background: linear-gradient(135deg, #10b981, #059669);
}
.dashboard .revenue-analytics-card .card-content {
  padding: 0;
  /* Old chart styles removed - using new table-based analytics from _revenue-analytics.scss */
}
.dashboard .revenue-analytics-card .chart-empty-state {
  padding: 60px 24px;
  text-align: center;
}
.dashboard .revenue-analytics-card .chart-empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.dashboard .revenue-analytics-card .chart-empty-state .empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.dashboard .revenue-analytics-card .chart-empty-state .empty-description {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.dashboard .revenue-analytics-card .chart-empty-state .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
}

/* Responsive Design for Enhanced Components */
@media (max-width: 1024px) {
  .stats-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Old chart responsive styles removed - using new table-based analytics */
}
@media (max-width: 768px) {
  .stats-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats-grid-enhanced .stat-card-modern .stat-body .stat-value {
    font-size: 28px;
  }
  /* Old chart mobile responsive styles removed - using new table-based analytics */
}
@media (max-width: 480px) {
  .stats-grid-enhanced .stat-card-modern .stat-header {
    padding: 16px 20px 0;
  }
  .stats-grid-enhanced .stat-card-modern .stat-body {
    padding: 12px 20px;
  }
  .stats-grid-enhanced .stat-card-modern .stat-body .stat-value {
    font-size: 24px;
  }
  .stats-grid-enhanced .stat-card-modern .stat-footer {
    padding: 0 20px 16px;
  }
  /* Old chart small mobile responsive styles removed - using new table-based analytics */
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.dashboard {
  /* Date Filters */
}
.dashboard .date-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dashboard .date-filters .form-input {
  min-width: 140px;
}
.dashboard .date-filters .btn {
  white-space: nowrap;
}
.dashboard {
  /* Revenue Chart */
}
.dashboard .revenue-chart .chart-container {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}
.dashboard .revenue-chart .chart-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 200px;
  margin-bottom: 20px;
  padding: 0 10px;
}
.dashboard .revenue-chart .chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.dashboard .revenue-chart .chart-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 8px;
}
.dashboard .revenue-chart .chart-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}
.dashboard .revenue-chart .chart-label {
  font-size: 11px;
  color: #666;
  text-align: center;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}
.dashboard .revenue-chart .chart-summary {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}
.dashboard .revenue-chart .chart-summary .summary-item {
  text-align: center;
}
.dashboard .revenue-chart .chart-summary .summary-item .label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}
.dashboard .revenue-chart .chart-summary .summary-item .value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.dashboard {
  /* Top Products Table */
}
.dashboard .product-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard .product-info .product-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e9ecef;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}
.dashboard .product-info .product-name {
  font-weight: 500;
  color: #333;
}
.dashboard .sales-count {
  font-weight: 500;
  color: #0073aa;
}
.dashboard .revenue-amount {
  font-weight: 600;
  color: #28a745;
}
.dashboard .stock-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.dashboard .stock-status.low-stock {
  color: #dc3545;
}
.dashboard .stock-status.in-stock {
  color: #28a745;
}
.dashboard .table-footer {
  padding: 16px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}
.dashboard .table-footer .table-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard .table-footer .table-summary span {
  font-size: 14px;
  color: #666;
}
.dashboard {
  /* Responsive adjustments for frontend */
}
@media (max-width: 768px) {
  .dashboard .date-filters {
    width: 100%;
  }
  .dashboard .date-filters .form-input {
    flex: 1;
    min-width: 120px;
  }
  .dashboard .date-filters .btn {
    flex-shrink: 0;
  }
  .dashboard .chart-bars {
    height: 150px;
  }
  .dashboard .chart-label {
    font-size: 10px;
    transform: rotate(-45deg);
    transform-origin: center;
    margin-top: 8px;
  }
  .dashboard .chart-summary {
    flex-direction: column;
    gap: 12px;
  }
  .dashboard .chart-summary .summary-item .label {
    font-size: 11px;
  }
  .dashboard .chart-summary .summary-item .value {
    font-size: 14px;
  }
  .dashboard .product-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .dashboard .product-info .product-rank {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .dashboard .product-info .product-name {
    font-size: 13px;
  }
  .dashboard .table {
    font-size: 12px;
  }
  .dashboard .table thead th {
    padding: 8px 10px;
    font-size: 11px;
  }
  .dashboard .table tbody td {
    padding: 10px;
  }
}
@media (max-width: 480px) {
  .dashboard .date-filters {
    flex-direction: column;
    gap: 12px;
  }
  .dashboard .date-filters .form-input,
  .dashboard .date-filters .btn {
    width: 100%;
  }
  .dashboard .chart-summary .summary-item .label {
    font-size: 10px;
  }
  .dashboard .chart-summary .summary-item .value {
    font-size: 13px;
  }
  .dashboard .table-footer .table-summary {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .dashboard .table-footer .table-summary .btn {
    width: 100%;
  }
}

/* Orders Page Styles */
.orders .loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.orders .loading-center p {
  color: #718096;
  font-size: 16px;
}
.orders {
  /* Horizontal Filters Bar */
}
.orders .filters-bar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 50%;
}
.orders .filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.orders .filter-item {
  display: flex;
  align-items: baseline;
}
.orders .filter-item.filter-search {
  flex: 1;
  min-width: 250px;
}
.orders .filter-item.filter-date-range .date-range-picker .ant-picker {
  border-radius: 6px;
  border-color: #d1d5db;
  transition: all 0.2s ease;
}
.orders .filter-item.filter-date-range .date-range-picker .ant-picker:hover {
  border-color: #3b82f6;
}
.orders .filter-item.filter-date-range .date-range-picker .ant-picker.ant-picker-focused {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.orders .filter-item.filter-date-range .date-range-picker .ant-picker-input > input {
  font-size: 14px;
}
.orders .filter-item.filter-date-range .date-range-picker .ant-picker-separator {
  color: #6b7280;
}
.orders .filter-item .search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.orders .filter-item .search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.orders .filter-item .search-input::-moz-placeholder {
  color: #9ca3af;
}
.orders .filter-item .search-input::placeholder {
  color: #9ca3af;
}
.orders .filter-item .filter-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 200px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.orders .filter-item .filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.orders .filter-item .btn-clear {
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 6px;
}
@media (max-width: 1200px) {
  .orders .filters-row .filter-item.filter-search {
    min-width: 200px;
  }
  .orders .filters-row .filter-item.filter-date-range .date-range-picker {
    width: 240px !important;
  }
}
@media (max-width: 768px) {
  .orders .filters-bar {
    padding: 12px;
  }
  .orders .filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .orders .filters-row .filter-item {
    width: 100%;
  }
  .orders .filters-row .filter-item.filter-search {
    min-width: auto;
  }
  .orders .filters-row .filter-item.filter-date-range .date-range-picker {
    width: 100% !important;
  }
  .orders .filters-row .filter-item .search-input,
  .orders .filters-row .filter-item .filter-select {
    width: 100%;
    min-width: auto;
  }
}
.orders .bulk-actions .bulk-info {
  color: #1a202c;
  font-size: 14px;
}
.orders .bulk-actions .bulk-buttons {
  flex-wrap: wrap;
  display: flex;
  gap: 10px;
}
.orders .table-container {
  width: 100%;
  max-width: 100%;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
@media (max-width: 1024px) {
  .orders .table-container {
    overflow-x: auto;
  }
}
.orders .table-container .orders-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.orders .table-container .orders-table th,
.orders .table-container .orders-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.orders .table-container .orders-table th {
  background-color: #f7fafc;
  font-weight: 600;
  color: #4a5568;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.orders .table-container .orders-table th:nth-child(1) {
  width: 50px;
}
.orders .table-container .orders-table th:nth-child(2) {
  width: 120px;
}
.orders .table-container .orders-table th:nth-child(3) {
  width: 100px;
}
.orders .table-container .orders-table th:nth-child(4) {
  width: 200px;
}
.orders .table-container .orders-table th:nth-child(5) {
  width: 100px;
}
.orders .table-container .orders-table th:nth-child(6) {
  width: 120px;
}
.orders .table-container .orders-table th:nth-child(7) {
  width: 150px;
}
.orders .table-container .orders-table .checkbox-col {
  width: 40px;
  text-align: center;
}
.orders .table-container .orders-table .checkbox-col input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.orders .table-container .orders-table .order-row {
  transition: background-color 0.2s ease;
}
.orders .table-container .orders-table .order-row:hover {
  background-color: #f7fafc;
}
.orders .table-container .orders-table .order-info .order-number {
  font-weight: 600;
  color: #1a202c;
  font-size: 14px;
}
.orders .table-container .orders-table .order-info .order-items {
  font-size: 12px;
  margin-top: 2px;
}
.orders .table-container .orders-table .customer-info .customer-name {
  font-weight: 500;
  color: #1a202c;
  font-size: 14px;
}
.orders .table-container .orders-table .customer-info .customer-email {
  font-size: 12px;
  margin-top: 2px;
}
.orders .table-container .orders-table .order-total {
  color: #1a202c;
  font-size: 14px;
}
.orders .table-container .orders-table .order-date {
  color: #4a5568;
  font-size: 14px;
}
.orders .table-container .orders-table .order-actions .btn {
  padding: 4px 8px;
  font-size: 12px;
  min-width: auto;
}
.orders .table-container .orders-table .loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
}
.orders .table-container .orders-table .loading-row span {
  color: #718096;
}
.orders .table-container .orders-table .empty-state {
  padding: 60px 20px;
  text-align: center;
}
.orders .table-container .orders-table .empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.orders .table-container .orders-table .empty-state p {
  margin: 8px 0;
}
.orders .table-container .orders-table .empty-state p:first-of-type {
  font-size: 18px;
  font-weight: 500;
  color: #1a202c;
}
.orders .table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f7fafc;
}
.orders .table-pagination .pagination-info {
  color: #4a5568;
  font-size: 14px;
}
.orders .table-pagination .pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.orders .table-pagination .pagination-controls .rows-per-page {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  background-color: white;
}
.orders .table-pagination .pagination-controls .page-info {
  color: #4a5568;
  font-size: 14px;
  margin: 0 8px;
}
.orders .table-pagination .pagination-controls .btn {
  padding: 6px 12px;
  font-size: 12px;
}
@media (max-width: 768px) {
  .orders .table-pagination {
    flex-direction: column;
    gap: 12px;
  }
  .orders .table-pagination .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-dialog {
  max-width: 500px;
  width: 100%;
}
.modal-dialog.modal-lg {
  max-width: 900px;
}
.modal-dialog.modal-xl {
  max-width: 1200px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 60%;
}
.modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.modal-content .modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}
.modal-content .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #718096;
  padding: 4px;
  border-radius: 4px;
}
.modal-content .modal-header .modal-close:hover {
  background-color: #f7fafc;
  color: #4a5568;
}
.modal-content .modal-body {
  padding: 24px;
}
.modal-content .modal-body .form-group {
  margin-bottom: 20px;
}
.modal-content .modal-body .form-group:last-child {
  margin-bottom: 0;
}
.modal-content .modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f7fafc;
}
.modal-content .modal-footer .flex {
  display: flex;
  gap: 12px;
}
.modal-content {
  /* Tab content styles */
}
.modal-content .tab-content .grid {
  display: grid;
  gap: 16px;
}
.modal-content .tab-content .grid.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.modal-content .tab-content .grid.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.modal-content .tab-content .grid .col-span-2 {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .modal-content .tab-content .grid {
    grid-template-columns: 1fr !important;
  }
  .modal-content .tab-content .grid .col-span-2 {
    grid-column: span 1;
  }
}
.modal-content .tab-content .form-group {
  display: flex;
  flex-direction: column;
}
.modal-content .tab-content .form-group label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  font-size: 14px;
}
.modal-content .tab-content .form-group input,
.modal-content .tab-content .form-group select,
.modal-content .tab-content .form-group textarea {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.modal-content .tab-content .form-group input:focus,
.modal-content .tab-content .form-group select:focus,
.modal-content .tab-content .form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.modal-content .tab-content .form-group input:disabled,
.modal-content .tab-content .form-group select:disabled,
.modal-content .tab-content .form-group textarea:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}
.modal-content .tab-content .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.modal-content .tab-content .form-group .checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.modal-content .tab-content .form-group .checkbox-label input[type=checkbox] {
  width: auto;
  margin: 0;
}
.modal-content .tab-content .card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.modal-content .tab-content .card .card-header {
  background-color: #f9fafb;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-content .tab-content .card .card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.modal-content .tab-content .card .card-content {
  padding: 16px;
}
.modal-content .tab-content .table-container {
  overflow-x: auto;
}
.modal-content .tab-content .table-container table {
  width: 100%;
  border-collapse: collapse;
}
.modal-content .tab-content .table-container table th,
.modal-content .tab-content .table-container table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.modal-content .tab-content .table-container table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
}
.modal-content .tab-content .table-container table tbody tr:hover {
  background-color: #f9fafb;
}
.modal-content .tab-content .table-container table tfoot {
  font-weight: 600;
  background-color: #f9fafb;
}
.modal-content .tab-content .table-container table input {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
}
.modal-content .tab-content .table-container table input.w-20 {
  width: 80px;
}
.modal-content .tab-content .table-container table input.w-24 {
  width: 96px;
}
.modal-content {
  /* Order info bar */
}
.modal-content .order-info-bar {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.modal-content .order-info-bar .grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) {
  .modal-content .order-info-bar .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .modal-content .order-info-bar .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .orders .page-header .page-actions {
    flex-wrap: wrap;
  }
  .orders .table-container .orders-table {
    font-size: 12px;
  }
  .orders .table-container .orders-table th,
  .orders .table-container .orders-table td {
    padding: 8px 12px;
  }
  .orders .table-container .orders-table .order-actions .btn {
    padding: 2px 6px;
    font-size: 11px;
  }
  .modal-content {
    margin: 10px;
    max-width: none;
  }
  .modal-content .modal-header,
  .modal-content .modal-body,
  .modal-content .modal-footer {
    padding: 16px;
  }
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .orders .table-container .orders-table th {
    background-color: #2d3748;
    color: #a0aec0;
  }
  .orders .table-container .orders-table .order-row:hover {
    background-color: #2d3748;
  }
  .orders .table-pagination {
    background-color: #2d3748;
    border-color: #4a5568;
  }
  .orders .table-pagination .rows-per-page {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  .modal-content {
    background-color: #2d3748;
  }
  .modal-content .modal-header {
    border-color: #4a5568;
  }
  .modal-content .modal-footer {
    background-color: #1a202c;
    border-color: #4a5568;
  }
}
/* Orders Page Tab Navigation */
.tab-navigation {
  display: flex;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 2rem;
  gap: 0;
}
.tab-navigation .tab-button {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}
.tab-navigation .tab-button:hover {
  color: #333;
  background: #f8f9fa;
}
.tab-navigation .tab-button.active {
  color: #007cba;
  border-bottom-color: #007cba;
  background: #f8f9fa;
}

/* Sync Settings Container */
.sync-settings-container .card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.sync-settings-container .card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #dfebf1, #ffffff);
  color: white;
}
.sync-settings-container .card-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}
.sync-settings-container .card-header p {
  margin: 0;
  opacity: 0.9;
}
.sync-settings-container .card-content {
  padding: 2rem;
}
.sync-settings-container .sync-fields-section {
  margin-bottom: 3rem;
}
.sync-settings-container .sync-fields-section h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}
.sync-settings-container .sync-fields-section .section-description {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.sync-settings-container .fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sync-settings-container .field-item {
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  background: white;
}
.sync-settings-container .field-item.enabled {
  background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}
.sync-settings-container .field-item.disabled {
  opacity: 0.6;
  background: #f8f9fa;
}
.sync-settings-container .field-item .field-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.sync-settings-container .field-item .field-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.sync-settings-container .field-item .field-label .field-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}
.sync-settings-container .field-item .field-label .field-required {
  color: #007cba;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 124, 186, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}
.sync-settings-container .field-item .field-type {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.sync-settings-container .fields-summary {
  padding: 1rem;
  background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
  border: 1px solid #007cba;
}
.sync-settings-container .fields-summary strong {
  color: #007cba;
  font-size: 1.1rem;
}
.sync-settings-container .sync-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.sync-settings-container .sync-actions .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.sync-settings-container .sync-actions .btn.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.sync-settings-container .preview-section {
  margin-bottom: 3rem;
}
.sync-settings-container .preview-section h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}
.sync-settings-container .preview-table {
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.sync-settings-container .preview-table .preview-header {
  display: flex;
  background: linear-gradient(135deg, #007cba, #005a87);
  color: white;
}
.sync-settings-container .preview-table .preview-header .preview-column {
  flex: 1;
  padding: 1rem;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.sync-settings-container .preview-table .preview-header .preview-column:last-child {
  border-right: none;
}
.sync-settings-container .preview-table .preview-row {
  display: flex;
  background: #f8f9fa;
}
.sync-settings-container .preview-table .preview-row .preview-cell {
  flex: 1;
  padding: 1rem;
  color: #666;
  font-style: italic;
  border-right: 1px solid #e5e5e5;
  text-align: center;
}
.sync-settings-container .preview-table .preview-row .preview-cell:last-child {
  border-right: none;
}
.sync-settings-container .sync-status-section h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.2rem;
}
.sync-settings-container .sync-status-section .status-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.sync-settings-container .sync-status-section .status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007cba;
}
.sync-settings-container .sync-status-section .status-item .status-label {
  font-weight: 500;
  color: #333;
}
.sync-settings-container .sync-status-section .status-item .status-value {
  font-weight: 600;
  color: #007cba;
}
.sync-settings-container .loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.sync-settings-container .loading-center .spinner {
  margin-bottom: 1rem;
}
.sync-settings-container .loading-center p {
  color: #666;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tab-navigation .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  .sync-settings-container .fields-grid {
    grid-template-columns: 1fr;
  }
  .sync-settings-container .sync-actions {
    flex-direction: column;
    align-items: center;
  }
  .sync-settings-container .preview-table .preview-header,
  .sync-settings-container .preview-table .preview-row {
    flex-direction: column;
  }
  .sync-settings-container .preview-table .preview-header .preview-column,
  .sync-settings-container .preview-table .preview-header .preview-cell,
  .sync-settings-container .preview-table .preview-row .preview-column,
  .sync-settings-container .preview-table .preview-row .preview-cell {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }
  .sync-settings-container .preview-table .preview-header .preview-column:last-child,
  .sync-settings-container .preview-table .preview-header .preview-cell:last-child,
  .sync-settings-container .preview-table .preview-row .preview-column:last-child,
  .sync-settings-container .preview-table .preview-row .preview-cell:last-child {
    border-bottom: none;
  }
}
/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch input:checked + .slider {
  background-color: #007cba;
}
.switch input:checked + .slider:before {
  transform: translateX(26px);
}
.switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.switch .slider:hover {
  box-shadow: 0 0 8px rgba(0, 124, 186, 0.3);
}

/* Update field-item styles for toggle layout */
.sync-settings-container .field-item .field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.sync-settings-container .field-item .field-info {
  flex: 1;
}
.sync-settings-container .field-item .field-label {
  display: block;
  margin-bottom: 0;
  cursor: default;
}
.sync-settings-container .field-item .field-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}
.sync-settings-container .field-item .field-required {
  color: #007cba;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 124, 186, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.sync-settings-container .field-item .field-type {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin: 0;
}

/* Order View Modal Styles */
.modal-large {
  max-width: 900px;
  width: 100%;
}

.order-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.order-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.order-section .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f7fafc;
}
.order-section .detail-row:last-child {
  border-bottom: none;
}
.order-section .detail-row .label {
  font-weight: 500;
  color: #4a5568;
  font-size: 14px;
}
.order-section .detail-row .value {
  color: #1a202c;
  font-size: 14px;
  text-align: right;
}
.order-section .detail-row .value.font-semibold {
  font-weight: 600;
}
.order-section .detail-row .chip {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}
.order-section .detail-row .chip.pending {
  background-color: #fef3c7;
  color: #92400e;
}
.order-section .detail-row .chip.processing {
  background-color: #dbeafe;
  color: #1e40af;
}
.order-section .detail-row .chip.on-hold {
  background-color: #fed7d7;
  color: #c53030;
}
.order-section .detail-row .chip.completed {
  background-color: #d1fae5;
  color: #065f46;
}
.order-section .detail-row .chip.cancelled {
  background-color: #fee2e2;
  color: #dc2626;
}
.order-section .detail-row .chip.refunded {
  background-color: #e5e7eb;
  color: #374151;
}
.order-section .address-block {
  background-color: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  line-height: 1.5;
}
.order-section .address-block div {
  margin-bottom: 4px;
}
.order-section .address-block div:last-child {
  margin-bottom: 0;
}
.order-section .notes-block {
  background-color: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  line-height: 1.6;
  color: #4a5568;
  font-style: italic;
}
.order-section .items-table {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.order-section .items-table table {
  width: 100%;
  border-collapse: collapse;
}
.order-section .items-table table th {
  background-color: #f7fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}
.order-section .items-table table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f7fafc;
  color: #1a202c;
  font-size: 14px;
}
.order-section .items-table table td:last-child {
  font-weight: 600;
}
.order-section .items-table table tbody tr:last-child td {
  border-bottom: none;
}
.order-section .items-table table tbody tr:hover {
  background-color: #f7fafc;
}

/* Responsive styles for order view modal */
@media (max-width: 768px) {
  .modal-large {
    max-width: none;
    margin: 10px;
  }
  .order-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .order-section .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .order-section .detail-row .value {
    text-align: left;
  }
  .order-section .items-table {
    overflow-x: auto;
  }
  .order-section .items-table table {
    min-width: 500px;
  }
}
/* Ant 
Design DatePicker Integration */
.orders .ant-picker {
  height: 36px;
}
.orders .ant-picker.ant-picker-range .ant-picker-input input {
  font-size: 14px;
}
.orders .ant-picker.ant-picker-range .ant-picker-input input::-moz-placeholder {
  color: #9ca3af;
  font-size: 13px;
}
.orders .ant-picker.ant-picker-range .ant-picker-input input::placeholder {
  color: #9ca3af;
  font-size: 13px;
}
.orders .ant-picker.ant-picker-range .ant-picker-range-separator .ant-picker-separator {
  color: #6b7280;
}
.orders .ant-picker-dropdown .ant-picker-panel-container .ant-picker-panels .ant-picker-panel .ant-picker-content th,
.orders .ant-picker-dropdown .ant-picker-panel-container .ant-picker-panels .ant-picker-panel .ant-picker-content td {
  font-size: 13px;
}

/* Compact layout improvements */
.orders-container {
  width: 100%;
}
.orders-container .card {
  width: 100%;
  margin-bottom: 20px;
}
.orders-container .card:last-child {
  margin-bottom: 0;
}

/* Full width responsive container */
.page.orders {
  width: 100%;
}
.page.orders .container.container-xl {
  max-width: 100%;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .page.orders .container.container-xl {
    padding: 0 12px;
  }
}
.page.orders .orders-container {
  width: 100%;
  max-width: 100%;
}
.page.orders .orders-container .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Enhanced responsive table */
@media (max-width: 1024px) {
  .orders .table-container .orders-table {
    font-size: 13px;
  }
  .orders .table-container .orders-table th,
  .orders .table-container .orders-table td {
    padding: 8px 12px;
  }
  .orders .table-container .orders-table .order-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
    margin: 0 2px;
  }
}
@media (max-width: 768px) {
  .orders .table-container .orders-table {
    font-size: 12px;
    min-width: 700px;
  }
  .orders .table-container .orders-table th,
  .orders .table-container .orders-table td {
    padding: 6px 8px;
  }
  .orders .table-container .orders-table th:nth-child(1) {
    width: 40px;
  }
  .orders .table-container .orders-table th:nth-child(2) {
    width: 100px;
  }
  .orders .table-container .orders-table th:nth-child(3) {
    width: 80px;
  }
  .orders .table-container .orders-table th:nth-child(4) {
    width: 150px;
  }
  .orders .table-container .orders-table th:nth-child(5) {
    width: 80px;
  }
  .orders .table-container .orders-table th:nth-child(6) {
    width: 100px;
  }
  .orders .table-container .orders-table th:nth-child(7) {
    width: 120px;
  }
  .orders .table-container .orders-table .checkbox-col {
    width: 40px;
  }
  .orders .table-container .orders-table .order-actions .btn {
    padding: 2px 6px;
    font-size: 10px;
    margin: 0 1px;
  }
}
/* Order Editor Page - Full Page Form (No Modal) */
.order-editor-page {
  /* .page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
  } */
}
.order-editor-page .btn-back {
  background: none;
  border: none;
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  display: inline-block;
  transition: all 0.2s;
}
.order-editor-page .btn-back:hover {
  text-decoration: underline;
  color: #1565c0;
}
.order-editor-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.order-editor-page .page-header .page-title {
  flex: 1;
}
.order-editor-page .page-header .page-title h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
  line-height: 35px;
}
.order-editor-page .page-header .page-title p {
  color: #718096;
  margin: 0;
  font-size: 14px;
}
.order-editor-page .page-header .page-actions {
  display: flex;
  gap: 12px;
}
.order-editor-page .editor-grid {
  display: grid;
  gap: 24px;
}
.order-editor-page .editor-section {
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.order-editor-page .editor-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}
.order-editor-page .editor-section .section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}
.order-editor-page .editor-section .section-content {
  padding: 20px;
}
.order-editor-page .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.order-editor-page .form-row:last-child {
  margin-bottom: 0;
}
.order-editor-page .form-group {
  margin-bottom: 16px;
}
.order-editor-page .form-group:last-child {
  margin-bottom: 0;
}
.order-editor-page .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}
.order-editor-page .form-group input,
.order-editor-page .form-group select,
.order-editor-page .form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.order-editor-page .form-group input:focus,
.order-editor-page .form-group select:focus,
.order-editor-page .form-group textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}
.order-editor-page .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.order-editor-page .add-product-section {
  background: #f7fafc;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.order-editor-page .products-table {
  overflow-x: auto;
}
.order-editor-page .products-table table {
  width: 100%;
  border-collapse: collapse;
}
.order-editor-page .products-table table thead {
  background: #f7fafc;
}
.order-editor-page .products-table table thead th {
  padding: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e2e8f0;
}
.order-editor-page .products-table table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}
.order-editor-page .products-table table tbody tr:hover {
  background: #f7fafc;
}
.order-editor-page .products-table table tbody td {
  padding: 12px;
  font-size: 14px;
  color: #2d3748;
}
.order-editor-page .products-table table tbody td input {
  padding: 6px 8px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 13px;
}
.order-editor-page .products-table table tfoot {
  background: #f7fafc;
  font-weight: 600;
}
.order-editor-page .products-table table tfoot td {
  padding: 12px;
  border-top: 2px solid #e2e8f0;
}
.order-editor-page .text-gray-500 {
  color: #718096;
  text-align: center;
  padding: 20px;
}
.order-editor-page .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.order-editor-page .checkbox-label input[type=checkbox] {
  width: auto;
  cursor: pointer;
}

/* Advanced Filters Styles */
.orders .filters-bar, .products .filters-bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.orders .filters-bar .btn.active, .products .filters-bar .btn.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}
.orders .advanced-filters, .products .advanced-filters {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
  position: relative;
}
.orders .advanced-filters.expanded, .products .advanced-filters.expanded {
  max-height: 800px;
  opacity: 1;
  margin-top: 20px;
}
.orders .advanced-filters.premium-locked .advanced-filters-content, .products .advanced-filters.premium-locked .advanced-filters-content {
  filter: blur(1px);
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  opacity: 0.85;
}
.orders .advanced-filters .premium-overlay, .products .advanced-filters .premium-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(0.3px);
  animation: fadeIn 0.3s ease;
  /* .premium-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);

    &:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 12px 32px rgba(245, 158, 11, 0.6);
      border-color: rgba(255, 255, 255, 0.5);
    }

    &::before {
      content: '👑';
      font-size: 24px;
    }
  } */
}
.orders .advanced-filters .premium-overlay .premium-badge, .products .advanced-filters .premium-overlay .premium-badge {
  position: relative;
  background: #c8ddff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  padding: 18px 36px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
}
.orders .advanced-filters .premium-overlay .premium-badge::before, .products .advanced-filters .premium-overlay .premium-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.6) 0%, rgba(217, 119, 6, 0.6) 100%);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.orders .advanced-filters .premium-overlay .premium-badge::after, .products .advanced-filters .premium-overlay .premium-badge::after {
  content: "👑";
  font-size: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.orders .advanced-filters .premium-overlay .premium-badge:hover, .products .advanced-filters .premium-overlay .premium-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}
.orders .advanced-filters .premium-overlay .premium-badge:hover::before, .products .advanced-filters .premium-overlay .premium-badge:hover::before {
  left: 0;
}
.orders .advanced-filters .premium-overlay .premium-badge:hover::after, .products .advanced-filters .premium-overlay .premium-badge:hover::after {
  transform: rotate(-15deg) scale(1.2);
}
.orders .advanced-filters .premium-overlay .premium-badge:active, .products .advanced-filters .premium-overlay .premium-badge:active {
  transform: translateY(-2px) scale(1.01);
}
@keyframes glow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 40px rgba(245, 158, 11, 0.3);
  }
}
.orders .advanced-filters .premium-overlay .premium-badge.animated, .products .advanced-filters .premium-overlay .premium-badge.animated {
  animation: glow 3s ease-in-out infinite;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.orders .advanced-filters .advanced-filters-content, .products .advanced-filters .advanced-filters-content {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  transition: filter 0.3s ease;
}
.orders .advanced-filters .filter-section .filter-section-title, .products .advanced-filters .filter-section .filter-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}
.orders .advanced-filters .filter-section .filter-group, .products .advanced-filters .filter-section .filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.orders .advanced-filters .filter-section .filter-group.quick-filters, .products .advanced-filters .filter-section .filter-group.quick-filters {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.orders .advanced-filters .filter-section .filter-group .filter-item, .products .advanced-filters .filter-section .filter-group .filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.orders .advanced-filters .filter-section .filter-group .filter-item label, .products .advanced-filters .filter-section .filter-group .filter-item label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}
.orders .advanced-filters .filter-section .filter-group .filter-item .filter-input, .products .advanced-filters .filter-section .filter-group .filter-item .filter-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.orders .advanced-filters .filter-section .filter-group .filter-item .filter-input:focus, .products .advanced-filters .filter-section .filter-group .filter-item .filter-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
@media (max-width: 1024px) {
  .orders .advanced-filters .advanced-filters-content, .products .advanced-filters .advanced-filters-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .orders .advanced-filters .advanced-filters-content, .products .advanced-filters .advanced-filters-content {
    padding: 16px;
  }
  .orders .advanced-filters .filter-section .filter-group.quick-filters, .products .advanced-filters .filter-section .filter-group.quick-filters {
    flex-direction: column;
  }
  .orders .advanced-filters .filter-section .filter-group.quick-filters .btn, .products .advanced-filters .filter-section .filter-group.quick-filters .btn {
    width: 100%;
  }
}

.order-details-page {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 40px;
}
.order-details-page .card {
  min-width: unset;
  max-width: unset;
}
.order-details-page .btn-back {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  display: inline-block;
  transition: color 0.2s;
}
.order-details-page .btn-back:hover {
  color: #2563eb;
}
.order-details-page .order-header {
  margin-bottom: 24px;
}
.order-details-page .order-header .order-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 768px) {
  .order-details-page .order-header .order-header-content {
    flex-direction: column;
  }
}
.order-details-page .order-header .order-title-section {
  flex: 1;
}
.order-details-page .order-header .order-title-section h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px 0;
}
.order-details-page .order-header .order-title-section .order-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.order-details-page .order-header .order-title-section .order-meta .order-date {
  font-size: 14px;
  color: #6b7280;
}
.order-details-page .order-header .order-title-section .order-meta .order-status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.order-details-page .order-header .order-actions {
  display: flex;
  gap: 12px;
}
.order-details-page .order-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}
@media (max-width: 1200px) {
  .order-details-page .order-layout {
    grid-template-columns: 1fr;
  }
}
.order-details-page .order-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.order-details-page .order-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 1200px) {
  .order-details-page .order-sidebar {
    order: -1;
  }
}
.order-details-page .order-items-card .card-content {
  padding: 0;
}
.order-details-page .order-items-table {
  width: 100%;
  border-collapse: collapse;
}
.order-details-page .order-items-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.order-details-page .order-items-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.order-details-page .order-items-table thead th.text-center {
  text-align: center;
}
.order-details-page .order-items-table thead th.text-right {
  text-align: right;
}
.order-details-page .order-items-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}
.order-details-page .order-items-table tbody tr:hover {
  background: #fafafa;
}
.order-details-page .order-items-table tbody td {
  padding: 16px;
  vertical-align: top;
}
.order-details-page .order-items-table tbody td.text-center {
  text-align: center;
}
.order-details-page .order-items-table tbody td.text-right {
  text-align: right;
}
.order-details-page .order-items-table tfoot {
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
}
.order-details-page .order-items-table tfoot tr td {
  padding: 12px 16px;
  font-size: 14px;
}
.order-details-page .order-items-table tfoot tr td.text-right {
  text-align: right;
}
.order-details-page .order-items-table tfoot .subtotal-row td,
.order-details-page .order-items-table tfoot .discount-row td,
.order-details-page .order-items-table tfoot .shipping-row td,
.order-details-page .order-items-table tfoot .tax-row td {
  color: #6b7280;
}
.order-details-page .order-items-table tfoot .total-row td {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  padding-top: 16px;
}
.order-details-page .order-items-table tfoot .shipping-method {
  font-size: 12px;
  color: #9ca3af;
}
.order-details-page .order-items-table tfoot .text-success {
  color: #10b981;
}
.order-details-page .order-items-table .product-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.order-details-page .order-items-table .product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}
.order-details-page .order-items-table .product-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.order-details-page .order-items-table .product-image .no-image {
  font-size: 24px;
}
.order-details-page .order-items-table .product-info {
  flex: 1;
  min-width: 0;
}
.order-details-page .order-items-table .product-info .product-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  font-size: 14px;
}
.order-details-page .order-items-table .product-info .product-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.order-details-page .order-items-table .product-info .product-meta .meta-item {
  font-size: 12px;
  color: #6b7280;
}
.order-details-page .order-items-table .sku-cell {
  font-size: 13px;
  color: #6b7280;
}
.order-details-page .order-items-table .qty-cell {
  font-weight: 500;
  color: #1f2937;
}
.order-details-page .order-items-table .price-cell {
  font-size: 14px;
  color: #6b7280;
}
.order-details-page .order-items-table .total-cell {
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
}
@media (max-width: 768px) {
  .order-details-page .order-items-table thead {
    display: none;
  }
  .order-details-page .order-items-table tbody tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
  }
  .order-details-page .order-items-table tbody td {
    display: block;
    padding: 8px 0;
    border: none;
  }
  .order-details-page .order-items-table tbody td.sku-cell, .order-details-page .order-items-table tbody td.price-cell {
    display: none;
  }
  .order-details-page .order-items-table tbody td.qty-cell {
    display: inline-block;
    width: auto;
    margin-right: 16px;
  }
  .order-details-page .order-items-table tbody td.total-cell {
    display: inline-block;
    width: auto;
  }
  .order-details-page .order-items-table tfoot tr {
    display: table-row;
  }
  .order-details-page .order-items-table tfoot td {
    display: table-cell;
  }
}
.order-details-page .addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .order-details-page .addresses-grid {
    grid-template-columns: 1fr;
  }
}
.order-details-page .address-block {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}
.order-details-page .address-block .address-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 15px;
}
.order-details-page .address-block .contact-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}
.order-details-page .text-muted {
  color: #9ca3af;
  font-style: italic;
}
.order-details-page .payment-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-details-page .payment-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.order-details-page .payment-details .detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.order-details-page .payment-details .detail-row .detail-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}
.order-details-page .payment-details .detail-row .detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}
.order-details-page .payment-details .detail-row .status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.order-details-page .payment-details .detail-row .status-badge.paid {
  background: #d1fae5;
  color: #065f46;
}
.order-details-page .payment-details .detail-row .status-badge.unpaid {
  background: #fef3c7;
  color: #92400e;
}
.order-details-page .timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 32px;
}
.order-details-page .timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e5e7eb;
}
.order-details-page .timeline .timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
}
.order-details-page .timeline .timeline-item .timeline-marker {
  position: absolute;
  left: -32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e5e7eb;
  z-index: 1;
}
.order-details-page .timeline .timeline-item .timeline-marker.created {
  background: #3b82f6;
}
.order-details-page .timeline .timeline-item .timeline-marker.paid {
  background: #10b981;
}
.order-details-page .timeline .timeline-item .timeline-marker.completed {
  background: #8b5cf6;
}
.order-details-page .timeline .timeline-item .timeline-marker.modified {
  background: #f59e0b;
}
.order-details-page .timeline .timeline-item .timeline-content {
  flex: 1;
}
.order-details-page .timeline .timeline-item .timeline-content .timeline-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  font-size: 14px;
}
.order-details-page .timeline .timeline-item .timeline-content .timeline-date {
  font-size: 13px;
  color: #6b7280;
}
.order-details-page .customer-note-box {
  background: #fef3c7;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #78350f;
}
.order-details-page .note-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-details-page .note-form .form-group {
  margin-bottom: 0;
}
.order-details-page .note-form .form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}
.order-details-page .note-form .form-group .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.order-details-page .note-form .form-group .form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.order-details-page .note-form .form-group textarea.form-control {
  resize: vertical;
}
.order-details-page .summary-card {
  position: sticky;
  top: 24px;
}
.order-details-page .summary-card .summary-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-details-page .summary-card .summary-details .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.order-details-page .summary-card .summary-details .summary-row span {
  color: #6b7280;
}
.order-details-page .summary-card .summary-details .summary-row strong {
  color: #1f2937;
}
.order-details-page .summary-card .summary-details .summary-row .total-amount {
  font-size: 20px;
  color: #10b981;
}
.order-details-page .summary-card .summary-details .summary-row .status-select {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.order-details-page .summary-card .summary-details .summary-row .status-select:hover:not(:disabled) {
  opacity: 0.9;
}
.order-details-page .summary-card .summary-details .summary-row .status-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.order-details-page .customer-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-details-page .customer-details .customer-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}
.order-details-page .customer-details .customer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}
.order-details-page .customer-details .customer-contact .icon {
  font-size: 16px;
}
.order-details-page .customer-details .customer-contact a {
  color: #3b82f6;
  text-decoration: none;
}
.order-details-page .customer-details .customer-contact a:hover {
  text-decoration: underline;
}
.order-details-page .customer-details .btn-block {
  width: 100%;
  margin-top: 8px;
}
.order-details-page .info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-details-page .info-list .info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.order-details-page .info-list .info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.order-details-page .info-list .info-item .info-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  flex-shrink: 0;
}
.order-details-page .info-list .info-item .info-value {
  font-size: 13px;
  color: #1f2937;
  text-align: right;
}
.order-details-page .info-list .info-item .info-value.small {
  font-size: 11px;
  word-break: break-all;
}
.order-details-page .notes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-details-page .notes-list .note-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
  /* &.note-private {
      border-left: 4px solid #3b82f6;
  }

  &.note-customer {
      border-left: 4px solid #10b981;
  } */
}
.order-details-page .notes-list .note-item.note-system {
  background: #f9fafb;
}
.order-details-page .notes-list .note-item .note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.order-details-page .notes-list .note-item .note-header .note-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.order-details-page .notes-list .note-item .note-header .note-meta .note-type-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: white;
  border: 1px solid #e5e7eb;
}
.order-details-page .notes-list .note-item .note-header .note-meta .note-date {
  font-size: 12px;
  color: #6b7280;
}
.order-details-page .notes-list .note-item .note-header .note-actions {
  display: flex;
  gap: 8px;
}
.order-details-page .notes-list .note-item .note-header .note-actions .btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.order-details-page .notes-list .note-item .note-header .note-actions .btn-icon:hover {
  opacity: 1;
}
.order-details-page .notes-list .note-item .note-content {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
}
.order-details-page .notes-list .note-item .note-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-details-page .notes-list .note-item .note-edit-form .note-edit-actions {
  display: flex;
  gap: 8px;
}
.order-details-page .card-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: flex-end;
}
.order-details-page .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.order-details-page .modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.order-details-page .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-details-page .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}
.order-details-page .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}
.order-details-page .modal-header .modal-close:hover {
  background: #f3f4f6;
}
.order-details-page .modal-body {
  padding: 24px;
}
.order-details-page .modal-body .help-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}
.order-details-page .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Products Page Styles */
.products .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.products .loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.products .loading-center p {
  color: #718096;
  font-size: 16px;
}
.products {
  /* Horizontal Filters Bar */
}
.products .filters-bar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
}
.products .filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.products .filter-item {
  display: flex;
  align-items: baseline;
}
.products .filter-item.filter-search {
  flex: 1;
  min-width: 250px;
}
.products .filter-item .search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.products .filter-item .search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.products .filter-item .search-input::-moz-placeholder {
  color: #9ca3af;
}
.products .filter-item .search-input::placeholder {
  color: #9ca3af;
}
.products .filter-item .filter-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 140px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.products .filter-item .filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.products .filter-item .btn-clear {
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 6px;
}
@media (max-width: 1024px) {
  .products .filters-row .filter-item.filter-search {
    min-width: 200px;
  }
}
@media (max-width: 768px) {
  .products .filters-bar {
    padding: 12px;
  }
  .products .filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .products .filters-row .filter-item {
    width: 100%;
  }
  .products .filters-row .filter-item.filter-search {
    min-width: auto;
  }
  .products .filters-row .filter-item .search-input,
  .products .filters-row .filter-item .filter-select {
    width: 100%;
    min-width: auto;
  }
}
.products .bulk-actions .bulk-info {
  color: #1a202c;
  font-size: 14px;
}
.products .bulk-actions .bulk-buttons {
  flex-wrap: wrap;
  display: flex;
  gap: 10px;
}
.products .table-container {
  width: 100%;
  max-width: 100%;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
@media (max-width: 1024px) {
  .products .table-container {
    overflow-x: auto;
  }
}
.products .table-container .products-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.products .table-container .products-table th,
.products .table-container .products-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.products .table-container .products-table th {
  background-color: #f7fafc;
  font-weight: 600;
  color: #4a5568;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.products .table-container .products-table th:nth-child(1) {
  width: 10px;
}
.products .table-container .products-table th:nth-child(2) {
  width: 250px;
}
.products .table-container .products-table th:nth-child(3) {
  width: 120px;
}
.products .table-container .products-table th:nth-child(4) {
  width: 140px;
}
.products .table-container .products-table th:nth-child(5) {
  width: 120px;
}
.products .table-container .products-table th:nth-child(6) {
  width: 100px;
}
.products .table-container .products-table th:nth-child(7) {
  width: 120px;
}
.products .table-container .products-table .checkbox-col {
  width: 50px;
  text-align: center;
}
.products .table-container .products-table .checkbox-col input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.products .table-container .products-table .product-row {
  transition: background-color 0.2s ease;
}
.products .table-container .products-table .product-row:hover {
  background-color: #f7fafc;
}
.products .table-container .products-table .product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row;
}
.products .table-container .products-table .product-info .product-image {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.products .table-container .products-table .product-info .product-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.products .table-container .products-table .product-info .product-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7fafc;
  color: #9ca3af;
  font-size: 18px;
}
.products .table-container .products-table .product-info .product-details {
  flex: 1;
  min-width: 0;
}
.products .table-container .products-table .product-info .product-details .product-name {
  font-weight: 600;
  color: #1a202c;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.products .table-container .products-table .product-info .product-details .product-type {
  font-size: 12px;
  margin-top: 2px;
  color: #6b7280;
}
.products .table-container .products-table .product-sku {
  font-family: monospace;
  font-size: 13px;
  color: #4a5568;
}
.products .table-container .products-table .stock-info .chip {
  margin-bottom: 4px;
}
.products .table-container .products-table .stock-info .stock-quantity {
  font-size: 12px;
}
.products .table-container .products-table .product-price {
  color: #1a202c;
  font-size: 14px;
}
.products .table-container .products-table .product-price .sale-price {
  font-size: 12px;
  color: #006ba1;
  font-weight: normal;
}
.products .table-container .products-table .product-actions .btn {
  padding: 4px 8px;
  font-size: 12px;
  min-width: auto;
}
.products .table-container .products-table .loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
}
.products .table-container .products-table .loading-row span {
  color: #718096;
}
.products .table-container .products-table .empty-state {
  padding: 60px 20px;
  text-align: center;
}
.products .table-container .products-table .empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.products .table-container .products-table .empty-state p {
  margin: 8px 0;
}
.products .table-container .products-table .empty-state p:first-of-type {
  font-size: 18px;
  font-weight: 500;
  color: #1a202c;
}
.products .table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f7fafc;
}
.products .table-pagination .pagination-info {
  color: #4a5568;
  font-size: 14px;
}
.products .table-pagination .pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.products .table-pagination .pagination-controls .rows-per-page {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  background-color: white;
}
.products .table-pagination .pagination-controls .page-info {
  color: #4a5568;
  font-size: 14px;
  margin: 0 8px;
}
.products .table-pagination .pagination-controls .btn {
  padding: 6px 12px;
  font-size: 12px;
}
@media (max-width: 768px) {
  .products .table-pagination {
    flex-direction: column;
    gap: 12px;
  }
  .products .table-pagination .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Full width responsive container */
.page.products {
  width: 100%;
}
.page.products .product-container .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.page.products .product-container .modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 60%;
  overflow-y: auto;
}
.page.products .product-container .modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.page.products .product-container .modal-content .modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}
.page.products .product-container .modal-content .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #718096;
  padding: 4px;
  border-radius: 4px;
}
.page.products .product-container .modal-content .modal-header .modal-close:hover {
  background-color: #f7fafc;
  color: #4a5568;
}
.page.products .product-container .modal-content .modal-body {
  padding: 24px;
}
.page.products .product-container .modal-content .modal-body .form-group {
  margin-bottom: 20px;
}
.page.products .product-container .modal-content .modal-body .form-group:last-child {
  margin-bottom: 0;
}
.page.products .product-container .modal-content .modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f7fafc;
}
.page.products .container.container-xl {
  max-width: 100%;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .page.products .container.container-xl {
    padding: 0 12px;
  }
}

/* Enhanced responsive table */
@media (max-width: 1024px) {
  .products .table-container .products-table {
    font-size: 13px;
  }
  .products .table-container .products-table th,
  .products .table-container .products-table td {
    padding: 8px 12px;
  }
  .products .table-container .products-table .product-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
    margin: 0 2px;
  }
}
@media (max-width: 768px) {
  .products .table-container .products-table {
    font-size: 12px;
    min-width: 800px;
  }
  .products .table-container .products-table th,
  .products .table-container .products-table td {
    padding: 6px 8px;
  }
  .products .table-container .products-table th:nth-child(1) {
    width: 40px;
  }
  .products .table-container .products-table th:nth-child(2) {
    width: 200px;
  }
  .products .table-container .products-table th:nth-child(3) {
    width: 100px;
  }
  .products .table-container .products-table th:nth-child(4) {
    width: 120px;
  }
  .products .table-container .products-table th:nth-child(5) {
    width: 100px;
  }
  .products .table-container .products-table th:nth-child(6) {
    width: 80px;
  }
  .products .table-container .products-table th:nth-child(7) {
    width: 100px;
  }
  .products .table-container .products-table .checkbox-col {
    width: 40px;
  }
  .products .table-container .products-table .product-info .product-image {
    width: 32px;
    height: 32px;
  }
  .products .table-container .products-table .product-actions .btn {
    padding: 2px 6px;
    font-size: 10px;
    margin: 0 1px;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .products .page-header .page-actions {
    flex-wrap: wrap;
  }
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .products .table-container .products-table th {
    background-color: #2d3748;
    color: #a0aec0;
  }
  .products .table-container .products-table .product-row:hover {
    background-color: #2d3748;
  }
  .products .table-pagination {
    background-color: #2d3748;
    border-color: #4a5568;
  }
  .products .table-pagination .rows-per-page {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
}
/* Product View Modal Styles */
.modal-large {
  max-width: 900px;
  width: 100%;
}

.modal-xl {
  max-width: 1200px;
  width: 100%;
}

.product-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.product-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.product-section .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f7fafc;
}
.product-section .detail-row:last-child {
  border-bottom: none;
}
.product-section .detail-row .label {
  font-weight: 500;
  color: #4a5568;
  font-size: 14px;
}
.product-section .detail-row .value {
  color: #1a202c;
  font-size: 14px;
  text-align: right;
}
.product-section .detail-row .value.font-semibold {
  font-weight: 600;
}
.product-section .detail-row .value.text-red-600 {
  color: #dc2626;
}
.product-section .product-image-large {
  width: 100%;
  max-width: 300px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-section .product-image-large img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.product-section .product-image-large .no-image-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background-color: #f7fafc;
  width: 100%;
  height: 100%;
}
.product-section .product-image-large .no-image-large span {
  font-size: 48px;
  margin-bottom: 8px;
}
.product-section .product-image-large .no-image-large p {
  font-size: 14px;
  margin: 0;
}
.product-section .description-block {
  background-color: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  line-height: 1.6;
  color: #4a5568;
}
.product-section .description-block p {
  margin: 0 0 8px 0;
}
.product-section .description-block p:last-child {
  margin-bottom: 0;
}
.product-section .categories-list,
.product-section .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-section .categories-list .chip,
.product-section .tags-list .chip {
  font-size: 12px;
  padding: 4px 8px;
}

/* Enhanced Product Create/Edit Modal Styles */
.product-tabs .tab-nav {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
  overflow-x: auto;
  gap: 0;
}
.product-tabs .tab-nav .tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.product-tabs .tab-nav .tab-btn:hover {
  color: #333;
  background: #f8f9fa;
}
.product-tabs .tab-nav .tab-btn.active {
  color: #007cba;
  border-bottom-color: #007cba;
  background: #f8f9fa;
}
.product-tabs .tab-nav .tab-btn .tab-icon {
  font-size: 16px;
}
.product-tabs .tab-content {
  min-height: 400px;
}
.product-tabs .tab-panel {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Editor Styles */
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #f7fafc;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.editor-toolbar .editor-btn {
  padding: 6px 10px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
}
.editor-toolbar .editor-btn:hover {
  background: #e2e8f0;
}
.editor-toolbar .editor-btn:active {
  background: #cbd5e0;
}

.editor-textarea {
  border-radius: 0 0 6px 6px !important;
  border-top: none !important;
  resize: vertical;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
.editor-textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Checkbox Groups */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.checkbox-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}
.checkbox-group .checkbox-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

/* Form Enhancements */
.products .form-group {
  margin-bottom: 20px;
}
.products .form-group.mb-6 {
  margin-bottom: 24px;
}
.products .form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  font-size: 14px;
}
.products .form-group label:after {
  content: " *";
  color: #dc2626;
  display: none;
}
.products .form-group input[required] + label:after,
.products .form-group label:has(+ input[required]):after {
  display: inline;
}
.products .form-group input,
.products .form-group select,
.products .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background-color: white;
}
.products .form-group input:focus,
.products .form-group select:focus,
.products .form-group textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}
.products .form-group input:disabled,
.products .form-group select:disabled,
.products .form-group textarea:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}
.products .form-group input.error,
.products .form-group select.error,
.products .form-group textarea.error {
  border-color: #e53e3e;
}
.products .form-group input.error:focus,
.products .form-group select.error:focus,
.products .form-group textarea.error:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
.products .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.products .form-group .help-text {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}
.products .form-group .error-text {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
}

/* Grid System Enhancements */
.grid {
  display: grid;
  gap: 20px;
}
.grid.grid-cols-1 {
  grid-template-columns: 1fr;
}
.grid.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid.gap-4 {
  gap: 16px;
}
.grid.gap-6 {
  gap: 24px;
}
@media (max-width: 768px) {
  .grid.grid-cols-2, .grid.grid-cols-3, .grid.grid-cols-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid.grid-cols-3, .grid.grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
  .modal-large,
  .modal-xl {
    max-width: none;
    margin: 10px;
    height: calc(100vh - 20px);
  }
  .modal-large .modal-body,
  .modal-xl .modal-body {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-section .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .product-section .detail-row .value {
    text-align: left;
  }
  .product-section .product-image-large {
    max-width: 100%;
    height: 200px;
  }
  .product-tabs .tab-nav .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .product-tabs .tab-nav .tab-btn .tab-icon {
    font-size: 14px;
  }
  .editor-toolbar {
    flex-wrap: wrap;
  }
  .editor-toolbar .editor-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}
/* Loading States */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Enha
nced Product Form Styles */
/* Section Headers */
.pricing-section,
.inventory-section,
.seo-section,
.product-settings,
.linked-products,
.downloadable-section,
.attributes-section,
.download-settings {
  margin: 24px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}
.pricing-section h4,
.inventory-section h4,
.seo-section h4,
.product-settings h4,
.linked-products h4,
.downloadable-section h4,
.attributes-section h4,
.download-settings h4 {
  margin: 0 0 16px 0;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
}
.pricing-section .section-description,
.inventory-section .section-description,
.seo-section .section-description,
.product-settings .section-description,
.linked-products .section-description,
.downloadable-section .section-description,
.attributes-section .section-description,
.download-settings .section-description {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Form Help Text */
.form-help {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
}

/* Stock Status Indicator */
.stock-status-display {
  margin-top: 16px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 6px;
}
.stock-status-display .stock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-status-display .stock-indicator .stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stock-status-display .stock-indicator .stock-text {
  font-weight: 500;
  font-size: 14px;
}
.stock-status-display .stock-indicator.in-stock .stock-dot {
  background: #10b981;
}
.stock-status-display .stock-indicator.in-stock .stock-text {
  color: #065f46;
}
.stock-status-display .stock-indicator.low-stock .stock-dot {
  background: #f59e0b;
}
.stock-status-display .stock-indicator.low-stock .stock-text {
  color: #92400e;
}
.stock-status-display .stock-indicator.out-of-stock .stock-dot {
  background: #ef4444;
}
.stock-status-display .stock-indicator.out-of-stock .stock-text {
  color: #991b1b;
}

/* Downloadable Files */
.downloadable-files .downloadable-file-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.downloadable-files .downloadable-file-item .input-with-action {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.downloadable-files .downloadable-file-item .input-with-action input {
  flex: 1;
}
.downloadable-files .downloadable-file-item .input-with-action .btn {
  flex-shrink: 0;
}

/* Product Attributes */
.product-attributes .attribute-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.product-attributes .attribute-item .attribute-header .attribute-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.product-attributes .attribute-item .attribute-header .attribute-options .checkbox-group {
  display: flex;
  gap: 16px;
  margin: 0;
}

/* Attribute Preview */
.attribute-preview {
  margin-top: 20px;
  padding: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.attribute-preview h5 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.attribute-preview .preview-content .preview-attribute {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.attribute-preview .preview-content .preview-attribute strong {
  color: #1f2937;
  min-width: 80px;
}
.attribute-preview .preview-content .preview-attribute span {
  color: #6b7280;
}

/* Product Search Input */
.product-search {
  position: relative;
}
.product-search::after {
  content: "🔍";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9ca3af;
}

/* Enhanced Checkbox Groups */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkbox-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}
.checkbox-group .checkbox-label input[type=checkbox] {
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Grid Enhancements */
.grid.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }
}
.grid.grid-cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .grid.grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Button Styles */
.btn.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.4;
}
.btn.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.btn.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}
.btn.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.btn.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* Character Counter Styling */
.form-help:has-text("/60"), .form-help:has-text("/160") {
  font-family: monospace;
  font-weight: 500;
}

/* Conditional Field Animations */
.pricing-section,
.inventory-section,
.seo-section {
  transition: all 0.3s ease;
}
.pricing-section:hover,
.inventory-section:hover,
.seo-section:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced Tab Content */
.tab-panel {
  padding: 0;
}
.tab-panel > *:first-child {
  margin-top: 0;
}
.tab-panel > *:last-child {
  margin-bottom: 0;
}

/* Responsive Enhancements for New Components */
@media (max-width: 768px) {
  .pricing-section,
  .inventory-section,
  .seo-section,
  .product-settings,
  .linked-products,
  .downloadable-section,
  .attributes-section {
    padding: 16px;
    margin: 16px 0;
  }
  .downloadable-files .downloadable-file-item {
    padding: 12px;
  }
  .downloadable-files .downloadable-file-item .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .downloadable-files .downloadable-file-item .input-with-action {
    flex-direction: column;
    align-items: stretch;
  }
  .downloadable-files .downloadable-file-item .input-with-action .btn {
    align-self: flex-start;
  }
  .attribute-item .attribute-options {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .attribute-item .attribute-options .checkbox-group {
    flex-direction: column;
    gap: 8px;
  }
}
/* Focus States for Better Accessibility */
.editor-btn:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  outline-offset: unset;
  border-color: unset;
  box-shadow: unset;
}

/* Loading States */
.form-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.form-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 
Featured Image Upload Styles */
.image-upload-area .featured-image-preview {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.image-upload-area .featured-image-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.image-upload-area .featured-image-preview .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.image-upload-area .featured-image-preview .image-overlay .btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  background: #ef4444;
  color: white;
  border: none;
  cursor: pointer;
}
.image-upload-area .featured-image-preview .image-overlay .btn:hover {
  background: #dc2626;
}
.image-upload-area .featured-image-preview:hover .image-overlay {
  opacity: 1;
}
.image-upload-area .upload-placeholder {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: border-color 0.2s ease;
  cursor: pointer;
  background: #fafafa;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-upload-area .upload-placeholder:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}
.image-upload-area .upload-placeholder .upload-content .upload-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
}
.image-upload-area .upload-placeholder .upload-content p {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.image-upload-area .upload-placeholder .upload-content small {
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
}

/* Gallery Upload Styles */
.gallery-upload-area .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.gallery-upload-area .gallery-grid .gallery-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
}
.gallery-upload-area .gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.gallery-upload-area .gallery-grid .gallery-item .gallery-overlay {
  position: absolute;
  top: 4px;
  right: 4px;
}
.gallery-upload-area .gallery-grid .gallery-item .gallery-overlay .btn {
  width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-upload-area .gallery-grid .gallery-item .gallery-overlay .btn:hover {
  background: #dc2626;
}
.gallery-upload-area .gallery-grid .gallery-upload-item {
  width: 100px;
  height: 100px;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
  cursor: pointer;
  background: #fafafa;
}
.gallery-upload-area .gallery-grid .gallery-upload-item:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}
.gallery-upload-area .gallery-grid .gallery-upload-item .upload-content {
  text-align: center;
}
.gallery-upload-area .gallery-grid .gallery-upload-item .upload-content .upload-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
}
.gallery-upload-area .gallery-grid .gallery-upload-item .upload-content p {
  font-size: 10px;
  margin: 0;
  color: #6b7280;
  line-height: 1.2;
}

/* WordPress Media Button Styling */
.btn.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Responsive Image Styles */
@media (max-width: 768px) {
  .image-upload-area .featured-image-preview,
  .image-upload-area .upload-placeholder {
    width: 120px;
    height: 120px;
  }
  .image-upload-area .upload-placeholder {
    padding: 20px;
  }
  .image-upload-area .upload-placeholder .upload-content .upload-icon {
    font-size: 24px;
  }
  .image-upload-area .upload-placeholder .upload-content p {
    font-size: 11px;
  }
  .image-upload-area .upload-placeholder .upload-content small {
    font-size: 9px;
  }
  .gallery-upload-area .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .gallery-upload-area .gallery-grid .gallery-item,
  .gallery-upload-area .gallery-grid .gallery-upload-item {
    width: 80px;
    height: 80px;
  }
}
/* Wo
rdPress Media Integration Styles */
.wordpress-media-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.wordpress-media-button:hover {
  background: #005a87;
}
.wordpress-media-button:disabled {
  background: #ccd0d4;
  cursor: not-allowed;
}
.wordpress-media-button .wp-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Media Loading States */
.media-loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}
.media-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Enhanced Image Preview */
.image-preview-container {
  position: relative;
  display: inline-block;
}
.image-preview-container .image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 8px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.image-preview-container:hover .image-info {
  opacity: 1;
}

/* Form Field Enhancements */
.form-group.has-media-button .form-control {
  padding-right: 120px;
}
.form-group.has-media-button .media-button-container {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

/* WordPress Media Modal Customizations */
.media-modal .media-modal-content .media-frame-title h1 {
  font-size: 18px !important;
}

/* Responsive Media Styles */
@media (max-width: 768px) {
  .wordpress-media-button {
    padding: 6px 10px;
    font-size: 12px;
  }
  .image-upload-area .featured-image-preview,
  .image-upload-area .upload-placeholder {
    width: 100px;
    height: 100px;
  }
  .gallery-upload-area .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
  .gallery-upload-area .gallery-grid .gallery-item,
  .gallery-upload-area .gallery-grid .gallery-upload-item {
    width: 60px;
    height: 60px;
  }
}
/* Error States for Media */
.media-error {
  border-color: #dc3545 !important;
  background-color: #f8d7da !important;
}
.media-error .upload-content {
  color: #721c24;
}
.media-error .upload-content .upload-icon {
  color: #dc3545;
}

/* Success States for Media */
.media-success {
  border-color: #28a745 !important;
  background-color: #d4edda !important;
}
.media-success .upload-content {
  color: #155724;
}
.media-success .upload-content .upload-icon {
  color: #28a745;
}

.product-search-dropdown {
  position: relative;
}

.search-input-container {
  position: relative;
}

.selected-product-info {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  font-size: 0.875rem;
  font-weight: 500;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #374151;
}

.dropdown-items {
  max-height: 250px;
}

.dropdown-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: #f9fafb;
}

.dropdown-item.selected {
  background-color: #dbeafe;
  border-left: 3px solid #3b82f6;
}

.dropdown-item.disabled {
  cursor: not-allowed;
  color: #9ca3af;
  background-color: #f9fafb;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-name {
  font-weight: 500;
  color: #111827;
}

.product-details {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Category, Tag, and Brand Selection Styles */
.multi-select-container {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: #f9fafb;
}

.selected-items {
  margin-bottom: 1rem;
  min-height: 2rem;
}

.selected-item {
  display: inline-flex;
  align-items: center;
  background-color: #3b82f6;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin: 0.125rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.remove-item {
  background: none;
  border: none;
  color: white;
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

.remove-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.available-items {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.section-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.item-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  background-color: white;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  text-align: left;
}

.item-btn:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.item-btn.selected {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.item-btn.selected:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Section header styling */
.section-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h4 {
  margin: 0;
  color: #111827;
}

/* Attribute specific styles */
.attribute-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: white;
}

.attribute-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.attribute-info h5 {
  margin: 0;
  color: #111827;
  font-weight: 600;
}

.attribute-slug {
  color: #6b7280;
  font-size: 0.875rem;
  font-family: monospace;
}

.attribute-content {
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
}

.attribute-options {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.checkbox-label input[type=checkbox] {
  margin: 0;
}

/* Attribute preview */
.attribute-preview {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.attribute-preview h5 {
  margin: 0 0 0.75rem 0;
  color: #111827;
  font-weight: 600;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-attribute {
  font-size: 0.875rem;
}

.preview-attribute strong {
  color: #374151;
  margin-right: 0.5rem;
}

.preview-attribute span {
  color: #6b7280;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.term-item {
  padding: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

.term-name {
  font-weight: 500;
  color: #111827;
}

.term-slug {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.attribute-card {
  padding: 1rem;
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.attribute-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.attribute-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

.attribute-type {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: capitalize;
  margin-bottom: 0.25rem;
}

.attribute-slug {
  font-size: 0.75rem;
  color: #9ca3af;
  font-family: monospace;
}

.tab-navigation {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.15s ease;
}

.tab-button:hover {
  color: #374151;
}

.tab-button.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.modal-large {
  max-width: 800px;
  width: 90vw;
}

.product-search-dropdown {
  position: relative;
}

.search-input-container {
  position: relative;
}

.selected-product-info {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
  font-size: 0.875rem;
  font-weight: 500;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #374151;
}

.dropdown-items {
  max-height: 250px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: #f9fafb;
}

.dropdown-item.selected {
  background-color: #dbeafe;
  border-left: 3px solid #3b82f6;
}

.dropdown-item.disabled {
  cursor: not-allowed;
  color: #9ca3af;
  background-color: #f9fafb;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-name {
  font-weight: 500;
  color: #111827;
}

.product-details {
  font-size: 0.875rem;
  color: #6b7280;
}

/*
 Product Editor Page - Full Page Form (No Modal) */
.product-editor-page {
  /*  .page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
  } */
}
.product-editor-page .btn-back {
  background: none;
  border: none;
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  display: inline-block;
  transition: all 0.2s;
}
.product-editor-page .btn-back:hover {
  text-decoration: underline;
  color: #1565c0;
}
.product-editor-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.product-editor-page .page-header .page-title {
  flex: 1;
}
.product-editor-page .page-header .page-title h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
  line-height: 35px;
}
.product-editor-page .page-header .page-title p {
  color: #718096;
  margin: 0;
  font-size: 14px;
}
.product-editor-page .page-header .page-actions {
  display: flex;
  gap: 12px;
}
.product-editor-page .editor-grid {
  display: grid;
  gap: 24px;
}
.product-editor-page .editor-section {
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.product-editor-page .editor-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}
.product-editor-page .editor-section .section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
}
.product-editor-page .editor-section .section-content {
  padding: 20px;
}
.product-editor-page .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.product-editor-page .form-row:last-child {
  margin-bottom: 0;
}
.product-editor-page .form-group {
  margin-bottom: 16px;
}
.product-editor-page .form-group:last-child {
  margin-bottom: 0;
}
.product-editor-page .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}
.product-editor-page .form-group input,
.product-editor-page .form-group select,
.product-editor-page .form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.product-editor-page .form-group input:focus,
.product-editor-page .form-group select:focus,
.product-editor-page .form-group textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}
.product-editor-page .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.product-editor-page .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.product-editor-page .checkbox-label input[type=checkbox] {
  width: auto;
  cursor: pointer;
}

.wp-editor-container .wp-editor-wrap {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.wp-editor-container .wp-editor-wrap .wp-editor-tools {
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}
.wp-editor-container .wp-editor-wrap .wp-editor-area {
  border: none;
  box-shadow: none;
  resize: vertical;
}
.wp-editor-container .wp-editor-wrap .mce-toolbar-grp {
  background: #f9f9f9;
}
.wp-editor-container .wp-editor-wrap .mce-tinymce {
  border: none;
}
.wp-editor-container .wp-editor-wrap .mce-edit-area {
  border: none;
}
.wp-editor-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.product-editor-page .product-editor-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .product-editor-page .product-editor-layout {
    grid-template-columns: 1fr;
  }
}
.product-editor-page .product-editor-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-editor-page .product-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-editor-page .sidebar-widget {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.product-editor-page .sidebar-widget .widget-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.product-editor-page .sidebar-widget .widget-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.product-editor-page .sidebar-widget .widget-content {
  padding: 16px;
}
.product-editor-page .product-data-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-editor-page .product-data-section .section-header .product-type-select {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}
.product-editor-page .product-data-section .section-header .product-type-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.product-editor-page .product-data-tabs {
  display: flex;
  border-top: 1px solid #e5e7eb;
}
.product-editor-page .product-data-tabs .tab-nav {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
}
.product-editor-page .product-data-tabs .tab-nav .tab-btn {
  padding: 12px 16px;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #6b7280;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.product-editor-page .product-data-tabs .tab-nav .tab-btn:hover {
  background: #f3f4f6;
  color: #111827;
}
.product-editor-page .product-data-tabs .tab-nav .tab-btn.active {
  background: white;
  color: #3b82f6;
  font-weight: 500;
  border-left-color: #3b82f6;
}
.product-editor-page .product-data-tabs .tab-content {
  flex: 1;
  padding: 24px;
  background: white;
}
.product-editor-page .product-data-tabs .tab-panel .form-group {
  margin-bottom: 20px;
}
.product-editor-page .product-data-tabs .tab-panel .form-group:last-child {
  margin-bottom: 0;
}
.product-editor-page .wp-editor-container {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
}
.product-editor-page .wp-editor-container .wp-editor-area {
  width: 100%;
  padding: 12px;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}
.product-editor-page .wp-editor-container .wp-editor-area:focus {
  outline: none;
}
.product-editor-page .dimensions-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.product-editor-page .dimensions-group input {
  width: 100%;
}
.product-editor-page .toggle-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.product-editor-page .toggle-field label span {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
.product-editor-page .toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.product-editor-page .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.product-editor-page .toggle-switch input:checked + .toggle-slider {
  background-color: #3b82f6;
}
.product-editor-page .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
.product-editor-page .toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.product-editor-page .toggle-switch .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 24px;
}
.product-editor-page .toggle-switch .toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.product-editor-page .image-upload-section .featured-image-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.product-editor-page .image-upload-section .featured-image-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.product-editor-page .image-upload-section .featured-image-preview .remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.product-editor-page .image-upload-section .featured-image-preview .remove-image:hover {
  background: rgba(220, 38, 38, 0.9);
}
.product-editor-page .field-description {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.5;
}
.product-editor-page .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.product-editor-page .checkbox-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.product-editor-page .checkbox-label span {
  font-size: 14px;
  color: #374151;
}

.category-selector .selected-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.category-selector .selected-categories .category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #dcfce7;
  color: #166534;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}
.category-selector .selected-categories .category-chip .category-remove {
  background: none;
  border: none;
  color: #166534;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.category-selector .selected-categories .category-chip .category-remove:hover {
  background: rgba(22, 101, 52, 0.1);
}
.category-selector .category-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 8px;
  background: white;
}
.category-selector .category-list .category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.category-selector .category-list .category-item:hover {
  background: #f9fafb;
}
.category-selector .category-list .category-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.category-selector .category-list .category-item span {
  flex: 1;
  font-size: 14px;
  color: #374151;
}
.category-selector .category-list .category-item .category-count {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}

.tag-selector .selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tag-selector .selected-tags .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}
.tag-selector .selected-tags .tag-chip .tag-remove {
  background: none;
  border: none;
  color: #1e40af;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.tag-selector .selected-tags .tag-chip .tag-remove:hover {
  background: rgba(30, 64, 175, 0.1);
}
.tag-selector .tag-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 8px;
  background: white;
}
.tag-selector .tag-list .tag-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag-selector .tag-list .tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.tag-selector .tag-list .tag-item:hover {
  background: #f9fafb;
}
.tag-selector .tag-list .tag-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.tag-selector .tag-list .tag-item span {
  flex: 1;
  font-size: 14px;
  color: #374151;
}
.tag-selector .tag-list .tag-item .tag-count {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-content.modal-sm {
  max-width: 400px;
}
.modal-content.modal-lg {
  max-width: 800px;
}
.modal-content.modal-xl {
  max-width: 1200px;
}
.modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-content .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.modal-content .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}
.modal-content .modal-header .modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}
.modal-content .modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.btn-block {
  width: 100%;
}

.image-uploader.featured-uploader .featured-image-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}
.image-uploader.featured-uploader .featured-image-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.image-uploader.featured-uploader .featured-image-preview .image-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}
.image-uploader.featured-uploader .upload-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  color: #6b7280;
}
.image-uploader.featured-uploader .upload-placeholder .upload-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.image-uploader.featured-uploader .upload-placeholder p {
  margin: 0;
  font-size: 14px;
}
.image-uploader.gallery-uploader .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.image-uploader.gallery-uploader .gallery-grid .gallery-item {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}
.image-uploader.gallery-uploader .gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.image-uploader.gallery-uploader .gallery-grid .gallery-item .image-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-uploader.gallery-uploader .gallery-grid .gallery-item:hover .image-actions {
  opacity: 1;
}
.image-uploader.gallery-uploader .gallery-grid .gallery-item .featured-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}
.image-uploader .btn-image-action {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.image-uploader .btn-image-action:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: scale(1.1);
}
.image-uploader .upload-buttons {
  display: flex;
  gap: 8px;
}
.image-uploader .upload-buttons .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.image-uploader .upload-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.image-uploader .upload-buttons .btn:active {
  transform: translateY(0);
}
.image-uploader .upload-buttons .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.custom-fields-manager .custom-fields-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.custom-fields-manager .custom-fields-list .custom-field-item {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  background: white;
}
.custom-fields-manager .custom-fields-list .custom-field-item .field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.custom-fields-manager .custom-fields-list .custom-field-item .field-header .field-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-fields-manager .custom-fields-list .custom-field-item .field-header .field-info strong {
  font-size: 14px;
  color: #374151;
}
.custom-fields-manager .custom-fields-list .custom-field-item .field-header .field-info .field-type-badge {
  padding: 2px 8px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}
.custom-fields-manager .custom-fields-list .custom-field-item .field-header .btn-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}
.custom-fields-manager .custom-fields-list .custom-field-item .field-header .btn-remove:hover {
  background: #fee2e2;
}
.custom-fields-manager .custom-fields-list .custom-field-item .field-value input,
.custom-fields-manager .custom-fields-list .custom-field-item .field-value textarea,
.custom-fields-manager .custom-fields-list .custom-field-item .field-value select {
  width: 100%;
}

.downloadable-files-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.downloadable-files-list .downloadable-file-item {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  position: relative;
}
.downloadable-files-list .downloadable-file-item .form-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.downloadable-files-list .downloadable-file-item .btn-remove-file {
  background: #dc2626;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-bottom: 0;
  align-self: flex-end;
}
.downloadable-files-list .downloadable-file-item .btn-remove-file:hover {
  background: #b91c1c;
  transform: scale(1.05);
}
.downloadable-files-list .downloadable-file-item .btn-remove-file:active {
  transform: scale(0.95);
}

.brand-selector .selected-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.brand-selector .selected-brands .brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}
.brand-selector .selected-brands .brand-chip .brand-remove {
  background: none;
  border: none;
  color: #92400e;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.brand-selector .selected-brands .brand-chip .brand-remove:hover {
  background: rgba(146, 64, 14, 0.1);
}
.brand-selector .brand-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 8px;
  background: white;
}
.brand-selector .brand-list .brand-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-selector .brand-list .brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.brand-selector .brand-list .brand-item:hover {
  background: #f9fafb;
}
.brand-selector .brand-list .brand-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.brand-selector .brand-list .brand-item span {
  flex: 1;
  font-size: 14px;
  color: #374151;
}

.product-selector {
  margin-bottom: 20px;
}
.product-selector label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  font-size: 14px;
}
.product-selector .selected-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.product-selector .selected-products .selected-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-size: 14px;
  color: #1e40af;
}
.product-selector .selected-products .selected-product-item .btn-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}
.product-selector .selected-products .selected-product-item .btn-remove:hover {
  background: rgba(220, 38, 38, 0.1);
}
.product-selector .search-wrapper {
  position: relative;
}
.product-selector .search-wrapper input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background-color: white;
}
.product-selector .search-wrapper input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}
.product-selector .search-wrapper .search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.product-selector .search-wrapper .search-dropdown .dropdown-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
  background: white;
}
.product-selector .search-wrapper .search-dropdown .dropdown-item:hover {
  background: #f9fafb;
}
.product-selector .search-wrapper .search-dropdown .dropdown-item:last-child {
  border-bottom: none;
}
.product-selector .search-wrapper .search-dropdown .dropdown-item .product-info {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-selector .search-wrapper .search-dropdown .dropdown-item .product-info img {
  flex-shrink: 0;
}
.product-selector .search-wrapper .search-dropdown .dropdown-item .product-info > div {
  flex: 1;
  min-width: 0;
}
.product-selector .search-wrapper .search-dropdown .dropdown-item .product-info .product-name {
  font-weight: 500;
  font-size: 14px;
  color: #374151;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-selector .search-wrapper .search-dropdown .dropdown-item .product-info .product-price {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
}

.attribute-manager .attributes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.attribute-manager .attributes-list .attribute-item {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
.attribute-manager .attributes-list .attribute-item .attribute-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  cursor: pointer;
}
.attribute-manager .attributes-list .attribute-item .attribute-header .expand-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attribute-manager .attributes-list .attribute-item .attribute-header strong {
  flex: 1;
  font-size: 14px;
  color: #374151;
}
.attribute-manager .attributes-list .attribute-item .attribute-header .attribute-count {
  font-size: 12px;
  color: #6b7280;
}
.attribute-manager .attributes-list .attribute-item .attribute-header .btn-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}
.attribute-manager .attributes-list .attribute-item .attribute-header .btn-remove:hover {
  background: #fee2e2;
}
.attribute-manager .attributes-list .attribute-item .attribute-content {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-actions .btn-link {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  padding: 2px 8px;
  text-decoration: none;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.2s;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-actions .btn-link:hover {
  color: #2563eb;
  background: #eff6ff;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-actions span {
  color: #d1d5db;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .selected-terms span button:hover {
  color: #dc2626;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-search-input::-moz-placeholder {
  color: #9ca3af;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-search-input::placeholder {
  color: #9ca3af;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 4px;
  background: white;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list::-webkit-scrollbar {
  width: 8px;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list .term-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  font-size: 14px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list .term-checkbox-item:hover {
  background: #f9fafb;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list .term-checkbox-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list .term-checkbox-item span {
  flex: 1;
  color: #374151;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .terms-checkbox-list .no-terms-message {
  padding: 16px 12px;
  color: #6b7280;
  text-align: center;
  font-size: 13px;
}
.attribute-manager .attributes-list .attribute-item .attribute-content select[multiple] option {
  padding: 6px 8px;
}
.attribute-manager .attributes-list .attribute-item .attribute-content select[multiple] option:checked {
  background: linear-gradient(#3b82f6, #3b82f6);
  color: white;
}
.attribute-manager .attributes-list .attribute-item .attribute-content select[multiple] option:hover {
  background: #f3f4f6;
}
.attribute-manager .attributes-list .attribute-item .attribute-content .attribute-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attribute-manager .add-attribute-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.attribute-manager .add-attribute-buttons .dropdown-wrapper {
  flex: 1;
}
.attribute-manager .add-attribute-buttons .dropdown-wrapper .attribute-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}
.attribute-manager .add-attribute-buttons .dropdown-wrapper .attribute-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.variations-header {
  margin-bottom: 20px;
}
.variations-header h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}
.variations-header .field-description {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.variation-manager .variations-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.variation-manager .variations-toolbar .btn {
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.2s;
}
.variation-manager .variations-toolbar .btn.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}
.variation-manager .variations-toolbar .btn.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}
.variation-manager .variations-toolbar .btn.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.variation-manager .variations-toolbar .btn.btn-secondary {
  background: white;
  border: 2px solid #d1d5db;
  color: #374151;
}
.variation-manager .variations-toolbar .btn.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}
.variation-manager .variations-toolbar .variations-count {
  margin-left: auto;
  color: #059669;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  background: #d1fae5;
  border-radius: 20px;
  border: 1px solid #10b981;
}
.variation-manager .variations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.variation-manager .variation-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.variation-manager .variation-item .variation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  cursor: pointer;
}
.variation-manager .variation-item .variation-header .expand-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.variation-manager .variation-item .variation-header .variation-info {
  flex: 1;
  min-width: 0;
}
.variation-manager .variation-item .variation-header .variation-info strong {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-bottom: 4px;
}
.variation-manager .variation-item .variation-header .variation-info .variation-details {
  font-size: 12px;
  color: #6b7280;
}
.variation-manager .variation-item .variation-header .variation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.variation-manager .variation-item .variation-header .variation-actions .btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
}
.variation-manager .variation-item .variation-header .variation-actions .btn-sm.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}
.variation-manager .variation-item .variation-header .variation-actions .btn-sm.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
}
.variation-manager .variation-item .variation-header .variation-actions .btn-sm.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.variation-manager .variation-item .variation-header .variation-actions .btn-sm.btn-secondary {
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}
.variation-manager .variation-item .variation-header .variation-actions .btn-sm.btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}
.variation-manager .variation-item .variation-header .variation-actions .btn-sm.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.variation-manager .variation-item .variation-header .variation-actions .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.variation-manager .variation-item .variation-header .variation-actions .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.variation-manager .variation-item .variation-header .variation-actions .toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
}
.variation-manager .variation-item .variation-header .variation-actions .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
.variation-manager .variation-item .variation-header .variation-actions .toggle-switch .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.2s;
  border-radius: 24px;
}
.variation-manager .variation-item .variation-header .variation-actions .toggle-switch .toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}
.variation-manager .variation-item .variation-header .variation-actions .btn-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}
.variation-manager .variation-item .variation-header .variation-actions .btn-remove:hover {
  background: #fee2e2;
}
.variation-manager .variation-item .variation-content {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
}
.variation-manager .variation-item .variation-content .variation-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.variation-manager .variation-item .variation-content .variation-form .form-row:last-child {
  margin-bottom: 0;
}
.variation-manager .variation-item .variation-content .variation-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}
.variation-manager .variation-item .variation-content .variation-form .form-group input, .variation-manager .variation-item .variation-content .variation-form .form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.variation-manager .variation-item .variation-content .variation-form .form-group input:focus, .variation-manager .variation-item .variation-content .variation-form .form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.variation-manager .variation-item .variation-content .variation-form .form-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}
.variation-manager .variation-item .variation-content .variation-form .form-group .checkbox-label input[type=checkbox] {
  width: auto;
  margin: 0;
}
.variation-manager .variations-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.variations-empty .empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.variations-empty .empty-state h4 {
  margin: 0 0 12px 0;
  color: #374151;
  font-size: 16px;
}
.variations-empty .empty-state p {
  margin: 0 0 16px 0;
  color: #6b7280;
}
.variations-empty .empty-state ol {
  text-align: left;
  display: inline-block;
  margin: 0 0 20px 0;
  color: #374151;
}
.variations-empty .empty-state ol li {
  margin-bottom: 8px;
}
.variations-empty .empty-state ol li strong {
  color: #1f2937;
}

hanced Variation Manager Styles .attribute-selection-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
hanced Variation Manager Styles .attribute-selection-section h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}
hanced Variation Manager Styles .attribute-selection-section .field-description {
  margin: 0 0 20px 0;
  color: #6b7280;
  font-size: 14px;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  line-height: 1.4;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector .terms-multiselect {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector .terms-multiselect:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector .terms-multiselect option {
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector .terms-multiselect option:checked {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-weight: 500;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector .terms-multiselect option:hover {
  background: #f3f4f6;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector .help-text {
  display: block;
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  padding: 8px 12px;
  background: #eff6ff;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
  line-height: 1.5;
  font-style: italic;
}
hanced Variation Manager Styles .attribute-selection-section .attribute-selector .help-text::before {
  content: "ℹ️ ";
  margin-right: 4px;
}
hanced Variation Manager Styles .attribute-selection-section .generation-info {
  padding: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #10b981;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}
hanced Variation Manager Styles .attribute-selection-section .generation-info p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.6;
}
hanced Variation Manager Styles .attribute-selection-section .generation-info p:last-child {
  margin-bottom: 0;
}
hanced Variation Manager Styles .attribute-selection-section .generation-info strong {
  color: #065f46;
  font-weight: 600;
  font-size: 15px;
}
hanced Variation Manager Styles .attribute-selection-section .generation-info .field-description {
  color: #047857;
  font-size: 13px;
  margin-top: 8px;
  padding-left: 0;
}

.variation-content .form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}
.variation-content .form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.variation-content .form-section h5 {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.variation-content .image-upload-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
}
.variation-content .image-upload-placeholder .no-image {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
}
.variation-content .image-upload-placeholder img {
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.modal-content .attribute-summary {
  margin: 16px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
}
.modal-content .attribute-summary h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.modal-content .attribute-summary .attribute-summary-item {
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
}
.modal-content .attribute-summary .attribute-summary-item strong {
  color: #1f2937;
}
.modal-content .warning-box {
  padding: 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  margin-top: 16px;
}
.modal-content .warning-box p {
  margin: 0 0 12px 0;
  color: #92400e;
  font-size: 14px;
}
.modal-content .warning-box ul {
  margin: 0;
  padding-left: 20px;
  color: #92400e;
}
.modal-content .warning-box ul li {
  margin-bottom: 4px;
  font-size: 13px;
}

anced Section Header with Inherit Button .variation-content .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
anced Section Header with Inherit Button .variation-content .section-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
anced Section Header with Inherit Button .variation-content .section-header .inherit-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
anced Section Header with Inherit Button .variation-content .section-header .inherit-btn:hover {
  background: #e5e7eb;
  color: #374151;
  border-color: #9ca3af;
}
anced Section Header with Inherit Button .variation-content .section-header .inherit-btn:active {
  background: #d1d5db;
}
anced Section Header with Inherit Button .variation-content .help-text {
  margin: 4px 0 0 0;
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
}

.attribute-selection-section .attribute-selector {
  display: flex !important;
  flex-direction: column !important;
}
.attribute-selection-section .attribute-selector label {
  display: block !important;
  margin-bottom: 10px !important;
}
.attribute-selection-section .attribute-selector .terms-multiselect {
  display: block !important;
  width: 100% !important;
  margin-bottom: 10px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.attribute-selection-section .attribute-selector .terms-multiselect:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
}
.attribute-selection-section .attribute-selector .terms-multiselect option {
  padding: 10px 14px;
  margin: 1px 0;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}
.attribute-selection-section .attribute-selector .terms-multiselect option:checked {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.attribute-selection-section .attribute-selector .terms-multiselect option:hover:not(:checked) {
  background: #f0f9ff;
  color: #1e40af;
}
.attribute-selection-section .attribute-selector .help-text {
  display: block !important;
  margin: 0 !important;
  font-size: 11px !important;
  padding: 8px 12px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}
.attribute-selection-section .attribute-selector .help-text::before {
  content: "ℹ️ ";
  margin-right: 4px;
}
.attribute-selection-section .generation-info {
  padding: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #10b981;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}
.attribute-selection-section .generation-info strong {
  color: #15803d;
}
.attribute-selection-section .generation-info .field-description {
  color: #166534;
}

.form-section .form-row input[type=datetime-local] {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: border-color 0.2s;
}
.form-section .form-row input[type=datetime-local]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-section .form-row input[type=datetime-local]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
}
.form-section .form-row input[type=datetime-local]::-webkit-calendar-picker-indicator:hover {
  filter: invert(0.3);
}

.custom-fields-manager .field-editable-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}
.custom-fields-manager .field-options {
  padding: 8px 12px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}
.custom-fields-manager .field-options .checkbox-label {
  font-size: 13px;
  color: #374151;
}

.products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  margin-top: 24px;
  position: relative;
}
@media (max-width: 1024px) {
  .products-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

.products-sidebar .sidebar-tabs {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.products-sidebar .sidebar-tabs .sidebar-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.products-sidebar .sidebar-tabs .sidebar-tab:last-child {
  border-bottom: none;
}
.products-sidebar .sidebar-tabs .sidebar-tab .tab-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.products-sidebar .sidebar-tabs .sidebar-tab .tab-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s;
}
.products-sidebar .sidebar-tabs .sidebar-tab:hover {
  background: #f9fafb;
}
.products-sidebar .sidebar-tabs .sidebar-tab:hover .tab-label {
  color: #374151;
}
.products-sidebar .sidebar-tabs .sidebar-tab.active {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding-left: 13px;
}
.products-sidebar .sidebar-tabs .sidebar-tab.active .tab-label {
  color: #3b82f6;
  font-weight: 600;
}
@media (max-width: 1024px) {
  .products-sidebar {
    margin-bottom: 16px;
  }
  .products-sidebar .sidebar-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    padding: 8px;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab {
    flex-direction: column;
    gap: 6px;
    padding: 12px 8px;
    border-bottom: none;
    border-right: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    background: white;
    transition: all 0.2s;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab .tab-icon {
    font-size: 24px;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab .tab-label {
    font-size: 11px;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.2;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab.active {
    border: 2px solid #3b82f6;
    background: #eff6ff;
    padding: 11px 7px;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab.active .tab-label {
    color: #3b82f6;
    font-weight: 600;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
  }
}

.products-main-content {
  min-width: 0;
}
.products-main-content .tab-content {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}
.products-main-content .tab-content .empty-state {
  text-align: center;
  padding: 60px 20px;
}
.products-main-content .tab-content .empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.products-main-content .tab-content .empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.products-main-content .tab-content .empty-state p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.products-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.products-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}
.products-table thead th:last-child {
  width: 120px;
  min-width: 120px;
}
.products-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}
.products-table tbody tr:hover {
  background: #f9fafb;
}
.products-table tbody tr td {
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
}
.products-table .checkbox-col {
  width: 40px;
  text-align: center;
}
.products-table .product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.products-table .product-info .product-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.products-table .product-info .product-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.products-table .product-info .product-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 24px;
}
.products-table .product-info .product-details {
  flex: 1;
  min-width: 0;
}
.products-table .product-info .product-details .product-name {
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.products-table .product-info .product-details .product-type {
  font-size: 12px;
  text-transform: capitalize;
}
.products-table .product-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: 100px;
  white-space: nowrap;
}
.products-table tbody tr td:last-child {
  position: sticky;
  right: 0;
  background: white;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}
.products-table tbody tr td:last-child:hover {
  background: #f9fafb;
}
.products-table thead tr th:last-child {
  position: sticky;
  right: 0;
  background: #f9fafb;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
@media (max-width: 1200px) {
  .table-container .products-table {
    min-width: 900px;
  }
}
@media (max-width: 768px) {
  .table-container .products-table {
    min-width: 800px;
    font-size: 13px;
  }
  .table-container .products-table thead th,
  .table-container .products-table tbody td {
    padding: 8px 12px;
  }
  .table-container .products-table .product-info {
    min-width: 180px;
  }
  .table-container .products-table .product-info .product-image {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1200px) {
  .products-layout {
    grid-template-columns: 200px 1fr;
    gap: 16px;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab {
    padding: 12px;
  }
  .products-sidebar .sidebar-tabs .sidebar-tab .tab-label {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .products-container .page-header {
    flex-direction: column;
    gap: 12px;
  }
  .products-container .page-header .page-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .products-container .filters-bar .filters-row {
    flex-direction: column;
    gap: 8px;
  }
  .products-container .filters-bar .filters-row .filter-item {
    width: 100%;
  }
  .products-container .bulk-actions {
    flex-direction: column;
    gap: 12px;
  }
  .products-container .bulk-actions .bulk-buttons {
    width: 100%;
    flex-wrap: wrap;
  }
  .table-pagination {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .table-pagination .pagination-info {
    width: 100%;
  }
  .table-pagination .pagination-controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}
.categories-page,
.tags-page,
.brands-page {
  /* .page-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 24px;
  } */
}
.categories-page .taxonomy-form-section,
.tags-page .taxonomy-form-section,
.brands-page .taxonomy-form-section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.categories-page .taxonomy-form-section h3,
.tags-page .taxonomy-form-section h3,
.brands-page .taxonomy-form-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.categories-page .taxonomy-form-section .form-row,
.tags-page .taxonomy-form-section .form-row,
.brands-page .taxonomy-form-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .categories-page .taxonomy-form-section .form-row,
  .tags-page .taxonomy-form-section .form-row,
  .brands-page .taxonomy-form-section .form-row {
    grid-template-columns: 1fr;
  }
}
.categories-page .taxonomy-form-section .form-group label,
.tags-page .taxonomy-form-section .form-group label,
.brands-page .taxonomy-form-section .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}
.categories-page .taxonomy-form-section .form-group input,
.categories-page .taxonomy-form-section .form-group textarea,
.categories-page .taxonomy-form-section .form-group select,
.tags-page .taxonomy-form-section .form-group input,
.tags-page .taxonomy-form-section .form-group textarea,
.tags-page .taxonomy-form-section .form-group select,
.brands-page .taxonomy-form-section .form-group input,
.brands-page .taxonomy-form-section .form-group textarea,
.brands-page .taxonomy-form-section .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.categories-page .taxonomy-form-section .form-group input:focus,
.categories-page .taxonomy-form-section .form-group textarea:focus,
.categories-page .taxonomy-form-section .form-group select:focus,
.tags-page .taxonomy-form-section .form-group input:focus,
.tags-page .taxonomy-form-section .form-group textarea:focus,
.tags-page .taxonomy-form-section .form-group select:focus,
.brands-page .taxonomy-form-section .form-group input:focus,
.brands-page .taxonomy-form-section .form-group textarea:focus,
.brands-page .taxonomy-form-section .form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.categories-page .taxonomy-form-section .form-group textarea,
.tags-page .taxonomy-form-section .form-group textarea,
.brands-page .taxonomy-form-section .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.categories-page .taxonomy-form-section .form-actions,
.tags-page .taxonomy-form-section .form-actions,
.brands-page .taxonomy-form-section .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.categories-page .taxonomy-form-section .thumbnail-preview,
.tags-page .taxonomy-form-section .thumbnail-preview,
.brands-page .taxonomy-form-section .thumbnail-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.categories-page .taxonomy-form-section .thumbnail-preview img,
.tags-page .taxonomy-form-section .thumbnail-preview img,
.brands-page .taxonomy-form-section .thumbnail-preview img {
  width: 150px;
  height: 150px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
}
.categories-page .taxonomy-form-section .thumbnail-preview .thumbnail-actions,
.tags-page .taxonomy-form-section .thumbnail-preview .thumbnail-actions,
.brands-page .taxonomy-form-section .thumbnail-preview .thumbnail-actions {
  display: flex;
  gap: 8px;
}
.categories-page .taxonomy-list,
.tags-page .taxonomy-list,
.brands-page .taxonomy-list {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.categories-page .taxonomy-list .data-table,
.tags-page .taxonomy-list .data-table,
.brands-page .taxonomy-list .data-table {
  width: 100%;
  border-collapse: collapse;
}
.categories-page .taxonomy-list .data-table thead,
.tags-page .taxonomy-list .data-table thead,
.brands-page .taxonomy-list .data-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.categories-page .taxonomy-list .data-table thead th,
.tags-page .taxonomy-list .data-table thead th,
.brands-page .taxonomy-list .data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}
.categories-page .taxonomy-list .data-table tbody tr,
.tags-page .taxonomy-list .data-table tbody tr,
.brands-page .taxonomy-list .data-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}
.categories-page .taxonomy-list .data-table tbody tr:hover,
.tags-page .taxonomy-list .data-table tbody tr:hover,
.brands-page .taxonomy-list .data-table tbody tr:hover {
  background: #f9fafb;
}
.categories-page .taxonomy-list .data-table tbody tr:last-child,
.tags-page .taxonomy-list .data-table tbody tr:last-child,
.brands-page .taxonomy-list .data-table tbody tr:last-child {
  border-bottom: none;
}
.categories-page .taxonomy-list .data-table tbody tr td,
.tags-page .taxonomy-list .data-table tbody tr td,
.brands-page .taxonomy-list .data-table tbody tr td {
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
}
.categories-page .taxonomy-list .data-table tbody tr td strong,
.tags-page .taxonomy-list .data-table tbody tr td strong,
.brands-page .taxonomy-list .data-table tbody tr td strong {
  font-weight: 600;
  color: #111827;
}
.categories-page .taxonomy-list .data-table tbody tr td img,
.tags-page .taxonomy-list .data-table tbody tr td img,
.brands-page .taxonomy-list .data-table tbody tr td img {
  vertical-align: middle;
  border-radius: 4px;
}

.attributes-page .field-description,
.attribute-terms-page .field-description {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}
.attributes-page .page-title,
.attribute-terms-page .page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.attributes-page,
.attribute-terms-page {
  /* .page-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 24px;
  } */
}
.attributes-page .page-header,
.attribute-terms-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.attributes-page .page-header .page-title,
.attribute-terms-page .page-header .page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.attributes-page .page-header .page-title h1,
.attribute-terms-page .page-header .page-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  line-height: 35px;
}
.attributes-page .page-header .page-title p,
.attribute-terms-page .page-header .page-title p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: #6b7280;
}
.attributes-page .page-header .page-actions,
.attribute-terms-page .page-header .page-actions {
  display: flex;
  gap: 12px;
}
.attributes-page .taxonomy-form-section,
.attribute-terms-page .taxonomy-form-section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.attributes-page .taxonomy-form-section h3,
.attribute-terms-page .taxonomy-form-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.attributes-page .taxonomy-form-section .form-row,
.attribute-terms-page .taxonomy-form-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .attributes-page .taxonomy-form-section .form-row,
  .attribute-terms-page .taxonomy-form-section .form-row {
    grid-template-columns: 1fr;
  }
}
.attributes-page .taxonomy-form-section .form-group label,
.attribute-terms-page .taxonomy-form-section .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}
.attributes-page .taxonomy-form-section .form-group label.checkbox-label,
.attribute-terms-page .taxonomy-form-section .form-group label.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.attributes-page .taxonomy-form-section .form-group label.checkbox-label input[type=checkbox],
.attribute-terms-page .taxonomy-form-section .form-group label.checkbox-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.attributes-page .taxonomy-form-section .form-group label.checkbox-label span,
.attribute-terms-page .taxonomy-form-section .form-group label.checkbox-label span {
  font-weight: 500;
}
.attributes-page .taxonomy-form-section .form-group input,
.attributes-page .taxonomy-form-section .form-group textarea,
.attributes-page .taxonomy-form-section .form-group select,
.attribute-terms-page .taxonomy-form-section .form-group input,
.attribute-terms-page .taxonomy-form-section .form-group textarea,
.attribute-terms-page .taxonomy-form-section .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.attributes-page .taxonomy-form-section .form-group input:focus,
.attributes-page .taxonomy-form-section .form-group textarea:focus,
.attributes-page .taxonomy-form-section .form-group select:focus,
.attribute-terms-page .taxonomy-form-section .form-group input:focus,
.attribute-terms-page .taxonomy-form-section .form-group textarea:focus,
.attribute-terms-page .taxonomy-form-section .form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.attributes-page .taxonomy-form-section .form-group textarea,
.attribute-terms-page .taxonomy-form-section .form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.attributes-page .taxonomy-form-section .form-group .field-description,
.attribute-terms-page .taxonomy-form-section .form-group .field-description {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}
.attributes-page .taxonomy-form-section .form-actions,
.attribute-terms-page .taxonomy-form-section .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.attributes-page .taxonomy-list,
.attribute-terms-page .taxonomy-list {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.attributes-page .taxonomy-list .data-table,
.attribute-terms-page .taxonomy-list .data-table {
  width: 100%;
  border-collapse: collapse;
}
.attributes-page .taxonomy-list .data-table thead,
.attribute-terms-page .taxonomy-list .data-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.attributes-page .taxonomy-list .data-table thead th,
.attribute-terms-page .taxonomy-list .data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
}
.attributes-page .taxonomy-list .data-table tbody tr,
.attribute-terms-page .taxonomy-list .data-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}
.attributes-page .taxonomy-list .data-table tbody tr:hover,
.attribute-terms-page .taxonomy-list .data-table tbody tr:hover {
  background: #f9fafb;
}
.attributes-page .taxonomy-list .data-table tbody tr:last-child,
.attribute-terms-page .taxonomy-list .data-table tbody tr:last-child {
  border-bottom: none;
}
.attributes-page .taxonomy-list .data-table tbody tr td,
.attribute-terms-page .taxonomy-list .data-table tbody tr td {
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
}
.attributes-page .taxonomy-list .data-table tbody tr td strong,
.attribute-terms-page .taxonomy-list .data-table tbody tr td strong {
  font-weight: 600;
  color: #111827;
}
.attributes-page .taxonomy-list .empty-state,
.attribute-terms-page .taxonomy-list .empty-state {
  text-align: center;
  padding: 60px 20px;
}
.attributes-page .taxonomy-list .empty-state .empty-icon,
.attribute-terms-page .taxonomy-list .empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.attributes-page .taxonomy-list .empty-state h3,
.attribute-terms-page .taxonomy-list .empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.attributes-page .taxonomy-list .empty-state p,
.attribute-terms-page .taxonomy-list .empty-state p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-content.modal-large {
  max-width: 900px;
}
.modal-content.modal-xl {
  max-width: 1200px;
}
.modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-content .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.modal-content .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}
.modal-content .modal-header .modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}
.modal-content .modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-start;
  }
}

.product-single-page {
  max-width: 1400px !important;
  width: 100%;
  max-height: 95vh;
  position: relative;
  padding: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .product-single-page {
    max-width: 100vw !important;
    width: 100vw !important;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}
.product-single-page .modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}
.product-single-page .modal-close-btn:hover {
  background: #f3f4f6;
  transform: rotate(90deg);
}
.product-single-page .product-single-container {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 32px;
  padding: 32px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .product-single-page .product-single-container {
    grid-template-columns: minmax(0, 350px) 1fr;
    gap: 24px;
    padding: 24px;
  }
}
@media (max-width: 1024px) {
  .product-single-page .product-single-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .product-single-page .product-single-container {
    display: block;
    padding: 16px;
    gap: 0;
  }
}
@media (max-width: 480px) {
  .product-single-page .product-single-container {
    padding: 12px;
  }
}
.product-single-page .product-image-section {
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
@media (max-width: 768px) {
  .product-single-page .product-image-section {
    margin-bottom: 20px;
  }
}
@media (max-width: 480px) {
  .product-single-page .product-image-section {
    margin-bottom: 16px;
  }
}
.product-single-page .product-image-section .featured-image {
  width: 100%;
  height: 350px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.product-single-page .product-image-section .featured-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  padding: 20px;
}
.product-single-page .product-image-section .featured-image .no-image {
  text-align: center;
  color: #9ca3af;
}
.product-single-page .product-image-section .featured-image .no-image span {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
.product-single-page .product-image-section .featured-image .no-image p {
  margin: 0;
  font-size: 14px;
}
.product-single-page .product-image-section .gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.product-single-page .product-image-section .gallery-thumbnails .thumbnail {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.product-single-page .product-image-section .gallery-thumbnails .thumbnail:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.product-single-page .product-image-section .gallery-thumbnails .thumbnail.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.product-single-page .product-image-section .gallery-thumbnails .thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.product-single-page .product-image-section .description-box {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  color: #4b5563;
  line-height: 1.5;
  font-size: 13px;
}
.product-single-page .product-image-section .description-box p {
  margin: 0 0 8px 0;
}
.product-single-page .product-image-section .description-box p:last-child {
  margin-bottom: 0;
}
.product-single-page .product-image-section .description-box ul, .product-single-page .product-image-section .description-box ol {
  margin: 8px 0;
  padding-left: 18px;
}
.product-single-page .product-image-section .description-box ul li, .product-single-page .product-image-section .description-box ol li {
  margin-bottom: 4px;
}
.product-single-page .product-image-section .description-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
}
.product-single-page .product-image-section .description-box h1, .product-single-page .product-image-section .description-box h2, .product-single-page .product-image-section .description-box h3, .product-single-page .product-image-section .description-box h4, .product-single-page .product-image-section .description-box h5, .product-single-page .product-image-section .description-box h6 {
  margin: 12px 0 6px 0;
  color: #1f2937;
  font-size: 14px;
}
.product-single-page .product-info {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  min-width: 0;
}
.product-single-page .product-info .product-header {
  margin-bottom: 16px;
}
.product-single-page .product-info .product-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.2;
  word-wrap: break-word;
}
.product-single-page .product-info .product-header .product-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.product-single-page .product-info .product-header .product-meta span {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.product-single-page .product-info .product-header .product-meta .status-tag {
  background: #d1fae5;
  color: #065f46;
  text-transform: capitalize;
}
.product-single-page .product-info .product-header .product-meta .status-tag.draft {
  background: #fef3c7;
  color: #92400e;
}
.product-single-page .product-info .product-header .product-meta .featured-tag {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}
.product-single-page .product-info .product-header .product-meta .sku-tag {
  background: #f3f4f6;
  color: #6b7280;
}
.product-single-page .product-info .product-price {
  padding: 14px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.product-single-page .product-info .product-price .sale-price {
  font-size: 28px;
  font-weight: 700;
  color: #005a87;
}
.product-single-page .product-info .product-price .regular-price {
  font-size: 18px;
  color: #9ca3af;
  text-decoration: line-through;
}
.product-single-page .product-info .product-price .discount {
  padding: 4px 10px;
  background: #7ad03a;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.product-single-page .product-info .product-price .current-price {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}
.product-single-page .product-info .product-stock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.product-single-page .product-info .product-stock .stock-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.product-single-page .product-info .product-stock .stock-badge.instock {
  background: #d1fae5;
  color: #065f46;
}
.product-single-page .product-info .product-stock .stock-badge.outofstock {
  background: #fee2e2;
  color: #991b1b;
}
.product-single-page .product-info .product-stock .stock-badge.onbackorder {
  background: #fef3c7;
  color: #92400e;
}
.product-single-page .product-info .product-stock .stock-qty {
  color: #6b7280;
  font-size: 14px;
}
.product-single-page .product-info .product-short-desc {
  padding: 20px;
  background: white;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  margin-bottom: 24px;
  color: #4b5563;
  line-height: 1.7;
}
.product-single-page .product-info .product-short-desc p {
  margin: 0 0 12px 0;
}
.product-single-page .product-info .product-short-desc p:last-child {
  margin-bottom: 0;
}
.product-single-page .product-info .product-details-table {
  margin-bottom: 24px;
  overflow-x: auto;
}
.product-single-page .product-info .product-details-table h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
}
.product-single-page .product-info .product-details-table table {
  width: 100%;
  border-collapse: collapse;
}
.product-single-page .product-info .product-details-table table tr {
  border-bottom: 1px solid #e5e7eb;
}
.product-single-page .product-info .product-details-table table tr:last-child {
  border-bottom: none;
}
.product-single-page .product-info .product-details-table table td {
  padding: 12px 0;
  font-size: 14px;
}
.product-single-page .product-info .product-details-table table td:first-child {
  color: #6b7280;
  font-weight: 600;
  width: 140px;
  padding-right: 12px;
}
.product-single-page .product-info .product-details-table table td:last-child {
  color: #1f2937;
  word-wrap: break-word;
}
.product-single-page .product-info .product-taxonomy {
  padding: 14px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 16px;
}
.product-single-page .product-info .product-taxonomy .tax-group {
  margin-bottom: 12px;
}
.product-single-page .product-info .product-taxonomy .tax-group:last-child {
  margin-bottom: 0;
}
.product-single-page .product-info .product-taxonomy .tax-group strong {
  display: block;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 6px;
}
.product-single-page .product-info .product-taxonomy .tax-group .tax-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-single-page .product-info .product-taxonomy .tax-group .tax-items .tax-item {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.product-single-page .product-info .product-taxonomy .tax-group .tax-items .tax-item.category {
  background: #dbeafe;
  color: #1e40af;
}
.product-single-page .product-info .product-taxonomy .tax-group .tax-items .tax-item.tag {
  background: #fef3c7;
  color: #92400e;
}
.product-single-page .product-info .product-actions .btn-lg {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .product-single-page .product-image-section .featured-image {
    height: 350px;
  }
}
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
  }
  .product-single-page {
    max-width: 100vw !important;
    max-height: 100vh !important;
    height: 100vh;
    border-radius: 0 !important;
  }
  .product-single-page .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.95);
  }
  .product-single-page .product-single-container {
    display: block !important;
    padding: 16px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .product-single-page .product-image-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 20px;
  }
  .product-single-page .product-image-section .featured-image {
    height: 280px;
  }
  .product-single-page .product-image-section .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
  }
  .product-single-page .product-image-section .description-box {
    padding: 14px;
    font-size: 13px;
  }
  .product-single-page .product-info {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .product-single-page .product-info .product-header h1 {
    font-size: 20px;
    line-height: 1.3;
  }
  .product-single-page .product-info .product-header .product-meta span {
    font-size: 11px;
    padding: 3px 10px;
  }
  .product-single-page .product-info .product-price {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .product-single-page .product-info .product-price .sale-price,
  .product-single-page .product-info .product-price .current-price {
    font-size: 24px;
  }
  .product-single-page .product-info .product-price .regular-price {
    font-size: 16px;
  }
  .product-single-page .product-info .product-price .discount {
    font-size: 11px;
    padding: 4px 10px;
  }
  .product-single-page .product-info .product-stock {
    flex-wrap: wrap;
  }
  .product-single-page .product-info .product-stock .stock-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  .product-single-page .product-info .product-stock .stock-qty {
    font-size: 12px;
  }
  .product-single-page .product-info .product-details-table h3 {
    font-size: 15px;
  }
  .product-single-page .product-info .product-details-table table td {
    padding: 8px 0;
    font-size: 13px;
  }
  .product-single-page .product-info .product-details-table table td:first-child {
    width: 110px;
  }
  .product-single-page .product-info .product-taxonomy {
    padding: 14px;
  }
  .product-single-page .product-info .product-taxonomy .tax-group {
    margin-bottom: 10px;
  }
  .product-single-page .product-info .product-taxonomy .tax-group strong {
    font-size: 12px;
  }
  .product-single-page .product-info .product-taxonomy .tax-group .tax-items .tax-item {
    font-size: 11px;
    padding: 4px 10px;
  }
  .product-single-page .product-info .product-actions .btn-lg {
    padding: 12px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .product-single-page .product-single-container {
    padding: 12px !important;
  }
  .product-single-page .product-image-section {
    margin-bottom: 16px;
  }
  .product-single-page .product-image-section .featured-image {
    height: 240px;
  }
  .product-single-page .product-image-section .gallery-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 6px;
  }
  .product-single-page .product-info .product-header h1 {
    font-size: 18px;
  }
  .product-single-page .product-info .product-price {
    padding: 12px;
  }
  .product-single-page .product-info .product-price .sale-price,
  .product-single-page .product-info .product-price .current-price {
    font-size: 22px;
  }
  .product-single-page .product-info .product-details-table table td:first-child {
    width: 90px;
  }
}
.bulk-editor-page {
  /* .page-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 24px;
  } */
}
.bulk-editor-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}
.bulk-editor-page .page-header .page-title h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 4px 0;
  line-height: 35px;
}
.bulk-editor-page .page-header .page-title p {
  color: #6b7280;
  font-size: 14px;
}
.bulk-editor-page .page-header .page-actions {
  display: flex;
  gap: 12px;
}
.bulk-editor-page .edit-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.bulk-editor-page .edit-mode-tabs .mode-tab {
  flex: 1;
  padding: 12px 24px;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.bulk-editor-page .edit-mode-tabs .mode-tab:hover {
  background: #f9fafb;
  color: #1f2937;
}
.bulk-editor-page .edit-mode-tabs .mode-tab.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}
.bulk-editor-page .common-fields-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}
.bulk-editor-page .common-fields-section .section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}
.bulk-editor-page .common-fields-section .section-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}
.bulk-editor-page .common-fields-section .section-header p {
  color: #6b7280;
  font-size: 14px;
}
.bulk-editor-page .common-fields-section .field-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.bulk-editor-page .common-fields-section .field-section .field-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.bulk-editor-page .common-fields-section .field-section .field-section-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
.bulk-editor-page .common-fields-section .field-section .field-section-header .toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.bulk-editor-page .common-fields-section .field-section .field-section-header .toggle-label input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.bulk-editor-page .common-fields-section .field-section .field-section-header .toggle-label span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}
.bulk-editor-page .common-fields-section .field-section .field-section-header .toggle-label:hover span {
  color: #3b82f6;
}
.bulk-editor-page .common-fields-section .field-section .btn-sm {
  margin-top: 12px;
}
.bulk-editor-page .common-fields-section .common-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group {
  transition: all 0.2s;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group.disabled {
  opacity: 0.6;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group.disabled .field-header label {
  color: #9ca3af;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group .field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group .field-header label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=text],
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=number],
.bulk-editor-page .common-fields-section .common-fields-grid .field-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  background: white;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=text]:focus,
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=number]:focus,
.bulk-editor-page .common-fields-section .common-fields-grid .field-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=text]:disabled,
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=number]:disabled,
.bulk-editor-page .common-fields-section .common-fields-grid .field-group select:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=text]::-moz-placeholder, .bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=number]::-moz-placeholder, .bulk-editor-page .common-fields-section .common-fields-grid .field-group select::-moz-placeholder {
  color: #9ca3af;
}
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=text]::placeholder,
.bulk-editor-page .common-fields-section .common-fields-grid .field-group input[type=number]::placeholder,
.bulk-editor-page .common-fields-section .common-fields-grid .field-group select::placeholder {
  color: #9ca3af;
}
.bulk-editor-page .common-fields-section .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.bulk-editor-page .common-fields-section .toggle-switch input[type=checkbox] {
  opacity: 0;
  width: 0;
  height: 0;
}
.bulk-editor-page .common-fields-section .toggle-switch input[type=checkbox]:checked + .toggle-slider {
  background-color: #3b82f6;
}
.bulk-editor-page .common-fields-section .toggle-switch input[type=checkbox]:checked + .toggle-slider:before {
  transform: translateX(20px);
}
.bulk-editor-page .common-fields-section .toggle-switch input[type=checkbox]:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.bulk-editor-page .common-fields-section .toggle-switch .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 24px;
}
.bulk-editor-page .common-fields-section .toggle-switch .toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.bulk-editor-page .common-fields-section .apply-section {
  text-align: center;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
  margin-top: 24px;
}
.bulk-editor-page .common-fields-section .apply-section .btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}
.bulk-editor-page .individual-edit-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}
.bulk-editor-page .individual-edit-section .section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}
.bulk-editor-page .individual-edit-section .section-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}
.bulk-editor-page .individual-edit-section .section-header p {
  color: #6b7280;
  font-size: 14px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  position: relative;
  max-height: 70vh; /* Add max height to enable vertical scrolling */
  /* Smooth scrolling */
  scroll-behavior: smooth;
  /* Custom scrollbar styling */
}
.bulk-editor-page .individual-edit-section .products-table-wrapper::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper {
  /* Firefox scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  /* Drag hint overlay */
}
.bulk-editor-page .individual-edit-section .products-table-wrapper::before {
  content: "💡 Tip: Click and drag to scroll";
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper:hover::before {
  opacity: 1;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1400px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 20;
  /* First column sticky left */
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 25;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr:hover {
  background: #f9fafb;
  /* Ensure sticky column matches hover background */
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr:hover td:first-child {
  background: #f9fafb;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr:last-child {
  border-bottom: none;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td {
  padding: 12px 16px;
  vertical-align: middle;
  /* First column sticky left */
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 15;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .product-cell, .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .order-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .product-cell .product-thumb, .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .order-cell .product-thumb {
  width: 40px;
  height: 40px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .product-cell .product-name, .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .order-cell .product-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=date], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=datetime-local], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=datetime], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=email], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=month], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=number], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=password], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=search], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=tel], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=text], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=time], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=url], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=week], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td textarea {
  padding: 0 8px;
  line-height: 2;
  min-width: 210px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=color], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=date], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=datetime-local], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=datetime], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=email], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=month], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=number], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=password], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=search], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=tel], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=text], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=time], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=url], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td input[type=week], .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td select, .bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td textarea {
  min-width: 210px;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .table-input,
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .table-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s;
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .table-input:focus,
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .table-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .table-input:disabled,
.bulk-editor-page .individual-edit-section .products-table-wrapper .bulk-edit-table tbody tr td .table-select:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}
.bulk-editor-page .individual-edit-section .apply-section {
  margin-top: 15px;
  text-align: center;
}
.bulk-editor-page .bulk-edit-summary {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.bulk-editor-page .bulk-edit-summary .summary-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}
.bulk-editor-page .bulk-edit-summary .summary-card .summary-stats {
  display: flex;
  gap: 32px;
}
.bulk-editor-page .bulk-edit-summary .summary-card .summary-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bulk-editor-page .bulk-edit-summary .summary-card .summary-stats .stat .stat-label {
  font-size: 13px;
  color: #6b7280;
}
.bulk-editor-page .bulk-edit-summary .summary-card .summary-stats .stat .stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

@media (max-width: 768px) {
  .bulk-editor-page .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .bulk-editor-page .page-header .page-actions {
    width: 100%;
  }
  .bulk-editor-page .page-header .page-actions button {
    flex: 1;
  }
  .bulk-editor-page .edit-mode-tabs {
    flex-direction: column;
  }
  .bulk-editor-page .edit-mode-tabs .mode-tab {
    width: 100%;
  }
  .bulk-editor-page .common-fields-section .common-fields-grid {
    grid-template-columns: 1fr;
  }
}
.bulk-limit-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.1), 0 2px 4px -1px rgba(245, 158, 11, 0.06);
}
.bulk-limit-notice .limit-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}
.bulk-limit-notice .limit-notice-content .notice-icon {
  font-size: 32px;
  flex-shrink: 0;
  margin-top: 4px;
}
.bulk-limit-notice .limit-notice-content .notice-text {
  flex: 1;
}
.bulk-limit-notice .limit-notice-content .notice-text h3 {
  color: #92400e;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}
.bulk-limit-notice .limit-notice-content .notice-text p {
  color: #b45309;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px 0;
}
.bulk-limit-notice .limit-notice-content .notice-text p:last-child {
  margin-bottom: 0;
}
.bulk-limit-notice .limit-notice-content .notice-text p strong {
  font-weight: 600;
  color: #92400e;
}
.bulk-limit-notice .limit-notice-content .notice-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.bulk-limit-notice .limit-notice-content .notice-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
  min-width: 140px;
}
.bulk-limit-notice .limit-notice-content .notice-actions .btn.btn-primary {
  background: #dc2626;
  color: white;
}
.bulk-limit-notice .limit-notice-content .notice-actions .btn.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}
.bulk-limit-notice .limit-notice-content .notice-actions .btn.btn-secondary {
  background: white;
  color: #92400e;
  border: 1px solid #d97706;
}
.bulk-limit-notice .limit-notice-content .notice-actions .btn.btn-secondary:hover {
  background: #f9fafb;
  border-color: #b45309;
}
@media (max-width: 768px) {
  .bulk-limit-notice .limit-notice-content {
    flex-direction: column;
    gap: 12px;
  }
  .bulk-limit-notice .limit-notice-content .notice-actions {
    flex-direction: row;
    width: 100%;
  }
  .bulk-limit-notice .limit-notice-content .notice-actions .btn {
    flex: 1;
    min-width: auto;
  }
}

.custom-rows-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.custom-rows-input .custom-input {
  width: 120px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}
.custom-rows-input .custom-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.custom-rows-input .btn-xs {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.selected-info {
  color: #3b82f6;
  font-weight: 500;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6b7280;
}

.premium-disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}
.premium-disabled:hover {
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Batch Progress Modal Styles */
.batch-progress-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.batch-progress-modal {
  max-width: 500px;
  width: 90%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.batch-progress-modal .modal-header {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.batch-progress-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.batch-progress-modal .modal-header .modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.batch-progress-modal .modal-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.batch-progress-modal .modal-body {
  padding: 24px;
}
.batch-progress-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.batch-progress-content .progress-info {
  margin-bottom: 24px;
}
.batch-progress-content .progress-info .operation-type {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.batch-progress-content .progress-info .operation-type .operation-icon {
  font-size: 24px;
}
.batch-progress-content .progress-info .operation-type .operation-text {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
}
.batch-progress-content .progress-info .progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.batch-progress-content .progress-info .progress-stats .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #edf2f7;
  border-radius: 6px;
}
.batch-progress-content .progress-info .progress-stats .stat-item .stat-label {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}
.batch-progress-content .progress-info .progress-stats .stat-item .stat-value {
  font-size: 14px;
  color: #2d3748;
  font-weight: 600;
}
.batch-progress-content .progress-bar-container {
  margin-bottom: 24px;
}
.batch-progress-content .progress-bar-container .progress-bar {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.batch-progress-content .progress-bar-container .progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38a169 0%, #48bb78 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
  position: relative;
}
.batch-progress-content .progress-bar-container .progress-bar .progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
.batch-progress-content .progress-bar-container .progress-percentage {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
}
.batch-progress-content .completion-message,
.batch-progress-content .processing-message {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}
.batch-progress-content .completion-message {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
}
.batch-progress-content .completion-message .success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.batch-progress-content .completion-message .success-content h4 {
  color: #2f855a;
  margin: 0 0 8px 0;
  font-size: 18px;
}
.batch-progress-content .completion-message .success-content p {
  color: #38a169;
  margin: 0;
  font-size: 14px;
}
.batch-progress-content .processing-message {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
}
.batch-progress-content .processing-message .spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
}
.batch-progress-content .processing-message p {
  color: #2c5282;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.batch-progress-content .processing-message p small {
  color: #4299e1;
  font-size: 12px;
}

.batch-error {
  text-align: center;
  padding: 20px;
  background: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 8px;
}
.batch-error .error-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.batch-error .error-content h4 {
  color: #c53030;
  margin: 0 0 8px 0;
  font-size: 18px;
}
.batch-error .error-content p {
  color: #e53e3e;
  margin: 0;
  font-size: 14px;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
/* Mobile responsive */
@media (max-width: 768px) {
  .batch-progress-modal {
    margin: 20px;
    max-width: none;
  }
  .batch-progress-modal .modal-header {
    padding: 16px 20px;
  }
  .batch-progress-modal .modal-header h3 {
    font-size: 16px;
  }
  .batch-progress-modal .modal-body {
    padding: 20px;
  }
  .batch-progress-modal .batch-progress-content .progress-info .progress-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .batch-progress-modal .batch-progress-content .progress-percentage {
    font-size: 16px;
  }
  .batch-progress-modal .batch-progress-content .completion-message,
  .batch-progress-modal .batch-progress-content .processing-message {
    padding: 16px;
  }
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .batch-progress-modal {
    background: #2d3748;
  }
  .batch-progress-modal .modal-header {
    background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
  }
  .batch-progress-modal .modal-footer {
    border-color: #4a5568;
  }
  .batch-progress-modal .batch-progress-content .progress-info .operation-type {
    background: #1a202c;
    border-color: #4a5568;
  }
  .batch-progress-modal .batch-progress-content .progress-info .operation-type .operation-text {
    color: #e2e8f0;
  }
  .batch-progress-modal .batch-progress-content .progress-info .progress-stats .stat-item {
    background: #1a202c;
  }
  .batch-progress-modal .batch-progress-content .progress-info .progress-stats .stat-item .stat-label {
    color: #a0aec0;
  }
  .batch-progress-modal .batch-progress-content .progress-info .progress-stats .stat-item .stat-value {
    color: #e2e8f0;
  }
  .batch-progress-modal .batch-progress-content .progress-bar-container .progress-bar {
    background: #4a5568;
  }
  .batch-progress-modal .batch-progress-content .progress-bar-container .progress-percentage {
    color: #e2e8f0;
  }
  .batch-progress-modal .batch-progress-content .completion-message {
    background: rgba(56, 161, 105, 0.1);
    border-color: #38a169;
  }
  .batch-progress-modal .batch-progress-content .completion-message .success-content h4 {
    color: #68d391;
  }
  .batch-progress-modal .batch-progress-content .completion-message .success-content p {
    color: #9ae6b4;
  }
  .batch-progress-modal .batch-progress-content .processing-message {
    background: rgba(49, 130, 206, 0.1);
    border-color: #3182ce;
  }
  .batch-progress-modal .batch-progress-content .processing-message p {
    color: #90cdf4;
  }
  .batch-progress-modal .batch-progress-content .processing-message p small {
    color: #63b3ed;
  }
  .batch-progress-modal .batch-error {
    background: rgba(197, 48, 48, 0.1);
    border-color: #e53e3e;
  }
  .batch-progress-modal .batch-error .error-content h4 {
    color: #fc8181;
  }
  .batch-progress-modal .batch-error .error-content p {
    color: #feb2b2;
  }
}
.customers-page,
.customer-editor-page {
  /* .page-container {
      max-width: 100%;
      padding: 0 24px;
  } */
}
.customers-page .filters-card,
.customer-editor-page .filters-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.customers-page .filters-row,
.customer-editor-page .filters-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.customers-page .filter-group,
.customer-editor-page .filter-group {
  flex: 1;
  min-width: 200px;
}
.customers-page .filter-input,
.customers-page .filter-select,
.customer-editor-page .filter-input,
.customer-editor-page .filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.customers-page .filter-input:focus,
.customers-page .filter-select:focus,
.customer-editor-page .filter-input:focus,
.customer-editor-page .filter-select:focus {
  outline: none;
  border-color: #1976d2;
}
.customers-page .data-table-card,
.customer-editor-page .data-table-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.customers-page .table-responsive,
.customer-editor-page .table-responsive {
  overflow-x: auto;
}
.customers-page .data-table,
.customer-editor-page .data-table {
  width: 100%;
  border-collapse: collapse;
}
.customers-page .data-table thead,
.customer-editor-page .data-table thead {
  background: #f5f5f5;
}
.customers-page .data-table thead th,
.customer-editor-page .data-table thead th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}
.customers-page .data-table thead th.actions-column,
.customer-editor-page .data-table thead th.actions-column {
  text-align: center;
  width: 120px;
}
.customers-page .data-table tbody tr,
.customer-editor-page .data-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.customers-page .data-table tbody tr:hover,
.customer-editor-page .data-table tbody tr:hover {
  background: #fafafa;
}
.customers-page .data-table tbody td,
.customer-editor-page .data-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: #333;
}
.customers-page .data-table tbody td.empty-state,
.customer-editor-page .data-table tbody td.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.customers-page .data-table tbody td.empty-state .empty-icon,
.customer-editor-page .data-table tbody td.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.customers-page .data-table tbody td.empty-state p,
.customer-editor-page .data-table tbody td.empty-state p {
  color: #999;
  font-size: 16px;
  margin: 0;
}
.customers-page .data-table tbody td.actions-column,
.customer-editor-page .data-table tbody td.actions-column {
  text-align: center;
}
.customers-page .customer-cell,
.customer-editor-page .customer-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.customers-page .customer-avatar,
.customer-editor-page .customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.customers-page .customer-avatar-img,
.customer-editor-page .customer-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
}
.customers-page .customer-info .customer-name,
.customer-editor-page .customer-info .customer-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}
.customers-page .customer-info .customer-username,
.customer-editor-page .customer-info .customer-username {
  font-size: 12px;
  color: #999;
}
.customers-page .role-badge,
.customer-editor-page .role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #e3f2fd;
  color: #1976d2;
  text-transform: capitalize;
}
.customers-page .action-buttons,
.customer-editor-page .action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.customers-page .btn-icon,
.customer-editor-page .btn-icon {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  transition: background 0.2s;
}
.customers-page .btn-icon:hover,
.customer-editor-page .btn-icon:hover {
  background: #f5f5f5;
}
.customers-page .btn-icon.btn-danger:hover,
.customer-editor-page .btn-icon.btn-danger:hover {
  background: #ffebee;
}
.customers-page .pagination,
.customer-editor-page .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}
.customers-page .pagination .pagination-info,
.customer-editor-page .pagination .pagination-info {
  font-size: 14px;
  color: #666;
}
.customers-page .loading-state,
.customer-editor-page .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}
.customers-page .loading-state p,
.customer-editor-page .loading-state p {
  color: #999;
  font-size: 16px;
  margin: 0;
}

.customer-editor-page .btn-back {
  background: none;
  border: none;
  color: #1976d2;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 8px;
  display: inline-block;
}
.customer-editor-page .btn-back:hover {
  text-decoration: underline;
}
.customer-editor-page .editor-grid {
  display: grid;
  gap: 24px;
}
.customer-editor-page .editor-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.customer-editor-page .section-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.customer-editor-page .section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.customer-editor-page .section-content {
  padding: 24px;
}
.customer-editor-page .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.customer-editor-page .form-row:last-child {
  margin-bottom: 0;
}
.customer-editor-page .form-group {
  margin-bottom: 16px;
}
.customer-editor-page .form-group:last-child {
  margin-bottom: 0;
}
.customer-editor-page .form-group label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}
.customer-editor-page .form-group input,
.customer-editor-page .form-group select,
.customer-editor-page .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  background: white;
}
.customer-editor-page .form-group input:focus,
.customer-editor-page .form-group select:focus,
.customer-editor-page .form-group textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}
.customer-editor-page .form-group input:disabled,
.customer-editor-page .form-group select:disabled,
.customer-editor-page .form-group textarea:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}
.customer-editor-page .form-group small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

@media (max-width: 1024px) {
  .customers-page .page-container,
  .customer-editor-page .page-container {
    padding: 0 16px;
  }
  .customers-page .filters-row,
  .customer-editor-page .filters-row {
    flex-direction: column;
  }
  .customers-page .filters-row .filter-group,
  .customer-editor-page .filters-row .filter-group {
    width: 100%;
  }
  .customers-page .customer-editor-page .form-row,
  .customer-editor-page .customer-editor-page .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .customers-page .data-table thead th,
  .customers-page .data-table tbody td {
    padding: 12px 8px;
    font-size: 13px;
  }
  .customers-page .data-table .customer-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .customers-page .action-buttons {
    flex-direction: column;
  }
}
.customer-cv-modal {
  max-width: 900px !important;
}
.customer-cv-modal .customer-cv .cv-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  color: white;
}
.customer-cv-modal .customer-cv .cv-header .cv-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 0.3);
}
.customer-cv-modal .customer-cv .cv-header .cv-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 0.3);
}
.customer-cv-modal .customer-cv .cv-header .cv-header-info {
  flex: 1;
}
.customer-cv-modal .customer-cv .cv-header .cv-header-info h2 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
}
.customer-cv-modal .customer-cv .cv-header .cv-header-info .cv-username {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 12px 0;
}
.customer-cv-modal .customer-cv .cv-header .cv-header-info .cv-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.customer-cv-modal .customer-cv .cv-header .cv-header-info .cv-badges .cv-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.customer-cv-modal .customer-cv .cv-header .cv-header-info .cv-badges .cv-badge.role {
  background: rgba(255, 255, 255, 0.3);
  text-transform: capitalize;
}
.customer-cv-modal .customer-cv .cv-section {
  margin-bottom: 24px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.customer-cv-modal .customer-cv .cv-section .cv-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.customer-cv-modal .customer-cv .cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.customer-cv-modal .customer-cv .cv-grid .cv-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.customer-cv-modal .customer-cv .cv-grid .cv-item .cv-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.customer-cv-modal .customer-cv .cv-grid .cv-item .cv-value {
  font-size: 15px;
  color: #1f2937;
  font-weight: 500;
}
.customer-cv-modal .customer-cv .cv-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.customer-cv-modal .customer-cv .cv-stats .cv-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}
.customer-cv-modal .customer-cv .cv-stats .cv-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.customer-cv-modal .customer-cv .cv-stats .cv-stat-card .cv-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.customer-cv-modal .customer-cv .cv-stats .cv-stat-card .cv-stat-info {
  flex: 1;
}
.customer-cv-modal .customer-cv .cv-stats .cv-stat-card .cv-stat-info .cv-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 4px;
}
.customer-cv-modal .customer-cv .cv-stats .cv-stat-card .cv-stat-info .cv-stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.customer-cv-modal .customer-cv .cv-address {
  background: white;
  padding: 16px;
  border-radius: 6px;
}
.customer-cv-modal .customer-cv .cv-address p {
  margin: 0 0 4px 0;
  color: #4b5563;
  line-height: 1.6;
}
.customer-cv-modal .customer-cv .cv-address p:last-child {
  margin-bottom: 0;
}
.customer-cv-modal .customer-cv .cv-address p strong {
  color: #1f2937;
}

@media (max-width: 768px) {
  .customer-cv-modal .customer-cv .cv-header {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .customer-cv-modal .customer-cv .cv-header .cv-avatar {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
  .customer-cv-modal .customer-cv .cv-header .cv-header-info h2 {
    font-size: 24px;
  }
  .customer-cv-modal .customer-cv .cv-header .cv-header-info .cv-badges {
    justify-content: center;
  }
  .customer-cv-modal .customer-cv .cv-stats {
    grid-template-columns: 1fr;
  }
  .customer-cv-modal .customer-cv .cv-grid {
    grid-template-columns: 1fr;
  }
}
/* Settings Page Styles */
.settings .loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.settings .loading-center p {
  color: #718096;
  font-size: 16px;
}
.settings .settings-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
}
@media (max-width: 1024px) {
  .settings .settings-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.settings .settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 1024px) {
  .settings .settings-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}
.settings .settings-tabs .tab-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  border: 1px solid #e2e8f0;
}
@media (max-width: 1024px) {
  .settings .settings-tabs .tab-button {
    flex-shrink: 0;
    min-width: 140px;
    justify-content: center;
    text-align: center;
  }
}
.settings .settings-tabs .tab-button .tab-icon {
  font-size: 16px;
}
.settings .settings-tabs .tab-button .tab-label {
  font-weight: 500;
  color: #4a5568;
  font-size: 14px;
}
.settings .settings-tabs .tab-button:hover:not(.disabled) {
  background-color: #f7fafc;
  border-color: #cbd5e0;
}
.settings .settings-tabs .tab-button.active {
  background-color: #3182ce;
  border-color: #3182ce;
  color: white;
}
.settings .settings-tabs .tab-button.active .tab-label {
  color: white;
}
.settings .settings-tabs .tab-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #bde4ff;
}
.settings .settings-tabs .tab-button.disabled .tab-label {
  color: #a0aec0;
}
.settings .settings-content .tab-panel .card {
  width: 100%;
  min-width: unset;
  max-width: unset;
}
.settings .settings-content .tab-panel .card .card-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings .settings-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.settings .setting-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}
.settings .setting-item:last-child {
  border-bottom: none;
}
.settings .setting-item .setting-info {
  flex: 1;
}
.settings .setting-item .setting-info .setting-label {
  font-weight: 600;
  color: #1a202c;
  font-size: 16px;
  margin-bottom: 4px;
  display: block;
}
.settings .setting-item .setting-info .setting-description {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.settings .setting-item .setting-control {
  flex-shrink: 0;
}
.settings .setting-item .setting-control select {
  min-width: 150px;
}
@media (max-width: 768px) {
  .settings .setting-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .settings .setting-item .setting-control {
    align-self: flex-start;
  }
}
@media (max-width: 768px) {
  .settings .sheet-names-grid {
    grid-template-columns: 1fr;
  }
}
.settings .sheet-names-grid label {
  font-size: 12px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 4px;
  display: block;
}
.settings .help-text {
  margin-top: 6px;
  font-size: 12px;
  color: #718096;
  line-height: 1.4;
}
.settings .help-text strong {
  color: #4a5568;
  background-color: #f7fafc;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

/* Enhanced Switch Styles for Settings */
.settings .switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.settings .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.settings .switch input:checked + .slider {
  background-color: #3182ce;
}
.settings .switch input:checked + .slider:before {
  transform: translateX(24px);
}
.settings .switch input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}
.settings .switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.settings .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: 0.3s;
  border-radius: 28px;
}
.settings .switch .slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings .page-header .page-actions {
    flex-wrap: wrap;
  }
  .settings .settings-layout {
    gap: 12px;
  }
  .settings .settings-tabs .tab-button {
    padding: 8px 12px;
    min-width: 120px;
  }
  .settings .settings-tabs .tab-button .tab-label {
    font-size: 13px;
  }
  .settings .setting-item {
    padding: 12px 0;
  }
}
/* Google Sheets Setup Styles */
.settings .connection-success .success-info {
  margin-bottom: 16px;
}
.settings .connection-success .success-info .service-account-info {
  color: #4a5568;
  font-size: 14px;
  margin-top: 8px;
}
.settings .connection-setup {
  text-align: center;
}
.settings .connection-setup .setup-info {
  margin-bottom: 24px;
}
.settings .connection-setup .setup-info h4 {
  font-size: 20px;
  color: #1a202c;
  margin-bottom: 12px;
}
.settings .connection-setup .setup-info .benefits-list {
  margin-top: 16px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.settings .connection-setup .setup-info .benefits-list .benefit-item {
  padding: 4px 0;
  color: #4a5568;
}
.settings .sheets-grid .sheet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f7fafc;
}
.settings .sheets-grid .sheet-item .sheet-info {
  flex: 1;
}
.settings .sheets-grid .sheet-item .sheet-info .sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.settings .sheets-grid .sheet-item .sheet-info .sheet-header h4 {
  margin: 0;
  font-size: 16px;
  color: #1a202c;
}
.settings .sheets-grid .sheet-item .sheet-info .sheet-details p {
  margin: 4px 0;
  font-size: 14px;
  color: #4a5568;
}

/* Wizard Modal Styles */
.wizard-modal {
  max-width: 700px;
  width: 100%;
}
.wizard-modal .wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 20px;
}
.wizard-modal .wizard-steps .wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.wizard-modal .wizard-steps .wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 1;
}
.wizard-modal .wizard-steps .wizard-step.completed:not(:last-child)::after {
  background-color: #38a169;
}
.wizard-modal .wizard-steps .wizard-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.wizard-modal .wizard-steps .wizard-step .step-title {
  font-size: 12px;
  color: #718096;
  text-align: center;
  font-weight: 500;
}
.wizard-modal .wizard-steps .wizard-step.active .step-icon {
  background-color: #3182ce;
  color: white;
}
.wizard-modal .wizard-steps .wizard-step.active .step-title {
  color: #3182ce;
  font-weight: 600;
}
.wizard-modal .wizard-steps .wizard-step.completed .step-icon {
  background-color: #38a169;
  color: white;
}
.wizard-modal .wizard-steps .wizard-step.completed .step-title {
  color: #38a169;
}
.wizard-modal .wizard-content {
  min-height: 400px;
}
.wizard-modal .wizard-content .wizard-step-content h4 {
  font-size: 20px;
  color: #1a202c;
  margin-bottom: 12px;
}
.wizard-modal .wizard-content .wizard-step-content p {
  color: #4a5568;
  margin-bottom: 24px;
  line-height: 1.6;
}
.wizard-modal .upload-area {
  margin: 24px 0;
}
.wizard-modal .upload-area .upload-dropzone {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.wizard-modal .upload-area .upload-dropzone:hover:not(.uploading) {
  border-color: #3182ce;
  background-color: #f7fafc;
}
.wizard-modal .upload-area .upload-dropzone.drag-over {
  border-color: #3182ce;
  background-color: #ebf8ff;
  transform: scale(1.02);
}
.wizard-modal .upload-area .upload-dropzone.uploading {
  cursor: not-allowed;
  opacity: 0.7;
}
.wizard-modal .upload-area .upload-dropzone.uploading .spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}
.wizard-modal .upload-area .upload-dropzone .upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}
.wizard-modal .upload-area .upload-dropzone .upload-text p {
  margin: 4px 0;
}
.wizard-modal .success-message {
  background-color: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.wizard-modal .success-message p {
  margin: 8px 0 0 0;
  color: #2f855a;
}
.wizard-modal .help-section {
  background-color: #f7fafc;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}
.wizard-modal .help-section h5 {
  color: #1a202c;
  margin-bottom: 12px;
}
.wizard-modal .help-section ol {
  margin: 0;
  padding-left: 20px;
}
.wizard-modal .help-section ol li {
  margin: 8px 0;
  color: #4a5568;
}
.wizard-modal .help-section ol li a {
  color: #3182ce;
  text-decoration: none;
}
.wizard-modal .help-section ol li a:hover {
  text-decoration: underline;
}
.wizard-modal .sheet-configs {
  margin-top: 24px;
}
.wizard-modal .sheet-configs h5 {
  color: #1a202c;
  margin-bottom: 16px;
}
.wizard-modal .sheet-configs .sheet-config-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.wizard-modal .sheet-configs .sheet-config-item .config-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wizard-modal .sheet-configs .sheet-config-item .config-header .config-label {
  font-weight: 500;
  color: #1a202c;
}
.wizard-modal .sheet-configs .sheet-config-item .config-details {
  margin-left: 64px;
}
.wizard-modal .sheet-configs .sheet-config-item .config-details input {
  width: 100%;
  max-width: 300px;
}
.wizard-modal .access-instructions .instruction-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.wizard-modal .access-instructions .instruction-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #3182ce;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.wizard-modal .access-instructions .instruction-step .step-content {
  flex: 1;
}
.wizard-modal .access-instructions .instruction-step .step-content p {
  margin: 0 0 8px 0;
}
.wizard-modal .access-instructions .instruction-step .step-content .copy-field {
  display: flex;
  gap: 8px;
}
.wizard-modal .access-instructions .instruction-step .step-content .copy-field input {
  flex: 1;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 12px;
}
.wizard-modal .quick-access {
  text-align: center;
  margin-top: 24px;
}
.wizard-modal .setup-summary {
  background-color: #f7fafc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.wizard-modal .setup-summary .summary-item {
  margin-bottom: 16px;
}
.wizard-modal .setup-summary .summary-item:last-child {
  margin-bottom: 0;
}
.wizard-modal .setup-summary .summary-item strong {
  color: #1a202c;
}
.wizard-modal .setup-summary .summary-item .enabled-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.wizard-modal .test-connection-section {
  text-align: center;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f7fafc;
}
.wizard-modal .test-connection-section button {
  margin-bottom: 8px;
}
.wizard-modal .test-connection-section p {
  margin: 0;
  font-size: 14px;
}
.wizard-modal .wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Responsive Design for Wizard */
@media (max-width: 768px) {
  .wizard-modal {
    margin: 10px;
    max-width: none;
  }
  .wizard-modal .wizard-steps {
    padding: 0 10px;
  }
  .wizard-modal .wizard-steps .wizard-step .step-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .wizard-modal .wizard-steps .wizard-step .step-title {
    font-size: 10px;
  }
  .wizard-modal .access-instructions .instruction-step {
    flex-direction: column;
    gap: 8px;
  }
  .wizard-modal .access-instructions .instruction-step .step-number {
    align-self: flex-start;
  }
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .settings .connection-setup .setup-info h4 {
    color: #e2e8f0;
  }
  .settings .sheets-grid .sheet-item {
    background-color: #2d3748;
    border-color: #4a5568;
  }
  .settings .sheets-grid .sheet-item .sheet-info .sheet-header h4 {
    color: #e2e8f0;
  }
  .settings .settings-tabs .tab-button {
    background-color: #2d3748;
    border-color: #4a5568;
  }
  .settings .settings-tabs .tab-button .tab-label {
    color: #a0aec0;
  }
  .settings .settings-tabs .tab-button:hover:not(.disabled) {
    background-color: #4a5568;
    border-color: #718096;
  }
  .settings .settings-tabs .tab-button.active {
    background-color: #3182ce;
    border-color: #3182ce;
  }
  .settings .settings-tabs .tab-button.active .tab-label {
    color: white;
  }
  .settings .settings-tabs .tab-button.disabled {
    background-color: #1a202c;
  }
  .settings .settings-tabs .tab-button.disabled .tab-label {
    color: #4a5568;
  }
  .settings .setting-item {
    border-color: #4a5568;
  }
  .settings .setting-item .setting-info .setting-label {
    color: #e2e8f0;
  }
  .settings .setting-item .setting-info .setting-description {
    color: #a0aec0;
  }
  .settings .help-text {
    color: #a0aec0;
  }
  .settings .help-text strong {
    color: #e2e8f0;
    background-color: #2d3748;
  }
  .settings .switch .slider {
    background-color: #4a5568;
  }
  .wizard-modal {
    background-color: #2d3748;
  }
  .wizard-modal .wizard-steps .wizard-step:not(:last-child)::after {
    background-color: #4a5568;
  }
  .wizard-modal .wizard-steps .wizard-step.completed:not(:last-child)::after {
    background-color: #38a169;
  }
  .wizard-modal .wizard-steps .wizard-step .step-icon {
    background-color: #4a5568;
  }
  .wizard-modal .wizard-steps .wizard-step .step-title {
    color: #a0aec0;
  }
  .wizard-modal .wizard-step-content h4 {
    color: #e2e8f0;
  }
  .wizard-modal .wizard-step-content p {
    color: #a0aec0;
  }
  .wizard-modal .upload-dropzone {
    border-color: #4a5568;
  }
  .wizard-modal .upload-dropzone:hover {
    border-color: #3182ce;
    background-color: #2d3748;
  }
  .wizard-modal .success-message {
    background-color: rgba(56, 161, 105, 0.1);
    border-color: #38a169;
  }
  .wizard-modal .help-section,
  .wizard-modal .setup-summary {
    background-color: #1a202c;
  }
  .wizard-modal .sheet-config-item {
    background-color: #1a202c;
    border-color: #4a5568;
  }
}
/* Order Sync Configuration */
.order-sync-config .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.order-sync-config .modal-content {
  background: white;
  border-radius: 8px;
  width: 40%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.order-sync-config .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}
.order-sync-config .modal-header h2 {
  margin: 0;
  color: #333;
}
.order-sync-config .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
}
.order-sync-config .modal-header .modal-close:hover {
  color: #333;
}
.order-sync-config .modal-body {
  padding: 1.5rem;
}
.order-sync-config .modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
}
.order-sync-config .config-section {
  margin-bottom: 2rem;
}
.order-sync-config .config-section:last-child {
  margin-bottom: 0;
}
.order-sync-config .config-section h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}
.order-sync-config .config-section .section-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.order-sync-config .fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.order-sync-config .field-item {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.2s ease;
}
.order-sync-config .field-item.enabled {
  border-color: #007cba;
  background: #f8f9fa;
}
.order-sync-config .field-item.disabled {
  opacity: 0.6;
}
.order-sync-config .field-item .field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.order-sync-config .field-item .field-label input[type=checkbox] {
  margin: 0;
}
.order-sync-config .field-item .field-label .field-name {
  font-weight: 500;
  color: #333;
}
.order-sync-config .field-item .field-label .field-required {
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
}
.order-sync-config .field-item .field-type {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.order-sync-config .fields-summary {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 1rem;
}
.order-sync-config .config-actions,
.order-sync-config .sync-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.order-sync-config .sync-form .form-group {
  margin-bottom: 1.5rem;
}
.order-sync-config .sync-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}
.order-sync-config .sync-form .form-group .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.order-sync-config .sync-form .form-group .form-control:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}
.order-sync-config .sync-form .form-group .form-help {
  display: block;
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.85rem;
}
.order-sync-config .preview-table {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}
.order-sync-config .preview-table .preview-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}
.order-sync-config .preview-table .preview-header .preview-column {
  flex: 1;
  padding: 0.75rem;
  font-weight: 600;
  border-right: 1px solid #e5e5e5;
}
.order-sync-config .preview-table .preview-header .preview-column:last-child {
  border-right: none;
}
.order-sync-config .preview-table .preview-row {
  display: flex;
}
.order-sync-config .preview-table .preview-row .preview-cell {
  flex: 1;
  padding: 0.75rem;
  color: #666;
  font-style: italic;
  border-right: 1px solid #e5e5e5;
}
.order-sync-config .preview-table .preview-row .preview-cell:last-child {
  border-right: none;
}
.order-sync-config .loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.order-sync-config .loading-center .spinner {
  margin-bottom: 1rem;
}

/* Order Sync Button in Settings */
.order-sync-section .sync-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #007cba, #005a87);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.order-sync-section .sync-button:hover {
  background: linear-gradient(135deg, #005a87, #007cba);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}
.order-sync-section .sync-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.order-sync-section .sync-button .spinner {
  width: 16px;
  height: 16px;
}

/* Syn
c Actions Grid */
.sync-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.sync-action-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}
.sync-action-card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.sync-action-card .sync-action-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.sync-action-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}
.sync-action-card p {
  font-size: 14px;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.5;
}
.sync-action-card .btn {
  width: 100%;
}

/* Product Sync Config Modal */
.product-sync-config .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.product-sync-config .modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.product-sync-config .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.product-sync-config .modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}
.product-sync-config .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.product-sync-config .modal-header .modal-close:hover {
  background: #f7fafc;
  color: #2d3748;
}
.product-sync-config .modal-body {
  padding: 24px;
}
.product-sync-config .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
}
.product-sync-config .config-section {
  margin-bottom: 32px;
}
.product-sync-config .config-section:last-child {
  margin-bottom: 0;
}
.product-sync-config .config-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}
.product-sync-config .config-section .section-description {
  font-size: 14px;
  color: #718096;
  margin-bottom: 20px;
  line-height: 1.6;
}
.product-sync-config .sync-form .form-group {
  margin-bottom: 20px;
}
.product-sync-config .sync-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 8px;
}
.product-sync-config .sync-form .form-group .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.product-sync-config .sync-form .form-group .form-control:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}
.product-sync-config .sync-form .form-group .form-help {
  display: block;
  font-size: 12px;
  color: #a0aec0;
  margin-top: 6px;
}
.product-sync-config .sync-form .sync-actions {
  margin-top: 24px;
}

.upcoming-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.setting-item.upcoming-feature {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed !important;
}
.setting-item.upcoming-feature * {
  cursor: not-allowed !important;
}
.setting-item.upcoming-feature input,
.setting-item.upcoming-feature select,
.setting-item.upcoming-feature textarea,
.setting-item.upcoming-feature button,
.setting-item.upcoming-feature .switch {
  pointer-events: none;
}
.setting-item.upcoming-feature .setting-label {
  display: flex;
  align-items: center;
}

.card.upcoming-feature {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
}
.card.upcoming-feature .card-header h3 {
  display: flex;
  align-items: center;
}
.card.upcoming-feature .card-content {
  pointer-events: none;
}
.card.upcoming-feature input,
.card.upcoming-feature select,
.card.upcoming-feature textarea,
.card.upcoming-feature button,
.card.upcoming-feature .switch {
  pointer-events: none;
  cursor: not-allowed;
}

/* 
Plugins Grid Styles */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .plugins-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .plugins-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.plugin-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  position: relative;
}
.plugin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.plugin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}
.plugin-card:hover::before {
  transform: scaleX(1);
}
.plugin-card:hover .plugin-icon img {
  transform: scale(1.1);
}
.plugin-card .plugin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid #f3f4f6;
}
.plugin-card .plugin-icon {
  flex-shrink: 0;
}
.plugin-card .plugin-icon img {
  width: 64px;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.plugin-card .plugin-title {
  flex: 1;
  min-width: 0;
  margin-left: 70px;
  margin-top: 10px;
}
.plugin-card .plugin-title h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.plugin-card .plugin-title .plugin-tagline {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}
.plugin-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 20px;
}
.plugin-card .card-content .plugin-description {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  flex: 1;
  min-height: 80px;
}
.plugin-card .card-content .plugin-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.plugin-card .card-content .plugin-features .feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}
.plugin-card .card-content .btn-block {
  width: 100%;
  padding: 12px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  transition: all 0.3s ease;
}
.plugin-card .card-content .btn-block:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.plugin-card .card-content .plugin-author {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
  font-weight: 500;
}
@media (max-width: 768px) {
  .plugin-card .plugin-header {
    padding: 16px;
    gap: 12px;
  }
  .plugin-card .plugin-icon img {
    width: 56px;
    height: 56px;
    padding: 6px;
  }
  .plugin-card .plugin-title h3 {
    font-size: 15px;
  }
  .plugin-card .plugin-title .plugin-tagline {
    font-size: 11px;
  }
  .plugin-card .card-content {
    padding: 0 16px 16px;
    gap: 12px;
  }
  .plugin-card .card-content .plugin-description {
    font-size: 13px;
    min-height: auto;
  }
  .plugin-card .card-content .plugin-features {
    gap: 6px;
    margin: 4px 0;
  }
  .plugin-card .card-content .plugin-features .feature-badge {
    padding: 3px 8px;
    font-size: 10px;
  }
  .plugin-card .card-content .btn-block {
    padding: 10px;
    font-size: 13px;
  }
  .plugin-card .card-content .plugin-author {
    font-size: 11px;
  }
}

/* Bulk Edit Optimization Card Styles */
.settings .optimization-preview {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.settings .optimization-preview .preview-info h4 {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings .optimization-preview .preview-info .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .settings .optimization-preview .preview-info .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.settings .optimization-preview .preview-info .features-grid .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.settings .optimization-preview .preview-info .features-grid .feature-item:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.settings .optimization-preview .preview-info .features-grid .feature-item .feature-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.settings .optimization-preview .preview-info .features-grid .feature-item .feature-content {
  flex: 1;
}
.settings .optimization-preview .preview-info .features-grid .feature-item .feature-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}
.settings .optimization-preview .preview-info .features-grid .feature-item .feature-content p {
  font-size: 13px;
  color: #718096;
  margin: 0;
  line-height: 1.4;
}
.settings .optimization-preview .preview-info .optimization-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 8px;
  margin-top: 16px;
}
.settings .optimization-preview .preview-info .optimization-note .note-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.settings .optimization-preview .preview-info .optimization-note .note-content {
  flex: 1;
}
.settings .optimization-preview .preview-info .optimization-note .note-content strong {
  color: #2b6cb0;
  font-weight: 600;
}
.settings .optimization-preview .preview-info .optimization-note .note-content {
  color: #2c5282;
  font-size: 14px;
  line-height: 1.5;
}
.settings .input-group {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}
.settings .input-group .form-control {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.settings .input-group .form-control:focus {
  box-shadow: none;
}
.settings .input-group .input-group-text {
  padding: 10px 12px;
  background: #f7fafc;
  border-left: 1px solid #e2e8f0;
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}
.settings .input-group:focus-within {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Dark mode support for bulk optimization */
@media (prefers-color-scheme: dark) {
  .settings .optimization-preview {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
  }
  .settings .optimization-preview .preview-info h4 {
    color: #e2e8f0;
  }
  .settings .optimization-preview .preview-info .features-grid .feature-item {
    background: #1a202c;
    border-color: #4a5568;
  }
  .settings .optimization-preview .preview-info .features-grid .feature-item .feature-content strong {
    color: #e2e8f0;
  }
  .settings .optimization-preview .preview-info .features-grid .feature-item .feature-content p {
    color: #a0aec0;
  }
  .settings .optimization-preview .preview-info .optimization-note {
    background: rgba(49, 130, 206, 0.1);
    border-color: #3182ce;
  }
  .settings .optimization-preview .preview-info .optimization-note .note-content {
    color: #90cdf4;
  }
  .settings .optimization-preview .preview-info .optimization-note .note-content strong {
    color: #63b3ed;
  }
  .settings .input-group {
    border-color: #4a5568;
    background: #2d3748;
  }
  .settings .input-group .form-control {
    background: #2d3748;
    color: #e2e8f0;
  }
  .settings .input-group .form-control::-moz-placeholder {
    color: #a0aec0;
  }
  .settings .input-group .form-control::placeholder {
    color: #a0aec0;
  }
  .settings .input-group .input-group-text {
    background: #1a202c;
    border-color: #4a5568;
    color: #a0aec0;
  }
  .settings .input-group:focus-within {
    border-color: #4299e1;
  }
}
/* Additional styling for threshold input */
.settings .optimization-preview .features-grid .feature-item:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.settings .setting-item .input-group {
  max-width: 200px;
}
.settings .setting-item .input-group .form-control {
  text-align: center;
  font-weight: 600;
}
.settings .setting-item .input-group .form-control:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}
.settings .setting-item .input-group .input-group-text {
  font-size: 12px;
  font-weight: 500;
  color: #718096;
}

/* Dark mode support for new inputs */
@media (prefers-color-scheme: dark) {
  .settings .setting-item .input-group .form-control {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
  }
  .settings .setting-item .input-group .form-control::-moz-placeholder {
    color: #a0aec0;
  }
  .settings .setting-item .input-group .form-control::placeholder {
    color: #a0aec0;
  }
  .settings .setting-item .input-group .form-control:focus {
    background: #2d3748;
    border-color: #4299e1;
  }
  .settings .setting-item .input-group .input-group-text {
    background: #1a202c;
    border-color: #4a5568;
    color: #a0aec0;
  }
}
/* WYSIWYG Editor Styles */
.wysiwyg-editor {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.wysiwyg-editor .wysiwyg-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.wysiwyg-editor .wysiwyg-toolbar .format-select {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: white;
  font-size: 12px;
  margin-right: 8px;
  min-width: 120px;
}
.wysiwyg-editor .wysiwyg-toolbar .format-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #374151;
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-btn:active {
  background: #e5e7eb;
  transform: translateY(1px);
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-btn:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-btn[title=Bold] {
  font-weight: 900;
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-btn[title=Italic] {
  font-style: italic;
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-btn[title=Underline] {
  text-decoration: underline;
}
.wysiwyg-editor .wysiwyg-toolbar .toolbar-separator {
  width: 1px;
  height: 20px;
  background: #d1d5db;
  margin: 0 4px;
}
.wysiwyg-editor .wysiwyg-content {
  padding: 16px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  outline: none;
}
.wysiwyg-editor .wysiwyg-content:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  font-style: italic;
}
.wysiwyg-editor .wysiwyg-content h1, .wysiwyg-editor .wysiwyg-content h2, .wysiwyg-editor .wysiwyg-content h3, .wysiwyg-editor .wysiwyg-content h4, .wysiwyg-editor .wysiwyg-content h5, .wysiwyg-editor .wysiwyg-content h6 {
  margin: 16px 0 8px 0;
  font-weight: 600;
  line-height: 1.3;
}
.wysiwyg-editor .wysiwyg-content h1 {
  font-size: 24px;
  color: #1f2937;
}
.wysiwyg-editor .wysiwyg-content h2 {
  font-size: 20px;
  color: #1f2937;
}
.wysiwyg-editor .wysiwyg-content h3 {
  font-size: 18px;
  color: #374151;
}
.wysiwyg-editor .wysiwyg-content h4 {
  font-size: 16px;
  color: #374151;
}
.wysiwyg-editor .wysiwyg-content h5 {
  font-size: 14px;
  color: #4b5563;
}
.wysiwyg-editor .wysiwyg-content h6 {
  font-size: 12px;
  color: #4b5563;
}
.wysiwyg-editor .wysiwyg-content p {
  margin: 8px 0;
}
.wysiwyg-editor .wysiwyg-content ul, .wysiwyg-editor .wysiwyg-content ol {
  margin: 8px 0;
  padding-left: 24px;
}
.wysiwyg-editor .wysiwyg-content ul li, .wysiwyg-editor .wysiwyg-content ol li {
  margin: 4px 0;
}
.wysiwyg-editor .wysiwyg-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #3b82f6;
  background: #f8fafc;
  font-style: italic;
  color: #4b5563;
}
.wysiwyg-editor .wysiwyg-content a {
  color: #3b82f6;
  text-decoration: underline;
}
.wysiwyg-editor .wysiwyg-content a:hover {
  color: #1d4ed8;
}
.wysiwyg-editor .wysiwyg-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}
.wysiwyg-editor .wysiwyg-content video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 8px 0;
}
.wysiwyg-editor .wysiwyg-content iframe {
  max-width: 100%;
  border-radius: 4px;
  margin: 8px 0;
}
.wysiwyg-editor .wysiwyg-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.wysiwyg-editor .wysiwyg-content table th, .wysiwyg-editor .wysiwyg-content table td {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  text-align: left;
}
.wysiwyg-editor .wysiwyg-content table th {
  background: #f9fafb;
  font-weight: 600;
}
.wysiwyg-editor .wysiwyg-content code {
  background: #f3f4f6;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 12px;
}
.wysiwyg-editor .wysiwyg-content pre {
  background: #f3f4f6;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}
.wysiwyg-editor .wysiwyg-content pre code {
  background: none;
  padding: 0;
}
.wysiwyg-editor .wysiwyg-content:focus {
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.wysiwyg-editor.wysiwyg-sm .wysiwyg-content {
  min-height: 120px;
  padding: 12px;
  font-size: 13px;
}
.wysiwyg-editor.wysiwyg-sm .wysiwyg-toolbar {
  padding: 6px 8px;
}
.wysiwyg-editor.wysiwyg-sm .wysiwyg-toolbar .toolbar-btn {
  width: 24px;
  height: 24px;
  font-size: 11px;
}
.wysiwyg-editor.wysiwyg-lg .wysiwyg-content {
  min-height: 300px;
  padding: 20px;
  font-size: 15px;
}
.wysiwyg-editor.wysiwyg-error {
  border-color: #ef4444;
}
.wysiwyg-editor.wysiwyg-error .wysiwyg-toolbar {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}
.wysiwyg-editor.wysiwyg-disabled {
  opacity: 0.6;
  pointer-events: none;
}
.wysiwyg-editor.wysiwyg-disabled .wysiwyg-content {
  background: #f9fafb;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .wysiwyg-editor .wysiwyg-toolbar {
    padding: 6px 8px;
    gap: 2px;
  }
  .wysiwyg-editor .wysiwyg-toolbar .format-select {
    min-width: 100px;
    font-size: 11px;
  }
  .wysiwyg-editor .wysiwyg-toolbar .toolbar-btn {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .wysiwyg-editor .wysiwyg-toolbar .toolbar-separator {
    height: 16px;
    margin: 0 2px;
  }
  .wysiwyg-editor .wysiwyg-content {
    padding: 12px;
    font-size: 13px;
  }
}
@media (prefers-color-scheme: dark) {
  .wysiwyg-editor {
    border-color: #374151;
    background: #1f2937;
  }
  .wysiwyg-editor .wysiwyg-toolbar {
    background: #111827;
    border-bottom-color: #374151;
  }
  .wysiwyg-editor .wysiwyg-toolbar .format-select {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  .wysiwyg-editor .wysiwyg-toolbar .toolbar-btn {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  .wysiwyg-editor .wysiwyg-toolbar .toolbar-btn:hover {
    background: #374151;
    border-color: #4b5563;
  }
  .wysiwyg-editor .wysiwyg-content {
    background: #1f2937;
    color: #f9fafb;
  }
  .wysiwyg-editor .wysiwyg-content:empty::before {
    color: #6b7280;
  }
  .wysiwyg-editor .wysiwyg-content h1, .wysiwyg-editor .wysiwyg-content h2, .wysiwyg-editor .wysiwyg-content h3, .wysiwyg-editor .wysiwyg-content h4, .wysiwyg-editor .wysiwyg-content h5, .wysiwyg-editor .wysiwyg-content h6 {
    color: #f9fafb;
  }
  .wysiwyg-editor .wysiwyg-content blockquote {
    background: #111827;
    color: #d1d5db;
  }
  .wysiwyg-editor .wysiwyg-content code {
    background: #111827;
  }
  .wysiwyg-editor .wysiwyg-content pre {
    background: #111827;
  }
}
.star-rating {
  display: inline-flex;
  gap: 2px;
}
.star-rating .star.filled {
  color: #fbbf24;
}
.star-rating .star.empty {
  color: #e5e7eb;
}

.reviews-page {
  /* .page-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 24px;
  } */
}
.reviews-page .reviews-disabled-notice {
  background: #fef3cd;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}
.reviews-page .reviews-disabled-notice .notice-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.reviews-page .reviews-disabled-notice h3 {
  color: #92400e;
  margin-bottom: 12px;
  font-size: 20px;
}
.reviews-page .reviews-disabled-notice p {
  color: #78350f;
  margin-bottom: 20px;
}
.reviews-page .reviews-disabled-notice .enable-instructions {
  background: white;
  border-radius: 6px;
  padding: 20px;
  margin: 20px auto;
  text-align: left;
  max-width: 600px;
}
.reviews-page .reviews-disabled-notice .enable-instructions h4 {
  margin-bottom: 12px;
  color: #1f2937;
}
.reviews-page .reviews-disabled-notice .enable-instructions ol {
  margin: 12px 0;
  padding-left: 20px;
  color: #4b5563;
}
.reviews-page .reviews-disabled-notice .enable-instructions ol li {
  margin-bottom: 8px;
}
.reviews-page .reviews-disabled-notice .enable-instructions ol strong {
  color: #1f2937;
}
.reviews-page .reviews-disabled-notice .quick-enable {
  margin-top: 20px;
}
.reviews-page .reviews-disabled-notice .quick-enable h4 {
  margin-bottom: 12px;
  color: #1f2937;
}
.reviews-page .reviews-disabled-notice .quick-enable .btn {
  padding: 12px 24px;
  font-size: 16px;
}
.reviews-page .review-settings-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.reviews-page .review-settings-card h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: #1f2937;
}
.reviews-page .review-settings-card .settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.reviews-page .review-settings-card .setting-item .checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.reviews-page .review-settings-card .setting-item .checkbox-label:hover {
  background-color: #f9fafb;
}
.reviews-page .review-settings-card .setting-item .checkbox-label input[type=checkbox] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}
.reviews-page .review-settings-card .setting-item .checkbox-label input[type=checkbox]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.reviews-page .review-settings-card .setting-item .checkbox-label span {
  color: #4b5563;
  font-size: 14px;
}
.reviews-page .reviews-search-filters {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.reviews-page .reviews-search-filters .search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}
.reviews-page .reviews-search-filters .search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9ca3af;
  pointer-events: none;
}
.reviews-page .reviews-search-filters .search-box .search-input {
  width: 100%;
  padding: 10px 40px 10px 44px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}
.reviews-page .reviews-search-filters .search-box .search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.reviews-page .reviews-search-filters .search-box .search-input::-moz-placeholder {
  color: #9ca3af;
}
.reviews-page .reviews-search-filters .search-box .search-input::placeholder {
  color: #9ca3af;
}
.reviews-page .reviews-search-filters .search-box .clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 14px;
  transition: all 0.2s;
}
.reviews-page .reviews-search-filters .search-box .clear-search:hover {
  background: #e5e7eb;
  color: #1f2937;
}
.reviews-page .reviews-search-filters .filter-select {
  min-width: 160px;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.reviews-page .reviews-search-filters .filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.reviews-page .reviews-search-filters .filter-select:hover {
  border-color: #d1d5db;
}
.reviews-page .reviews-search-filters .reset-filters {
  white-space: nowrap;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reviews-page .reviews-search-filters .active-filters-info {
  padding: 8px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.reviews-page .review-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
}
.reviews-page .review-filters .filter-tab {
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reviews-page .review-filters .filter-tab:hover {
  color: #3b82f6;
  background-color: #f3f4f6;
}
.reviews-page .review-filters .filter-tab.active {
  border-bottom-color: #3b82f6;
  color: #3b82f6;
  font-weight: 600;
}
.reviews-page .review-filters .filter-tab .count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}
.reviews-page .review-filters .filter-tab .count-badge.badge-all {
  background: #10b981;
  color: white;
}
.reviews-page .review-filters .filter-tab .count-badge.badge-pending {
  background: #f59e0b;
  color: white;
}
.reviews-page .review-filters .filter-tab .count-badge.badge-approved {
  background: #3b82f6;
  color: white;
}
.reviews-page .review-filters .filter-tab .count-badge.badge-spam {
  background: #ef4444;
  color: white;
}
.reviews-page .review-filters .filter-tab .count-badge.badge-trash {
  background: #6b7280;
  color: white;
}
.reviews-page .reviews-list .empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.reviews-page .reviews-list .empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.reviews-page .reviews-list .empty-state h3 {
  color: #6b7280;
  margin-bottom: 8px;
}
.reviews-page .reviews-list .empty-state p {
  color: #9ca3af;
}
.reviews-page .review-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}
.reviews-page .review-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.reviews-page .review-item .review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}
.reviews-page .review-item .review-header .review-meta {
  flex: 1;
}
.reviews-page .review-item .review-header .review-meta .review-rating {
  font-size: 18px;
  margin-bottom: 8px;
}
.reviews-page .review-item .review-header .review-meta .review-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.reviews-page .review-item .review-header .review-meta .review-author strong {
  color: #1f2937;
  font-size: 15px;
}
.reviews-page .review-item .review-header .review-meta .review-author .verified-badge {
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.reviews-page .review-item .review-header .review-meta .review-author .status-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.reviews-page .review-item .review-header .review-meta .review-author .status-badge.status-approved {
  background: #d1fae5;
  color: #065f46;
}
.reviews-page .review-item .review-header .review-meta .review-author .status-badge.status-hold {
  background: #fef3c7;
  color: #92400e;
}
.reviews-page .review-item .review-header .review-meta .review-author .status-badge.status-spam {
  background: #fee2e2;
  color: #991b1b;
}
.reviews-page .review-item .review-header .review-meta .review-author .status-badge.status-trash {
  background: #f3f4f6;
  color: #4b5563;
}
.reviews-page .review-item .review-header .review-meta .review-date {
  color: #9ca3af;
  font-size: 13px;
}
.reviews-page .review-item .review-header .review-actions {
  display: flex;
  gap: 8px;
}
.reviews-page .review-item .review-header .review-actions .btn {
  min-width: 36px;
  height: 36px;
  padding: 6px 12px;
}
.reviews-page .review-item .review-preview {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
}
.reviews-page .review-item .review-preview .review-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reviews-page .review-item .review-product {
  padding: 8px 16px;
  background: #f9fafb;
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid #f3f4f6;
}
.reviews-page .review-item .review-product a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.reviews-page .review-item .review-product a:hover {
  text-decoration: underline;
}
.reviews-page .review-item .review-expanded {
  padding: 16px;
  border-top: 1px solid #f3f4f6;
}
.reviews-page .review-item .review-expanded .review-content {
  background: #f9fafb;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  color: #374151;
  line-height: 1.6;
  border-left: 3px solid #3b82f6;
}
.reviews-page .review-item .review-expanded .review-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.reviews-page .review-item .review-expanded .review-controls .status-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reviews-page .review-item .review-expanded .reply-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.reviews-page .review-item .review-expanded .reply-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}
.reviews-page .review-item .review-expanded .reply-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.reviews-page .review-item .review-expanded .reply-form .reply-actions {
  display: flex;
  gap: 8px;
}
.reviews-page .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.reviews-page .modal-overlay .modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease;
}
.reviews-page .modal-overlay .modal-content.modal-large {
  max-width: 800px;
}
.reviews-page .modal-overlay .modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.reviews-page .modal-overlay .modal-content .modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
}
.reviews-page .modal-overlay .modal-content .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.reviews-page .modal-overlay .modal-content .modal-header .modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.reviews-page .modal-overlay .modal-content .modal-body {
  padding: 20px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section .rating-display {
  color: white;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section .rating-display .rating-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section .rating-display .rating-stars {
  font-size: 32px;
  margin-bottom: 8px;
  letter-spacing: 4px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section .rating-display .rating-stars .star-rating .star {
  font-size: 32px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section .rating-display .rating-stars .star-rating .star.filled {
  color: #fbbf24;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section .rating-display .rating-stars .star-rating .star.empty {
  color: rgba(255, 255, 255, 0.4);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section .rating-display .rating-label {
  font-size: 14px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section:has(.rating-5) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section:has(.rating-4) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section:has(.rating-3) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section:has(.rating-2) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-rating-section:has(.rating-1) {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-text {
  margin-bottom: 24px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-text p {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
  color: #374151;
  font-size: 15px;
  margin: 0;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item.detail-item-reviewer .reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #e5e7eb;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info {
  flex: 1;
  min-width: 0;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value {
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value a {
  color: #3b82f6;
  text-decoration: none;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value a:hover {
  text-decoration: underline;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value .verified-badge {
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value .status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value .status-badge.status-approved {
  background: #d1fae5;
  color: #065f46;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value .status-badge.status-hold {
  background: #fef3c7;
  color: #92400e;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value .status-badge.status-spam {
  background: #fee2e2;
  color: #991b1b;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-review-details .detail-item .detail-info .detail-value .status-badge.status-trash {
  background: #f3f4f6;
  color: #4b5563;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-reply-section {
  border-top: 2px solid #e5e7eb;
  padding-top: 24px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-reply-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-reply-section .reply-form textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s;
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-reply-section .reply-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.reviews-page .modal-overlay .modal-content .modal-body .review-modal-content .modal-reply-section .reply-form .reply-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.reviews-page .modal-overlay .modal-content .modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.reviews-page .modal-overlay .modal-content .delete-review-info {
  background: #f9fafb;
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
  border-left: 3px solid #ef4444;
}
.reviews-page .modal-overlay .modal-content .delete-review-info .review-rating {
  font-size: 16px;
  margin-bottom: 8px;
}
.reviews-page .modal-overlay .modal-content .delete-review-info .review-excerpt {
  color: #6b7280;
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
}
.reviews-page .modal-overlay .modal-content .warning-text {
  color: #dc2626;
  font-weight: 500;
  margin-top: 16px;
  font-size: 14px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.reviews-page .chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.reviews-page .chip.chip-success {
  background: #d1fae5;
  color: #065f46;
}
.reviews-page .chip.chip-warning {
  background: #fef3c7;
  color: #92400e;
}
.reviews-page .chip.chip-danger {
  background: #fee2e2;
  color: #991b1b;
}

.reviews-table-container {
  background: white;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

.reviews-table {
  width: 100%;
  border-collapse: collapse;
}
.reviews-table thead {
  background: #f9fafb;
}
.reviews-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}
.reviews-table tbody .review-row {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
  min-height: 60px;
}
.reviews-table tbody .review-row:hover {
  background: #f9fafb;
}
.reviews-table tbody .review-row td {
  padding: 12px 16px;
  font-size: 13px;
  vertical-align: middle;
}
.reviews-table tbody .review-row .author-cell .author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviews-table tbody .review-row .author-cell .author-info .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.reviews-table tbody .review-row .author-cell .author-info .author-details {
  flex: 1;
  min-width: 0;
}
.reviews-table tbody .review-row .author-cell .author-info .author-details .author-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 13px;
}
.reviews-table tbody .review-row .author-cell .author-info .author-details .author-email {
  font-size: 12px;
  color: #9ca3af;
}
.reviews-table tbody .review-row .author-cell .author-info .expand-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
  transition: all 0.2s;
}
.reviews-table tbody .review-row .author-cell .author-info .expand-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.reviews-table tbody .review-row .author-cell .author-info .author-avatar {
  flex-shrink: 0;
}
.reviews-table tbody .review-row .rating-cell {
  font-size: 16px;
}
.reviews-table tbody .review-row .rating-cell .star-rating {
  display: inline-flex;
  gap: 2px;
}
.reviews-table tbody .review-row .rating-cell .star-rating .star {
  font-size: 18px;
}
.reviews-table tbody .review-row .rating-cell .star-rating .star.filled {
  color: #fbbf24;
}
.reviews-table tbody .review-row .rating-cell .star-rating .star.empty {
  color: #e5e7eb;
}
.reviews-table tbody .review-row .review-cell {
  max-width: 300px;
}
.reviews-table tbody .review-row .review-cell .review-preview {
  color: #4b5563;
  line-height: 1.4;
}
.reviews-table tbody .review-row .product-cell a {
  color: #3b82f6;
  text-decoration: none;
}
.reviews-table tbody .review-row .product-cell a:hover {
  text-decoration: underline;
}
.reviews-table tbody .review-row .date-cell {
  color: #6b7280;
  white-space: nowrap;
}
.reviews-table tbody .review-row .actions-cell {
  min-height: 60px;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper {
  position: relative;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper .action-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #6b7280;
  transition: all 0.2s;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper .action-menu-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper .action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 140px;
  margin-top: 4px;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper .action-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper .action-menu button:hover {
  background: #f3f4f6;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper .action-menu button.danger {
  color: #dc2626;
}
.reviews-table tbody .review-row .actions-cell .action-menu-wrapper .action-menu .menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}
.reviews-table tbody .expanded-row {
  background: #f9fafb;
}
.reviews-table tbody .expanded-row td {
  padding: 16px !important;
}
.reviews-table tbody .expanded-row .expanded-content .review-full-text {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 12px;
}
.reviews-table tbody .expanded-row .expanded-content .verified-badge {
  background: #10b981;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
}
.pagination .pagination-info {
  font-size: 14px;
  color: #6b7280;
}

/* Import modal styles */
.premium-modal-container {
  background: rgba(79, 70, 229, 0.05);
  border-radius: 12px;
  padding: 20px 16px;
  margin: 0 auto 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.premium-header {
  text-align: center;
  margin-bottom: 20px;
}
.premium-header .premium-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 50%;
  margin-bottom: 10px;
}
.premium-header .premium-crown span {
  font-size: 24px;
}
.premium-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
  color: #1a1a1a;
}
.premium-header p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #4a4a4a;
}
.premium-header p strong {
  font-weight: 600;
  color: #4f46e5;
}

.premium-offer {
  background: rgba(79, 70, 229, 0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.premium-offer__badge {
  gap: 6px;
  background: rgba(79, 70, 229, 0.15);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #4f46e5;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 70%;
  margin: 0 auto 12px;
}
.premium-offer__badge span {
  font-size: 16px;
  color: #4f46e5;
}
.premium-offer__text {
  margin: 12px 0 0 0;
  font-size: 15px;
  text-align: center;
  color: #1a1a1a;
}
.premium-offer__text strong {
  color: #4f46e5;
  font-weight: 700;
  font-size: 16px;
}

.premium-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(79, 70, 229, 0.1);
  padding: 8px 10px;
  border-radius: 6px;
  min-width: 52px;
}

.countdown-number {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
  color: #4f46e5;
}

.countdown-label {
  font-size: 10px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.countdown-separator {
  font-size: 18px;
  font-weight: 700;
  color: #4f46e5;
  padding: 0 2px;
}

.premium-cta {
  width: 100%;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}
.premium-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.35);
  background: #4338ca;
}
.premium-cta:active {
  transform: translateY(0);
}
.premium-cta span:last-child {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.premium-cta:hover span:last-child {
  transform: translateX(4px);
}

.premium-basic-offer {
  background: rgba(79, 70, 229, 0.08);
  border-radius: 10px;
  padding: 20px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.premium-basic-offer .premium-value-props {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.premium-basic-offer .value-prop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}
.premium-basic-offer .value-prop .value-icon {
  font-size: 24px;
  margin-top: 2px;
  flex-shrink: 0;
}
.premium-basic-offer .value-prop .value-content {
  flex: 1;
}
.premium-basic-offer .value-prop .value-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1a1a1a;
  line-height: 1.3;
}
.premium-basic-offer .value-prop .value-content p {
  font-size: 13px;
  margin: 0;
  color: #4a4a4a;
  line-height: 1.4;
}
.premium-basic-offer .premium-offer-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.15);
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 12px;
}
.premium-basic-offer .premium-offer-highlight .offer-badge {
  font-size: 12px;
  font-weight: 500;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.premium-basic-offer .premium-offer-highlight .offer-text {
  font-size: 16px;
  font-weight: 700;
  color: #4f46e5;
}

.premium-highlights {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  gap: 12px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.highlight-item span:first-child {
  font-size: 22px;
}
.highlight-item span:last-child {
  font-size: 11px;
  text-align: center;
  color: #4a4a4a;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .premium-modal-container {
    padding: 16px 12px;
    max-width: 95%;
  }
  .premium-header {
    margin-bottom: 16px;
  }
  .premium-header .premium-crown {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }
  .premium-header .premium-crown span {
    font-size: 20px;
  }
  .premium-header h2 {
    font-size: 20px;
  }
  .premium-header p {
    font-size: 13px;
  }
  .premium-offer {
    padding: 14px;
    margin-bottom: 16px;
  }
  .premium-offer__badge {
    font-size: 11px;
    padding: 5px 10px;
    max-width: 80%;
  }
  .premium-offer__badge span {
    font-size: 14px;
  }
  .premium-offer__text {
    font-size: 14px;
  }
  .premium-offer__text strong {
    font-size: 15px;
  }
  .premium-basic-offer {
    padding: 16px 12px;
    margin-bottom: 16px;
  }
  .premium-basic-offer .premium-value-props {
    gap: 12px;
    margin-bottom: 12px;
  }
  .premium-basic-offer .value-prop {
    gap: 10px;
    padding: 10px;
  }
  .premium-basic-offer .value-prop .value-icon {
    font-size: 20px;
  }
  .premium-basic-offer .value-prop .value-content h4 {
    font-size: 14px;
  }
  .premium-basic-offer .value-prop .value-content p {
    font-size: 12px;
  }
  .premium-basic-offer .premium-offer-highlight {
    padding: 8px 12px;
    gap: 6px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-badge {
    font-size: 11px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-text {
    font-size: 15px;
  }
  .countdown-item {
    min-width: 48px;
    padding: 6px 8px;
  }
  .countdown-number {
    font-size: 18px;
  }
  .countdown-label {
    font-size: 9px;
  }
  .countdown-separator {
    font-size: 16px;
  }
  .premium-cta {
    padding: 12px 20px;
    font-size: 15px;
    margin-bottom: 16px;
  }
  .premium-cta span:last-child {
    font-size: 16px;
  }
  .premium-highlights {
    gap: 8px;
    margin-bottom: 12px;
  }
  .highlight-item {
    gap: 4px;
  }
  .highlight-item span:first-child {
    font-size: 20px;
  }
  .highlight-item span:last-child {
    font-size: 10px;
  }
}
@media (max-width: 400px) {
  .premium-modal-container {
    padding: 14px 10px;
  }
  .premium-header h2 {
    font-size: 18px;
  }
  .countdown-item {
    min-width: 42px;
    padding: 5px 6px;
  }
  .countdown-number {
    font-size: 16px;
  }
  .countdown-separator {
    font-size: 14px;
    padding: 0 1px;
  }
  .premium-cta {
    font-size: 14px;
    padding: 11px 18px;
  }
  .highlight-item span:first-child {
    font-size: 18px;
  }
  .premium-basic-offer {
    padding: 12px 8px;
  }
  .premium-basic-offer .value-prop {
    gap: 8px;
    padding: 8px;
  }
  .premium-basic-offer .value-prop .value-icon {
    font-size: 18px;
  }
  .premium-basic-offer .value-prop .value-content h4 {
    font-size: 13px;
  }
  .premium-basic-offer .value-prop .value-content p {
    font-size: 11px;
  }
  .premium-basic-offer .premium-offer-highlight {
    padding: 6px 10px;
    gap: 4px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-badge {
    font-size: 10px;
  }
  .premium-basic-offer .premium-offer-highlight .offer-text {
    font-size: 14px;
  }
}
/* Modal Overlay */
.price-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* Modal Wrapper */
.price-modal-wrapper {
  position: fixed;
  z-index: 10000;
}
.price-modal-wrapper.price-modal-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}
.price-modal-wrapper.price-modal-top-right {
  top: 20px;
  right: 20px;
  max-width: 400px;
}
.price-modal-wrapper.price-modal-bottom-right {
  bottom: 20px;
  right: 20px;
  max-width: 400px;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Premium Modal Container */
.price-modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 100%;
  position: relative;
}
.price-modal-container.mobile {
  max-width: 95vw;
  margin: 10px;
}

.price-modal-header {
  position: relative;
  padding: 0;
}
.price-modal-header .price-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  z-index: 1;
  transition: all 0.2s ease;
}
.price-modal-header .price-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

.price-modal-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 0 0 16px 16px;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
}

.price-modal-guarantee-badge {
  background: #22c55e;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.price-modal-guarantee-text {
  flex: 1;
}
.price-modal-guarantee-text h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}
.price-modal-guarantee-text p {
  margin: 0;
  font-size: 12px;
  color: #15803d;
  line-height: 1.4;
}

/* Confirmation Modal */
.price-modal-confirmation {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  position: relative;
}

.price-modal-confirmation .price-modal-header {
  padding: 24px 24px 16px;
  text-align: center;
}
.price-modal-confirmation .price-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}
.price-modal-confirmation .price-modal-header p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
.price-modal-confirmation .price-modal-header .price-modal-close {
  top: 16px;
  right: 16px;
}

.price-modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
}

.price-modal-decline {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.price-modal-decline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.price-modal-confirm {
  flex: 1;
  padding: 12px 20px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.price-modal-confirm:hover {
  background: #4338ca;
  transform: translateY(-1px);
}
.price-modal-confirm .arrow-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}
.price-modal-confirm:hover .arrow-icon {
  transform: translateX(2px);
}

/* Toast Modal */
.price-modal-toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 400px;
  position: relative;
  border-left: 4px solid;
}
.price-modal-toast.price-border-left-success {
  border-left-color: #22c55e;
}
.price-modal-toast.price-border-left-info {
  border-left-color: #3b82f6;
}
.price-modal-toast.price-border-left-warning {
  border-left-color: #f59e0b;
}
.price-modal-toast.price-border-left-error {
  border-left-color: #ef4444;
}

.price-modal-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.price-modal-toast-icon.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.price-modal-toast-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.price-modal-toast-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.price-modal-toast-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.price-modal-toast-content {
  flex: 1;
}
.price-modal-toast-content h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
}
.price-modal-toast-content h4.success {
  color: #166534;
}
.price-modal-toast-content h4.info {
  color: #1e40af;
}
.price-modal-toast-content h4.warning {
  color: #92400e;
}
.price-modal-toast-content h4.error {
  color: #dc2626;
}
.price-modal-toast-content p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.price-modal-toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.price-modal-toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .price-modal-wrapper.price-modal-center {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    max-width: none;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .price-modal-container {
    max-width: none;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }
  .price-modal-wrapper.price-modal-top-right,
  .price-modal-wrapper.price-modal-bottom-right {
    left: 10px;
    right: 10px;
    max-width: none;
  }
  .price-modal-wrapper.price-modal-top-right {
    top: 10px;
  }
  .price-modal-wrapper.price-modal-bottom-right {
    bottom: 10px;
  }
  .price-modal-confirmation {
    max-width: none;
    width: 100%;
  }
  .price-modal-actions {
    flex-direction: column;
  }
  .price-modal-actions .price-modal-decline,
  .price-modal-actions .price-modal-confirm {
    flex: none;
  }
}
.card-header p {
  font-size: 12px;
  font-weight: 400;
  color: #333;
  margin-bottom: 12px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background-color: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background-color: #f7fafc;
  color: #a0aec0;
  cursor: not-allowed;
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
}
.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-group .help-text {
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}
.form-group .error-text {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
}

/* Chips/Tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}
.chip.chip-primary {
  background-color: #bee3f8;
  color: #2c5aa0;
}
.chip.chip-success {
  background-color: #c6f6d5;
  color: #2f855a;
}
.chip.chip-warning {
  background-color: #faf089;
  color: #b7791f;
}
.chip.chip-danger {
  background-color: #fed7d7;
  color: #c53030;
}
.chip.chip-secondary {
  background-color: #e2e8f0;
  color: #4a5568;
}

/* Alerts */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert .alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.alert .alert-content {
  flex: 1;
}
.alert .alert-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
}
.alert .alert-close:hover {
  opacity: 1;
}
.alert.alert-success {
  background-color: #f0fff4;
  color: #2f855a;
  border: 1px solid #c6f6d5;
}
.alert.alert-error {
  background-color: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
}
.alert.alert-warning {
  background-color: #fffbeb;
  color: #b7791f;
  border: 1px solid #faf089;
}
.alert.alert-info {
  background-color: #ebf8ff;
  color: #2c5aa0;
  border: 1px solid #bee3f8;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}
.toast .toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  gap: 12px;
}
.toast .toast-message {
  flex: 1;
  font-weight: 500;
}
.toast .toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
}
.toast .toast-close:hover {
  opacity: 1;
}
.toast.toast-success {
  background-color: #f0fff4;
  color: #2f855a;
  border: 1px solid #c6f6d5;
}
.toast.toast-error {
  background-color: #fed7d7;
  color: #c53030;
  border: 1px solid #feb2b2;
}
.toast.toast-warning {
  background-color: #fffbeb;
  color: #b7791f;
  border: 1px solid #faf089;
}
.toast.toast-info {
  background-color: #ebf8ff;
  color: #2c5aa0;
  border: 1px solid #bee3f8;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #3182ce;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn.premium-disabled {
  opacity: 0.7;
  background-color: #f5f5f5 !important;
  color: #6c757d !important;
  cursor: pointer;
  position: relative;
}
.btn.premium-disabled:hover {
  opacity: 0.8;
  animation: premiumPulse 1.5s infinite;
}
.btn.btn-primary {
  background-color: #3182ce;
  color: white;
}
.btn.btn-primary:hover:not(:disabled):not(.premium-disabled) {
  background-color: #2c5aa0;
}
.btn.btn-secondary {
  background-color: #e2e8f0;
  color: #4a5568;
}
.btn.btn-secondary:hover:not(:disabled):not(.premium-disabled) {
  background-color: #cbd5e0;
}
.btn.btn-success {
  background-color: #38a169;
  color: white;
}
.btn.btn-success:hover:not(:disabled):not(.premium-disabled) {
  background-color: #2f855a;
}
.btn.btn-danger {
  background-color: #e53e3e;
  color: white;
}
.btn.btn-danger:hover:not(:disabled):not(.premium-disabled) {
  background-color: #c53030;
}
.btn.btn-warning {
  background-color: #d69e2e;
  color: white;
}
.btn.btn-warning:hover:not(:disabled):not(.premium-disabled) {
  background-color: #b7791f;
}
.btn.btn-outline {
  background-color: transparent;
  border: 1px solid currentColor;
}
.btn.btn-outline.btn-primary {
  color: #3182ce;
  border-color: #3182ce;
}
.btn.btn-outline.btn-primary:hover:not(:disabled):not(.premium-disabled) {
  background-color: #3182ce;
  color: white;
}
.btn.btn-outline.btn-secondary {
  color: #4a5568;
  border-color: #e2e8f0;
}
.btn.btn-outline.btn-secondary:hover:not(:disabled):not(.premium-disabled) {
  background-color: #e2e8f0;
}
.btn.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn.btn-lg {
  padding: 14px 20px;
  font-size: 16px;
}
.btn.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn.btn-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.btn.btn-ai {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn.btn-ai:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.btn.btn-ai:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Premium pulse animation */
@keyframes premiumPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
  }
}
/* Premium badges and disabled states */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Switch styles for premium disabled state */
.switch.premium-disabled {
  opacity: 0.7;
  cursor: pointer;
}
.switch.premium-disabled:hover {
  opacity: 0.8;
  animation: premiumPulse 1.5s infinite;
}
.switch.premium-disabled .slider {
  background-color: #f5f5f5 !important;
}
.switch.premium-disabled .slider:before {
  background-color: #ccc !important;
}
.switch.premium-disabled input:checked + .slider {
  background-color: #f5f5f5 !important;
}
.switch.premium-disabled input:checked + .slider:before {
  background-color: #ccc !important;
}

/* ── AI Generate Modal ─────────────────────────────────────────────────────── */
.ai-modal-overlay {
  /* Clicking outside does NOT close — intentional */
  cursor: default;
}

.ai-generate-modal {
  max-width: 560px;
  width: 100%;
}
.ai-generate-modal .modal-header {
  align-items: flex-start;
  gap: 12px;
}
.ai-generate-modal .ai-modal-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}
.ai-generate-modal .ai-modal-title .ai-modal-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-generate-modal .ai-modal-title h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
}
.ai-generate-modal .ai-modal-title .ai-modal-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}
.ai-generate-modal {
  /* Context badge */
}
.ai-generate-modal .ai-context-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #0369a1;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ai-generate-modal .ai-context-badge .badge-tag {
  background: #0ea5e9;
  color: #fff;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.ai-generate-modal {
  /* Fields hint */
}
.ai-generate-modal .ai-fields-hint {
  font-size: 0.8rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.ai-generate-modal .ai-fields-hint strong {
  color: #374151;
}
.ai-generate-modal .ai-fields-hint .hint-tip {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 0.76rem;
}
.ai-generate-modal {
  /* Last applied fields */
}
.ai-generate-modal .ai-last-applied {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.78rem;
}
.ai-generate-modal .ai-last-applied .applied-label {
  color: #166534;
  font-weight: 600;
  flex-shrink: 0;
}
.ai-generate-modal .ai-last-applied .applied-tag {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
}
.ai-generate-modal .ai-last-applied .applied-refine {
  width: 100%;
  color: #6b7280;
  font-size: 0.74rem;
  margin-top: 2px;
}
.ai-generate-modal .ai-prompt-textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.ai-generate-modal .ai-prompt-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.ai-generate-modal .ai-keyboard-hint {
  font-size: 0.74rem;
  color: #9ca3af;
  margin: 4px 0 0;
}
.ai-generate-modal .ai-keyboard-hint kbd {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.72rem;
  font-family: monospace;
}
/*!***********************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/styles/layout.scss ***!
  \***********************************************************************************************************************************************************************************************************************************************/
.shop-explorer-layout {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}

.layout-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

.brand-icon {
  font-size: 24px;
}

.brand-name {
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-item:hover {
  background: #f5f5f5;
  color: #333;
}
.nav-item.active {
  background: #e3f2fd;
  color: #1976d2;
}

.nav-icon {
  font-size: 18px;
}

.nav-label {
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.user-menu-trigger:hover {
  border-color: #1976d2;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.user-role {
  font-size: 12px;
  color: #999;
  text-transform: capitalize;
}

.dropdown-arrow {
  font-size: 10px;
  color: #999;
  transition: transform 0.2s;
}

.user-menu-trigger:hover .dropdown-arrow {
  transform: translateY(2px);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dropdown-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
}

.user-details {
  flex: 1;
}

.user-name-large {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.user-email {
  font-size: 13px;
  color: #999;
}

.dropdown-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 0;
}

.dropdown-menu {
  padding: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.dropdown-item:hover {
  background: #f5f5f5;
}
.dropdown-item.logout {
  color: #d32f2f;
}
.dropdown-item.logout:hover {
  background: #ffebee;
}

.item-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.layout-content {
  flex: 1;
  padding: 24px;
}

@media (max-width: 768px) {
  .layout-header {
    padding: 0 16px;
    height: auto;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header-left {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .nav-label {
    display: none;
  }
  .user-info {
    display: none;
  }
  .layout-content {
    padding: 16px;
  }
}
/*!**************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/styles/dashboard.scss ***!
  \**************************************************************************************************************************************************************************************************************************************************/
/* ===================================
   Enhanced Dashboard Styles - Full Responsive
   =================================== */
/* ===================================
   Revenue Analytics - Recharts Implementation
   =================================== */
.dashboard {
  /* Period Filters */
}
.dashboard .period-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.dashboard .period-filters .form-select {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}
.dashboard .period-filters .form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.dashboard .period-filters .custom-date-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dashboard .period-filters .custom-date-inputs .form-input {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  min-width: 140px;
  transition: border-color 0.2s;
}
.dashboard .period-filters .custom-date-inputs .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.dashboard .period-filters .custom-date-inputs .btn {
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.dashboard {
  /* Revenue Analytics Enhanced */
}
.dashboard .revenue-analytics-enhanced {
  /* Summary Stats */
}
.dashboard .revenue-analytics-enhanced .analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-info .summary-value {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}
.dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-info .summary-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.dashboard .revenue-analytics-enhanced {
  /* Date Range Indicator */
}
.dashboard .revenue-analytics-enhanced .date-range-indicator {
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.dashboard .revenue-analytics-enhanced .date-range-indicator .range-label {
  font-size: 11px;
  color: #6b7280;
  margin-right: 6px;
}
.dashboard .revenue-analytics-enhanced .date-range-indicator .range-dates {
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
}
.dashboard .revenue-analytics-enhanced {
  /* Recharts Container */
}
.dashboard .revenue-analytics-enhanced .recharts-container {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  /* Recharts customizations */
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-cartesian-grid-horizontal line,
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-cartesian-grid-vertical line {
  stroke: #f3f4f6;
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-bar {
  cursor: pointer;
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-tooltip-wrapper .recharts-default-tooltip {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.dashboard .revenue-analytics-enhanced .recharts-container .recharts-legend-wrapper .recharts-legend-item {
  margin-right: 20px !important;
}
.dashboard {
  /* Responsive Design */
}
@media (max-width: 1024px) {
  .dashboard .period-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard .period-filters .form-select {
    width: 100%;
  }
  .dashboard .period-filters .custom-date-inputs {
    flex-direction: column;
  }
  .dashboard .period-filters .custom-date-inputs .form-input {
    width: 100%;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard .revenue-analytics-enhanced .recharts-container {
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .dashboard .revenue-analytics-enhanced .analytics-summary {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item {
    padding: 16px;
    gap: 12px;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item .summary-info .summary-value {
    font-size: 18px;
  }
  .dashboard .revenue-analytics-enhanced .recharts-container {
    padding: 12px;
  }
}
@media (max-width: 480px) {
  .dashboard .revenue-analytics-enhanced .analytics-summary .summary-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

.dashboard {
  /* Loading State */
}
.dashboard .loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}
.dashboard .loading-center p {
  color: #718096;
  font-size: 16px;
}
.dashboard {
  /* Section Title */
}
.dashboard .section-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 20px 0;
}
.dashboard {
  /* Mode Chips */
}
.dashboard .mode-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dashboard {
  /* Stats Grid */
}
.dashboard .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.dashboard .stats-grid .stat-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.dashboard .stats-grid .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dashboard .stats-grid .stat-card .stat-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.orders {
  background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.products {
  background: linear-gradient(135deg, #fcdeff 0%, #f8b7c0 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.revenue {
  background: linear-gradient(135deg, #b5d7f5 0%, #b1ebee 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-icon.vendors {
  background: linear-gradient(135deg, #b3f5c9 0%, #b5f8ec 100%);
}
.dashboard .stats-grid .stat-card .stat-content .stat-info {
  flex: 1;
  min-width: 0;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1;
  margin-bottom: 4px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-label {
  font-size: 14px;
  color: #718096;
  margin-bottom: 4px;
  font-weight: 500;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-growth {
  font-size: 12px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-warning {
  font-size: 12px;
  color: #d69e2e;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dashboard .stats-grid .stat-card .stat-content .stat-info .stat-period {
  font-size: 12px;
  color: #718096;
}
.dashboard .stats-grid .stat-card .stat-details {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background-color: #f7fafc;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dashboard {
  /* Main Content Grid Layout */
}
.dashboard .main-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
.dashboard .left-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.dashboard .right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 20px;
}
.dashboard {
  /* Quick Actions - 2 cards per row */
}
.dashboard .quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dashboard .quick-actions .action-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  /* &::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #71facc 0%, #aff3de 100%);
    opacity: 0.12;
    border-radius: 50%;
    transform: rotate(45deg);
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(225deg, #b6f3dd 0%, #8bc2af 100%);
    opacity: 0.1;
    border-radius: 50%;
  } */
}
.dashboard .quick-actions .action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #bda1fd 0%, #c2a4f7 100%);
  opacity: 0.08;
  border-radius: 0 0 100% 0;
  z-index: 0;
}
.dashboard .quick-actions .action-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background: linear-gradient(225deg, #beabf7 0%, #bea6f7 100%);
  opacity: 0.1;
  border-radius: 100% 0 0 0;
  z-index: 0;
}
.dashboard .quick-actions .action-card:hover:not(.upcoming-feature) {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.dashboard .quick-actions .action-card .card-content {
  padding: 24px;
}
.dashboard .quick-actions .action-card .card-content .action-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard .quick-actions .action-card .card-content .action-header .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dashboard .quick-actions .action-card .card-content .action-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard .quick-actions .action-card .card-content p {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.dashboard .quick-actions .action-card .card-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
}
.dashboard .quick-actions .action-card .card-footer .btn {
  margin-top: 15px;
  z-index: 10;
}
.dashboard .quick-actions .action-card.upcoming-feature {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}
.dashboard .quick-actions .action-card.upcoming-feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  border-radius: 12px;
}
.dashboard .quick-actions .action-card.upcoming-feature button {
  cursor: not-allowed;
  pointer-events: none;
}
.dashboard {
  /* Promo Card - Blue Theme */
}
.dashboard .promo-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #3b82f6;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .promo-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0.1;
  border-radius: 0 0 0 100%;
}
.dashboard .promo-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  opacity: 0.08;
  border-radius: 0 100% 0 0;
}
.dashboard .promo-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 0;
}
.dashboard .promo-card .card-header h3 {
  color: #1e40af;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.dashboard .promo-card .card-header p {
  color: #3b82f6;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}
.dashboard .promo-card .card-content {
  position: relative;
  z-index: 1;
  padding: 16px 24px;
}
.dashboard .promo-card .card-footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 24px;
}
.dashboard .promo-card .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  z-index: 10;
}
.dashboard .promo-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}
.dashboard {
  /* Activity Card - Green Theme */
}
.dashboard .activity-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .activity-card::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}
.dashboard .activity-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}
.dashboard .activity-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}
.dashboard .activity-card .card-header h3 {
  color: #065f46;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.dashboard .activity-card .card-content {
  position: relative;
  z-index: 1;
  padding: 0;
}
.dashboard {
  /* Export Status Card - Purple Theme */
}
.dashboard .sync-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .sync-card::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  transform: translateY(-50%);
}
.dashboard .sync-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.dashboard .sync-card .card-header h3 {
  color: #6b21a8;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.dashboard .sync-card .card-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.dashboard {
  /* Analytics Card - Orange Theme */
}
.dashboard .analytics-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  border: 2px solid #f97316;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
  overflow: hidden;
  position: relative;
}
.dashboard .analytics-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}
.dashboard .analytics-card::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
}
.dashboard .analytics-card .card-header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 16px;
}
.dashboard .analytics-card .card-header h3 {
  color: #9a3412;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.dashboard .analytics-card .card-content {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.dashboard {
  /* Sidebar Components */
}
.dashboard .sidebar .sync-status {
  margin-bottom: 16px;
}
.dashboard .sidebar .sync-status .status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.dashboard .sidebar .sync-status .status-item .status-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.dashboard .sidebar .sync-status .status-item .status-indicator.success {
  background-color: #c6f6d5;
  color: #2f855a;
}
.dashboard .sidebar .sync-status .status-item .status-indicator.warning {
  background-color: #fef3c7;
  color: #d97706;
}
.dashboard .sidebar .sync-status .status-item .status-indicator.error {
  background-color: #fee2e2;
  color: #dc2626;
}
.dashboard .sidebar .sync-status .status-item span {
  font-weight: 500;
  color: #1a202c;
  font-size: 14px;
}
.dashboard .sidebar .sync-info p {
  margin: 0 0 8px 0;
  color: #718096;
  font-size: 14px;
}
.dashboard .sidebar .activity-list .activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  position: relative;
  z-index: 1;
}
.dashboard .sidebar .activity-list .activity-item:last-child {
  border-bottom: none;
}
.dashboard .sidebar .activity-list .activity-item .activity-icon {
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 8px;
  flex-shrink: 0;
  color: #10b981;
}
.dashboard .sidebar .activity-list .activity-item .activity-content {
  flex: 1;
  min-width: 0;
}
.dashboard .sidebar .activity-list .activity-item .activity-content .activity-title {
  font-size: 14px;
  font-weight: 500;
  color: #1a202c;
  margin-bottom: 2px;
}
.dashboard .sidebar .activity-list .activity-item .activity-content .activity-time {
  font-size: 12px;
  color: #718096;
}
.dashboard .sidebar .empty-activity-state {
  padding: 40px 24px;
  text-align: center;
}
.dashboard .sidebar .empty-activity-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.dashboard .sidebar .empty-activity-state .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.dashboard .sidebar .empty-activity-state .empty-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}
.dashboard .col-span-2 {
  grid-column: span 2;
}

/* ===================================
   Form & Table Elements
   =================================== */
.page-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.form-input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #1976d2;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.table thead {
  background: #f5f5f5;
}
.table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid #e0e0e0;
}
.table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.table tbody tr:hover {
  background: #fafafa;
}
.table tbody td {
  padding: 16px;
  font-size: 14px;
  color: #333;
}

/* ===================================
   Alert & Badge Components
   =================================== */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert.alert-info {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  color: #1565c0;
}
.alert.alert-info strong {
  display: block;
  margin-bottom: 4px;
}
.alert.alert-info p {
  margin: 0;
  font-size: 14px;
}

.upcoming-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 10px;
  font-weight: 400;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.upcoming-feature {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
}
.upcoming-feature * {
  cursor: not-allowed;
}
.upcoming-feature input,
.upcoming-feature select,
.upcoming-feature textarea,
.upcoming-feature button {
  pointer-events: none;
}

/* ===================================
   Responsive Design
   =================================== */
/* Large Desktop */
@media (max-width: 1400px) {
  .dashboard .main-content-grid {
    grid-template-columns: 1fr 350px;
  }
}
/* Desktop */
@media (max-width: 1200px) {
  .dashboard .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard .main-content-grid {
    grid-template-columns: 1fr;
  }
  .dashboard .right-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .dashboard .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .dashboard .grid-cols-3 .col-span-2 {
    grid-column: span 1;
  }
}
/* Mobile Large */
@media (max-width: 768px) {
  .dashboard .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard .quick-actions {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard .right-sidebar {
    grid-template-columns: 1fr;
  }
  .dashboard .stat-card .stat-content {
    padding: 16px;
  }
  .dashboard .stat-card .stat-content .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .dashboard .stat-card .stat-content .stat-info .stat-number {
    font-size: 24px;
  }
  .dashboard .stat-card .stat-details {
    padding: 12px 16px;
  }
  .dashboard .action-card .card-content {
    padding: 20px;
  }
  .dashboard .action-card .card-content .action-header .action-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .dashboard .action-card .card-content .action-header h3 {
    font-size: 15px;
  }
  .dashboard .action-card .card-content p {
    font-size: 13px;
  }
  .dashboard .action-card .card-footer {
    padding: 0 20px 20px;
  }
  .dashboard .mode-chips {
    justify-content: center;
  }
  .page-actions {
    flex-direction: column;
    width: 100%;
  }
  .page-actions .form-input,
  .page-actions .btn {
    width: 100%;
  }
}
/* Mobile Small */
@media (max-width: 480px) {
  .dashboard .section-title {
    font-size: 20px;
    text-align: center;
  }
  .dashboard .stat-card .stat-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dashboard .action-card .card-content {
    padding: 16px;
  }
  .dashboard .action-card .card-content .action-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dashboard .promo-card .card-header,
  .dashboard .activity-card .card-header,
  .dashboard .sync-card .card-header,
  .dashboard .analytics-card .card-header {
    padding: 20px 20px 12px;
  }
  .dashboard .promo-card .card-header h3,
  .dashboard .activity-card .card-header h3,
  .dashboard .sync-card .card-header h3,
  .dashboard .analytics-card .card-header h3 {
    font-size: 16px;
  }
  .dashboard .promo-card .card-content,
  .dashboard .activity-card .card-content,
  .dashboard .sync-card .card-content,
  .dashboard .analytics-card .card-content {
    padding: 16px 20px;
  }
  .dashboard .promo-card .card-footer,
  .dashboard .activity-card .card-footer,
  .dashboard .sync-card .card-footer,
  .dashboard .analytics-card .card-footer {
    padding: 0 20px 20px;
  }
  .table {
    font-size: 13px;
  }
  .table thead th {
    padding: 10px 12px;
    font-size: 12px;
  }
  .table tbody td {
    padding: 12px;
  }
}
/* ===================================
   Enhanced Frontend Dashboard Styles
   =================================== */
.dashboard {
  /* Enhanced Stats Grid */
}
.dashboard .stats-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.dashboard .stats-grid-enhanced .stat-card-modern {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dashboard .stats-grid-enhanced .stat-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}
.dashboard .stats-grid-enhanced .stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.dashboard .stats-grid-enhanced .stat-card-modern.primary {
  --accent-color: #3b82f6;
  --accent-light: #60a5fa;
  --bg-color: #eff6ff;
}
.dashboard .stats-grid-enhanced .stat-card-modern.secondary {
  --accent-color: #8b5cf6;
  --accent-light: #a78bfa;
  --bg-color: #f3e8ff;
}
.dashboard .stats-grid-enhanced .stat-card-modern.success {
  --accent-color: #10b981;
  --accent-light: #34d399;
  --bg-color: #ecfdf5;
}
.dashboard .stats-grid-enhanced .stat-card-modern.info {
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --bg-color: #fffbeb;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-icon-wrapper .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-icon-wrapper .stat-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  opacity: 0.1;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-trend .trend-indicator {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-trend .trend-indicator.positive {
  background: #dcfce7;
  color: #166534;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-trend .trend-indicator.negative {
  background: #fef2f2;
  color: #dc2626;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-badge .badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-badge .badge.warning {
  background: #fef3c7;
  color: #92400e;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-comparison .comparison-text {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-header .stat-alert .alert-indicator {
  font-size: 18px;
  animation: pulse 2s infinite;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body {
  padding: 16px 24px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body .stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body .stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-body .stat-subtitle {
  font-size: 13px;
  color: #6b7280;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer {
  padding: 0 24px 20px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-color);
  border-radius: 10px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-detail .detail-label {
  font-size: 13px;
  color: #6b7280;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-detail .detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.completed {
  background: #10b981;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.processing {
  background: #f59e0b;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.in-stock {
  background: #10b981;
}
.dashboard .stats-grid-enhanced .stat-card-modern .stat-footer .stat-breakdown .breakdown-item .dot.low-stock {
  background: #ef4444;
}
.dashboard {
  /* Enhanced Revenue Chart */
}
.dashboard .revenue-analytics-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 32px;
}
.dashboard .revenue-analytics-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.dashboard .revenue-analytics-card .card-header .header-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}
.dashboard .revenue-analytics-card .card-header .header-content p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend {
  display: flex;
  gap: 16px;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item .legend-dot.revenue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.dashboard .revenue-analytics-card .card-header .header-actions .chart-legend .legend-item .legend-dot.orders {
  background: linear-gradient(135deg, #10b981, #059669);
}
.dashboard .revenue-analytics-card .card-content {
  padding: 0;
  /* Old chart styles removed - using new table-based analytics from _revenue-analytics.scss */
}
.dashboard .revenue-analytics-card .chart-empty-state {
  padding: 60px 24px;
  text-align: center;
}
.dashboard .revenue-analytics-card .chart-empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.dashboard .revenue-analytics-card .chart-empty-state .empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.dashboard .revenue-analytics-card .chart-empty-state .empty-description {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.dashboard .revenue-analytics-card .chart-empty-state .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
}

/* Responsive Design for Enhanced Components */
@media (max-width: 1024px) {
  .stats-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Old chart responsive styles removed - using new table-based analytics */
}
@media (max-width: 768px) {
  .stats-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats-grid-enhanced .stat-card-modern .stat-body .stat-value {
    font-size: 28px;
  }
  /* Old chart mobile responsive styles removed - using new table-based analytics */
}
@media (max-width: 480px) {
  .stats-grid-enhanced .stat-card-modern .stat-header {
    padding: 16px 20px 0;
  }
  .stats-grid-enhanced .stat-card-modern .stat-body {
    padding: 12px 20px;
  }
  .stats-grid-enhanced .stat-card-modern .stat-body .stat-value {
    font-size: 24px;
  }
  .stats-grid-enhanced .stat-card-modern .stat-footer {
    padding: 0 20px 16px;
  }
  /* Old chart small mobile responsive styles removed - using new table-based analytics */
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.dashboard {
  /* Date Filters */
}
.dashboard .date-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.dashboard .date-filters .form-input {
  min-width: 140px;
}
.dashboard .date-filters .btn {
  white-space: nowrap;
}
.dashboard {
  /* Revenue Chart */
}
.dashboard .revenue-chart .chart-container {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}
.dashboard .revenue-chart .chart-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 200px;
  margin-bottom: 20px;
  padding: 0 10px;
}
.dashboard .revenue-chart .chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.dashboard .revenue-chart .chart-bar {
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 8px;
}
.dashboard .revenue-chart .chart-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}
.dashboard .revenue-chart .chart-label {
  font-size: 11px;
  color: #666;
  text-align: center;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}
.dashboard .revenue-chart .chart-summary {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}
.dashboard .revenue-chart .chart-summary .summary-item {
  text-align: center;
}
.dashboard .revenue-chart .chart-summary .summary-item .label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}
.dashboard .revenue-chart .chart-summary .summary-item .value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.dashboard {
  /* Top Products Table */
}
.dashboard .product-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard .product-info .product-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e9ecef;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}
.dashboard .product-info .product-name {
  font-weight: 500;
  color: #333;
}
.dashboard .sales-count {
  font-weight: 500;
  color: #0073aa;
}
.dashboard .revenue-amount {
  font-weight: 600;
  color: #28a745;
}
.dashboard .stock-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.dashboard .stock-status.low-stock {
  color: #dc3545;
}
.dashboard .stock-status.in-stock {
  color: #28a745;
}
.dashboard .table-footer {
  padding: 16px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}
.dashboard .table-footer .table-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dashboard .table-footer .table-summary span {
  font-size: 14px;
  color: #666;
}
.dashboard {
  /* Responsive adjustments for frontend */
}
@media (max-width: 768px) {
  .dashboard .date-filters {
    width: 100%;
  }
  .dashboard .date-filters .form-input {
    flex: 1;
    min-width: 120px;
  }
  .dashboard .date-filters .btn {
    flex-shrink: 0;
  }
  .dashboard .chart-bars {
    height: 150px;
  }
  .dashboard .chart-label {
    font-size: 10px;
    transform: rotate(-45deg);
    transform-origin: center;
    margin-top: 8px;
  }
  .dashboard .chart-summary {
    flex-direction: column;
    gap: 12px;
  }
  .dashboard .chart-summary .summary-item .label {
    font-size: 11px;
  }
  .dashboard .chart-summary .summary-item .value {
    font-size: 14px;
  }
  .dashboard .product-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .dashboard .product-info .product-rank {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .dashboard .product-info .product-name {
    font-size: 13px;
  }
  .dashboard .table {
    font-size: 12px;
  }
  .dashboard .table thead th {
    padding: 8px 10px;
    font-size: 11px;
  }
  .dashboard .table tbody td {
    padding: 10px;
  }
}
@media (max-width: 480px) {
  .dashboard .date-filters {
    flex-direction: column;
    gap: 12px;
  }
  .dashboard .date-filters .form-input,
  .dashboard .date-filters .btn {
    width: 100%;
  }
  .dashboard .chart-summary .summary-item .label {
    font-size: 10px;
  }
  .dashboard .chart-summary .summary-item .value {
    font-size: 13px;
  }
  .dashboard .table-footer .table-summary {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .dashboard .table-footer .table-summary .btn {
    width: 100%;
  }
}

/*# sourceMappingURL=index.css.map*/