/* ===================================
   Luxury Minimal Custom Cursor Styling
====================================== */


/* Hide default cursor when custom cursor is active */
body {
  cursor: none !important;
}

a, 
button, 
.hover-element, 
[data-cursor-text],
[data-cursor-color] {
  cursor: none !important;
}

/* Main cursor dot - Refined luxury minimal design */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px; /* Slightly reduced for minimal feel */
  height: 6px;
  background: radial-gradient(circle, var(--gold) 40%, var(--gold-light) 70%, transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  mix-blend-mode: normal;
  opacity: 0.95;
  box-shadow: 
    0 0 8px rgba(var(--gold-rgb), 0.3),
    0 0 16px rgba(var(--gold-rgb), 0.1);
}

/* Cursor follower ring - More refined and luxury */
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px; /* Slightly reduced */
  height: 28px;
  border: 1px solid rgba(var(--kelp-600-rgb), 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0.7;
  background: linear-gradient(135deg, 
    rgba(var(--kelp-100-rgb), 0.1), 
    rgba(var(--gold-rgb), 0.05));
  box-shadow: 
    0 0 12px rgba(var(--kelp-500-rgb), 0.08),
    inset 0 0 8px rgba(var(--gold-rgb), 0.05);
}

/* Text display for custom messages - Enhanced luxury styling */
.cursor-text {
  position: fixed;
  top: 0;
  left: 0;
  color: var(--kelp-800);
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  font-family: var(--font-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(var(--kelp-50-rgb), 0.95), 
    rgba(var(--kelp-100-rgb), 0.9));
  /* backdrop-filter: blur(8px); */
  /* -webkit-backdrop-filter: blur(8px); */
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--kelp-300-rgb), 0.2);
  box-shadow: 
    0 4px 16px rgba(var(--kelp-500-rgb), 0.1),
    0 2px 4px rgba(var(--kelp-600-rgb), 0.05);
}

/* Active state when hovering interactive elements - More subtle */
.cursor.cursor-active {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--gold-light) 30%, var(--gold) 70%);
  box-shadow: 
    0 0 12px rgba(var(--gold-rgb), 0.5),
    0 0 24px rgba(var(--gold-rgb), 0.2);
}

.cursor-follower.follower-active {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--gold-rgb), 0.6);
  opacity: 0.4;
  background: radial-gradient(circle, 
    rgba(var(--gold-rgb), 0.08) 0%, 
    rgba(var(--gold-rgb), 0.15) 50%, 
    transparent 100%);
  box-shadow: 
    0 0 20px rgba(var(--gold-rgb), 0.15),
    inset 0 0 12px rgba(var(--gold-rgb), 0.08);
}

/* Down state when clicking - More refined */
.cursor.cursor-down {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, var(--gold) 20%, var(--gold-dark) 80%);

}

.cursor-follower.follower-down {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(var(--gold-rgb), 0.8);
  opacity: 0.8;

}

/* Show text when needed */
.cursor-text.text-visible {
  opacity: 1;
  transform: translate(-50%, -60%); /* Slight offset for better positioning */
}

/* Media query to disable on touch devices and small screens */
@media (max-width: 768px), (pointer: coarse) {
  .cursor,
  .cursor-follower,
  .cursor-text {
    display: none;
  }
  
  body, a, button, .hover-element {
    cursor: auto !important;
  }
}

/* Enhanced zoom cursor states for image gallery */
.cursor.cursor-zoom-in,
.cursor.cursor-zoom-out {
  opacity: 0;
  width: 0;
  height: 0;
}

.cursor-follower.follower-zoom-in,
.cursor-follower.follower-zoom-out {
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
}

/* Enhanced zoom icons with luxury styling */
.cursor-follower.follower-zoom-in::before,
.cursor-follower.follower-zoom-out::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--kelp-950);
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);

}

.cursor-follower.follower-zoom-in:hover::before,
.cursor-follower.follower-zoom-out:hover::before {
  transform: translate(-50%, -50%) scale(1.05);

}

/* Luxury horizontal line (gold) */
.cursor-follower.follower-zoom-in::after,
.cursor-follower.follower-zoom-out::after {
  content: '';
  position: absolute;
  background: var(--gold-dark);
  width: 12px;
  height: 1.5px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 1px;
 
}

/* Luxury vertical line (gold) for zoom-in only */
.cursor-follower.follower-zoom-in .zoom-vertical {
  position: absolute;
  background: var(--gold-dark);
  width: 1.5px;
  height: 12px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 1px;
 
}

/* Enhanced animated orbit lines for luxury feel */
.cursor-orbit,
.cursor-orbit-inner {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99996;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0 !important;
  transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cursor-orbit {
  width: 0;
  height: 0;
  border: none;
}

.cursor-orbit-inner {
  width: 0;
  height: 0;
  border: none;
}

/* Enhanced gallery item cursor interaction */
.leorre-gallery-item {
  cursor: none !important;
}

/* Enhanced zoom interaction for product images */
.leorre-zoom-image-container[data-zoomable="true"] {
  cursor: none !important;
}

.leorre-zoom-image-container[data-dragging="true"] {
  cursor: none !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  body.zoom-overlay-active .leorre-cursor-container {
    display: none;
  }
}

/* Touch device handling */
@media (hover: none) and (pointer: coarse) {
  .leorre-cursor-container {
    display: none !important;
  }
}

/* Enhanced chat button cursor styles */
.smart-chat-button,
.smart-chat-button * {
  cursor: none !important;
}

.smart-chat .cursor-follower.follower-active {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(var(--gold-rgb), 0.7);
  background: radial-gradient(circle, 
    rgba(var(--gold-rgb), 0.1) 0%, 
    rgba(var(--gold-rgb), 0.2) 50%, 
    transparent 100%);
}

.smart-chat .cursor.cursor-active {
  background: radial-gradient(circle, var(--gold) 30%, var(--gold-light) 70%);
  box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.6);
}

.smart-chat .cursor-text.text-visible {
  background: linear-gradient(135deg, 
    rgba(var(--kelp-50-rgb), 0.98), 
    rgba(var(--kelp-100-rgb), 0.95));
  border-color: rgba(var(--gold-rgb), 0.3);
} /* Admin Sidebar Scroll Fixes */

/* Prevent sidebar scroll from affecting main content */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  /* Let the browser handle sidebar's own overflow */
}

/* Navigation container */
.sidebar-navigation-container {
  /* Scroll behavior handled by index.css */
}

/* Mobile fixes */
@media (max-width: 1024px) {
  .admin-sidebar.open {
    transform: translateX(0);
  }
}



/* Ensure proper z-index stacking */
.admin-sidebar {
  z-index: 1000;
}

.admin-sidebar-backdrop {
  z-index: 999;
}

/* =================== ADMIN SIDEBAR - COMPACT DESIGN =================== */

/* Base sidebar container */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.9) 100%
  );

  border-right: 1px solid rgba(70, 71, 61, 0.1);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(212, 175, 55, 0.05);
}

/* Compact mode */
.admin-sidebar.compact {
  width: 80px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-sidebar.compact {
    width: 280px;
  }
}

/* Sidebar content container */
.sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header section */
.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(70, 71, 61, 0.1);
  background: rgba(255, 255, 255, 0.8);
 
  transition: all 0.3s ease;
}

.sidebar-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Navigation container */
.sidebar-navigation-container {
  flex: 1;
  padding: 0.5rem 0;
  /* Scroll behavior handled by index.css */
}

/* Navigation sections */
.nav-section {
  margin-bottom: 1rem;
}

.nav-section-title {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(70, 71, 61, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-section-title:hover {
  color: rgba(70, 71, 61, 0.8);
  background: rgba(70, 71, 61, 0.05);
}

.nav-section-title .chevron {
  transition: transform 0.2s ease;
}

.nav-section-title.expanded .chevron {
  transform: rotate(180deg);
}

/* Navigation items */
.nav-items {
  padding: 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
  transition: all 0.3s ease;
}

.nav-item-link,
.nav-item-button {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(70, 71, 61, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item-link:hover,
.nav-item-button:hover {
  background: rgba(70, 71, 61, 0.08);
  color: rgba(70, 71, 61, 0.9);
  transform: translateX(2px);
}

.nav-item-link.active,
.nav-item-button.active {
  background: linear-gradient(135deg, #46473d, #6d6e5e);
  color: white;
  box-shadow: 0 4px 12px rgba(70, 71, 61, 0.2);
}

.nav-item-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-item-link:hover .nav-item-icon,
.nav-item-button:hover .nav-item-icon {
  transform: scale(1.1);
}

.nav-item-text {
  flex: 1;
  font-size: 0.75rem;
}

.nav-item-badge {
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
  background: #d4af37;
  margin-left: 0.5rem;
}

.nav-item-chevron {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-item-button.expanded .nav-item-chevron {
  transform: rotate(90deg);
}

/* Sub-items */
.nav-sub-items {
  margin-left: 1rem;
  margin-top: 0.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(70, 71, 61, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-sub-item {
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  color: rgba(70, 71, 61, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.nav-sub-item:hover {
  background: rgba(70, 71, 61, 0.08);
  color: rgba(70, 71, 61, 0.9);
  transform: translateX(2px);
}

.nav-sub-item.active {
  background: rgba(70, 71, 61, 0.15);
  color: #46473d;
  font-weight: 500;
  border-left: 2px solid #d4af37;
  padding-left: 0.75rem;
}

.nav-sub-item.active::before {
  content: '';
  position: absolute;
  left: -0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.25rem;
  height: 0.25rem;
  background: #d4af37;
  border-radius: 50%;
  /* animation: pulse 2s infinite; - DISABLED FOR PERFORMANCE */
}

/* Compact mode adjustments */
.admin-sidebar.compact .nav-section-title {
  padding: 0.5rem;
  justify-content: center;
}

.admin-sidebar.compact .nav-section-title span {
  display: none;
}

.admin-sidebar.compact .nav-items {
  padding: 0.25rem;
}

.admin-sidebar.compact .nav-item-link,
.admin-sidebar.compact .nav-item-button {
  padding: 0.5rem;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.admin-sidebar.compact .nav-item-icon {
  margin-right: 0;
  margin-bottom: 0.25rem;
}

.admin-sidebar.compact .nav-item-text {
  font-size: 0.625rem;
  line-height: 1;
}

.admin-sidebar.compact .nav-item-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
}

.admin-sidebar.compact .nav-sub-items {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 0;
  padding-left: 0.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(70, 71, 61, 0.1);
  min-width: 200px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.admin-sidebar.compact .nav-item:hover .nav-sub-items {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Footer section */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(70, 71, 61, 0.1);
  background: rgba(255, 255, 255, 0.8);
  /* backdrop-filter: blur(8px); */
  /* -webkit-backdrop-filter: blur(8px); */
}

/* User profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, 
    rgba(70, 71, 61, 0.05) 0%,
    rgba(109, 110, 94, 0.05) 100%
  );
  border: 1px solid rgba(70, 71, 61, 0.1);
  margin-bottom: 0.75rem;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #46473d, #6d6e5e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #46473d;
  margin: 0;
  line-height: 1.2;
}

.user-email {
  font-size: 0.6875rem;
  color: rgba(70, 71, 61, 0.6);
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-status {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  /* animation: pulse 2s infinite; - DISABLED FOR PERFORMANCE */
}

/* Sign out button */
.sign-out-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  color: rgba(70, 71, 61, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sign-out-button:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.sign-out-button .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.sign-out-button:hover .icon {
  transform: scale(1.1);
}

/* Compact mode footer adjustments */
.admin-sidebar.compact .user-profile {
  padding: 0.5rem;
  justify-content: center;
}

.admin-sidebar.compact .user-info {
  display: none;
}

.admin-sidebar.compact .user-avatar {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
}

.admin-sidebar.compact .sign-out-button {
  padding: 0.5rem;
  justify-content: center;
  flex-direction: column;
}

.admin-sidebar.compact .sign-out-button span {
  display: none;
}

/* Search functionality */
.search-container {
  margin-top: 0.75rem;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid rgba(70, 71, 61, 0.1);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background: rgba(70, 71, 61, 0.05);
  color: #46473d;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  background: white;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  color: rgba(70, 71, 61, 0.4);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  color: rgba(70, 71, 61, 0.4);
  cursor: pointer;
  transition: color 0.2s ease;
}

.search-clear:hover {
  color: rgba(70, 71, 61, 0.8);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Responsive design */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 280px;
  }
  
  .admin-sidebar.compact {
    width: 280px;
  }
  
  .admin-sidebar.compact .nav-sub-items {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    box-shadow: none;
    border: none;
    margin-left: 1rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(70, 71, 61, 0.1);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .nav-item-link,
  .nav-item-button,
  .nav-sub-item,
  .sign-out-button {
    transition: none;
  }
  
  .nav-item-link:hover,
  .nav-item-button:hover,
  .nav-sub-item:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .admin-sidebar {
    border-right: 2px solid #46473d;
  }
  
  .nav-item-link.active,
  .nav-item-button.active {
    border: 2px solid #46473d;
  }
  
  .nav-sub-item.active {
    border-left: 3px solid #d4af37;
  }
} .upload-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: #f4e1d2;
  color: #714d38;
  border: 2px solid #714d38;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.upload-button__icon {
  margin-right: 8px;
}

.upload-button--required {
  background-color: #f4e1d2;
  color: #714d38;
}

.upload-button--default {
  background-color: #714d38;
  color: #ffffff;
}

.upload-button:hover {
  background-color: #714d38;
  color: #ffffff;
}

.upload-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-progress__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-progress__spinner {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

.upload-progress__text {
  font-size: 14px;
  color: #714d38;
}

.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
}

.upload-preview__image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #714d38;
}

.upload-preview__name {
  margin-top: 8px;
  font-size: 14px;
  color: #714d38;
  text-align: center;
}

.upload-preview__remove {
  margin-top: 8px;
  background: none;
  border: none;
  color: #714d38;
  cursor: pointer;
}

.upload-preview__remove:hover {
  color: #d9534f;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}.ticket-management {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.ticket-header h2 {
  color: #333;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.ticket-stats {
  background: #f8f9fa;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  color: #666;
}

.ticket-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-input, .filter-select {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  min-width: 180px;
  transition: border-color 0.3s ease;
}

.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ticket-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  height: calc(100vh - 300px);
}

.tickets-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ticket-item {
  padding: 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.ticket-item:hover {
  background: #f8f9fa;
  transform: translateX(3px);
}

.ticket-item.selected {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.ticket-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ticket-number {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #333;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.ticket-badges {
  display: flex;
  gap: 8px;
}

.status-badge, .priority-badge {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-open { background: #fff3cd; color: #856404; }
.status-badge.status-progress { background: #cce5ff; color: #004085; }
.status-badge.status-waiting { background: #ffe6cc; color: #cc6600; }
.status-badge.status-resolved { background: #d4edda; color: #155724; }
.status-badge.status-closed { background: #e2e3e5; color: #495057; }
.status-badge.status-escalated { background: #f8d7da; color: #721c24; }

.priority-badge.priority-low { background: #d1ecf1; color: #0c5460; }
.priority-badge.priority-normal { background: #d4edda; color: #155724; }
.priority-badge.priority-high { background: #fff3cd; color: #856404; }
.priority-badge.priority-urgent { background: #f8d7da; color: #721c24; }

.ticket-item-content h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.ticket-type {
  color: #666;
  font-size: 13px;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.ticket-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #888;
}

.ticket-meta span {
  display: block;
}

.loading, .no-tickets, .no-ticket-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
  margin-top: auto;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #666;
  font-weight: 500;
}

.ticket-details {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

.ticket-details-content {
  padding: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ticket-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.ticket-details-header h3 {
  margin: 0;
  color: #333;
  font-family: 'Courier New', monospace;
  font-size: 18px;
}

.status-select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-weight: 500;
}

.ticket-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.info-row {
  margin-bottom: 10px;
  color: #333;
}

.info-row strong {
  display: inline-block;
  width: 100px;
  color: #555;
}

.ticket-subject {
  background: #fff3cd;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.ticket-subject h4 {
  margin: 0;
  color: #856404;
}

.ticket-description {
  background: #e7f3ff;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.ticket-description h4 {
  margin: 0 0 10px 0;
  color: #1976d2;
}

.ticket-description p {
  margin: 0;
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ticket-responses {
  flex: 1;
  min-height: 0;
}

.ticket-responses h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.responses-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f8f9fa;
}

.response-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: white;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.response-item.admin {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.response-item.customer {
  background: #f3e5f5;
  border-left: 4px solid #9c27b0;
}

.response-item.system {
  background: #e8f5e8;
  border-left: 4px solid #4caf50;
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.response-author {
  font-weight: 600;
  color: #333;
}

.response-date {
  color: #666;
}

.response-type {
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
}

.response-type.admin { background: #2196f3; color: white; }
.response-type.customer { background: #9c27b0; color: white; }
.response-type.system { background: #4caf50; color: white; }

.response-message {
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
}

.reply-form {
  border-top: 2px solid #eee;
  padding-top: 20px;
}

.reply-form h4 {
  margin: 0 0 15px 0;
  color: #333;
}

.reply-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  resize: vertical;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.3s ease;
}

.reply-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.reply-btn {
  margin-top: 15px;
  padding: 12px 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reply-btn:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-1px);
}

.reply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .ticket-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .ticket-details {
    max-height: 600px;
  }
}

@media (max-width: 768px) {
  .ticket-management {
    padding: 15px;
  }
  
  .ticket-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input, .filter-select {
    min-width: auto;
    width: 100%;
  }
  
  .ticket-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .ticket-details-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .ticket-badges {
    flex-wrap: wrap;
  }
  
  .ticket-meta {
    flex-direction: column;
  }
} /* =============================================
   SectionImageManager.css - Admin Panel Styling
   ============================================= */

.section-image-manager {
  padding: 2rem;
  background: var(--kelp-50);
  min-height: 100vh;
}

.section-image-manager-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.1rem;
  color: var(--kelp-600);
}

.section-image-manager-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-image-manager-header h2 {
  font-size: 2rem;
  color: var(--kelp-900);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-image-manager-header p {
  color: var(--kelp-600);
  font-size: 1rem;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.5rem;
  background: rgba(var(--kelp-100-rgb), 0.3);
  border-radius: 8px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--kelp-600);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: rgba(var(--kelp-200-rgb), 0.5);
  color: var(--kelp-800);
}

.tab-button.active {
  background: var(--kelp-900);
  color: white;
}

/* Brand Story Specific Styles */
.status-brand-story {
  background: rgba(var(--gold-rgb), 0.9) !important;
}

.status-product-box {
  background: rgba(var(--accent-clay-rgb), 0.9) !important;
}

.placeholder-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--kelp-100-rgb), 0.3);
  color: var(--kelp-600);
}

.section-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-image-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--kelp-900-rgb), 0.08);
  border: 1px solid rgba(var(--kelp-200-rgb), 0.3);
  transition: all 0.3s ease;
}

.section-image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--kelp-900-rgb), 0.12);
}

.section-image-preview {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.preview-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.section-image-card:hover .preview-image {
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem;
}

.image-status {
  background: rgba(var(--kelp-900-rgb), 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-active {
  background: rgba(34, 197, 94, 0.9);
}

.status-inactive {
  background: rgba(239, 68, 68, 0.9);
}

.section-image-details {
  padding: 1.5rem;
}

.section-name {
  font-size: 1.1rem;
  color: var(--kelp-900);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: capitalize;
}

.image-info {
  margin-bottom: 1.5rem;
}

.image-alt,
.image-title {
  font-size: 0.875rem;
  color: var(--kelp-600);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.box-description {
  color: var(--kelp-700);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(var(--kelp-50-rgb), 0.5);
  border-radius: 6px;
  border-left: 2px solid var(--accent-clay);
}

.image-date {
  font-size: 0.75rem;
  color: var(--kelp-500);
  font-style: italic;
}

.image-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.edit-btn,
.toggle-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edit-btn {
  background: var(--kelp-500);
  color: white;
}

.edit-btn:hover:not(:disabled) {
  background: var(--kelp-600);
  transform: translateY(-1px);
}

.toggle-btn.activate {
  background: #22c55e;
  color: white;
}

.toggle-btn.activate:hover:not(:disabled) {
  background: #16a34a;
  transform: translateY(-1px);
}

.toggle-btn.deactivate {
  background: #ef4444;
  color: white;
}

.toggle-btn.deactivate:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-1px);
}

.edit-btn:disabled,
.toggle-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.image-upload {
  border-top: 1px solid rgba(var(--kelp-200-rgb), 0.3);
  padding-top: 1.5rem;
}

.file-input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid rgba(var(--kelp-300-rgb), 0.5);
  border-radius: 6px;
  font-size: 0.875rem;
}

.upload-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--kelp-600);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upload-btn:hover:not(:disabled) {
  background: var(--kelp-700);
  transform: translateY(-1px);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Edit Form Styles */
.edit-form {
  margin-bottom: 1.5rem;
}

.edit-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(var(--kelp-300-rgb), 0.5);
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
}

.edit-input:focus {
  outline: none;
  border-color: var(--kelp-500);
  box-shadow: 0 0 0 2px rgba(var(--kelp-500-rgb), 0.1);
}

.edit-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--kelp-700);
  cursor: pointer;
}

.edit-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--kelp-500);
}

.edit-actions {
  display: flex;
  gap: 0.75rem;
}

.save-btn,
.cancel-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.save-btn {
  background: #22c55e;
  color: white;
}

.save-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.cancel-btn {
  background: var(--kelp-300);
  color: var(--kelp-700);
}

.cancel-btn:hover {
  background: var(--kelp-400);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-image-manager {
    padding: 1rem;
  }
  
  .section-images-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-image-card {
    max-width: 100%;
  }
  
  .section-image-preview {
    height: 200px;
  }
  
  .image-actions {
    flex-direction: column;
  }
  
  .edit-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section-image-manager-header h2 {
    font-size: 1.5rem;
  }
  
  .section-image-details {
    padding: 1rem;
  }
  
  .section-image-preview {
    height: 180px;
  }
}
/* =================== DISCOUNT MANAGEMENT STYLES =================== */

.discount-management {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: var(--font-primary);
}

/* =================== HEADER SECTION =================== */
.discount-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(var(--kelp-200-rgb), 0.3);
}

.discount-header-content h1 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--kelp-900);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.discount-header-content p {
  color: var(--kelp-600);
  margin: 0;
  font-size: 0.9rem;
}

.create-discount-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--kelp-700), var(--kelp-800));
  color: var(--kelp-100);
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.create-discount-btn:hover {
  background: linear-gradient(135deg, var(--kelp-600), var(--kelp-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--kelp-800-rgb), 0.2);
}

/* =================== STATS SECTION =================== */
.discount-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--kelp-50);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--kelp-200-rgb), 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--kelp-200), var(--kelp-300));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kelp-700);
}

.stat-icon.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.stat-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--kelp-900);
  margin: 0 0 0.25rem 0;
}

.stat-content p {
  font-size: 0.8rem;
  color: var(--kelp-600);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =================== ERROR MESSAGE =================== */
.discount-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  color: #dc2626;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* =================== TABLE SECTION =================== */
.discount-table-container {
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(var(--kelp-200-rgb), 0.3);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.discount-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.discount-table th {
  background: var(--kelp-50);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--kelp-800);
  border-bottom: 1px solid rgba(var(--kelp-200-rgb), 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.discount-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(var(--kelp-100-rgb), 0.5);
  vertical-align: middle;
}

.discount-table tr:hover {
  background: rgba(var(--kelp-50-rgb), 0.5);
}

.discount-table tr.inactive {
  opacity: 0.6;
}

/* =================== TABLE CELL STYLES =================== */
.code-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-text {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--kelp-800);
  background: rgba(var(--kelp-100-rgb), 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--kelp-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(var(--kelp-200-rgb), 0.5);
  color: var(--kelp-700);
}

.description-cell {
  max-width: 200px;
}

.description-text {
  color: var(--kelp-700);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.type-cell {
  display: flex;
  align-items: center;
}

.type-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-badge.percentage {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.type-badge.fixed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.value-cell {
  font-weight: 600;
  color: var(--kelp-800);
}

.min-order-cell {
  color: var(--kelp-600);
  font-size: 0.8rem;
}

.usage-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.usage-text {
  font-weight: 500;
  color: var(--kelp-800);
}

.usage-bar {
  width: 100%;
  height: 4px;
  background: rgba(var(--kelp-200-rgb), 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kelp-400), var(--kelp-500));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.status-cell {
  display: flex;
  align-items: center;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-badge.inactive {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
}

.expires-cell {
  font-size: 0.8rem;
  color: var(--kelp-600);
}

.expires-cell .expired {
  color: #dc2626;
}

.expires-cell .no-expiry {
  color: var(--kelp-500);
  font-style: italic;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.action-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--kelp-500);
}

.action-btn:hover {
  background: rgba(var(--kelp-200-rgb), 0.5);
}

.action-btn.view:hover {
  color: var(--kelp-700);
}

.action-btn.edit:hover {
  color: #3b82f6;
}

.action-btn.toggle:hover {
  color: #f59e0b;
}

.action-btn.delete:hover {
  color: #dc2626;
}

/* =================== MODAL STYLES =================== */
.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: 1rem;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(var(--kelp-200-rgb), 0.3);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--kelp-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--kelp-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(var(--kelp-200-rgb), 0.5);
  color: var(--kelp-700);
}

/* =================== FORM STYLES =================== */
.discount-form {
  padding: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--kelp-800);
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid rgba(var(--kelp-300-rgb), 0.5);
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--kelp-500);
  box-shadow: 0 0 0 3px rgba(var(--kelp-500-rgb), 0.1);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--kelp-700);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--kelp-200-rgb), 0.3);
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: var(--kelp-100);
  color: var(--kelp-700);
  border: 1px solid rgba(var(--kelp-300-rgb), 0.5);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--kelp-200);
  border-color: var(--kelp-400);
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--kelp-700), var(--kelp-800));
  color: var(--kelp-100);
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--kelp-600), var(--kelp-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--kelp-800-rgb), 0.2);
}

/* =================== USAGE MODAL STYLES =================== */
.usage-modal .modal-content {
  max-width: 500px;
}

.usage-details {
  padding: 1.5rem;
}

.usage-stat {
  text-align: center;
  margin-bottom: 2rem;
}

.usage-stat h3 {
  font-size: 0.9rem;
  color: var(--kelp-600);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.usage-number {
  font-size: 3rem;
  font-weight: 300;
  color: var(--kelp-900);
  margin: 0 0 0.25rem 0;
}

.usage-limit {
  font-size: 0.85rem;
  color: var(--kelp-500);
  margin: 0;
}

.usage-progress {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(var(--kelp-200-rgb), 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kelp-400), var(--kelp-500));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--kelp-600);
  margin: 0;
}

.usage-info {
  background: var(--kelp-50);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--kelp-200-rgb), 0.3);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(var(--kelp-200-rgb), 0.2);
  font-size: 0.85rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: var(--kelp-600);
  font-weight: 500;
}

.info-row span:last-child {
  color: var(--kelp-800);
}

.status-active {
  color: #10b981 !important;
  font-weight: 600;
}

.status-inactive {
  color: #6b7280 !important;
  font-weight: 600;
}

.expired {
  color: #dc2626 !important;
  font-weight: 600;
}

/* =================== LOADING STATE =================== */
.discount-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(var(--kelp-200-rgb), 0.3);
  border-top: 3px solid var(--kelp-500);
  border-radius: 50%;
  /* animation: spin 1s linear infinite; - DISABLED FOR PERFORMANCE */
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.discount-loading p {
  color: var(--kelp-600);
  margin: 0;
  font-size: 0.9rem;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 1024px) {
  .discount-management {
    padding: 1rem;
  }
  
  .discount-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .create-discount-btn {
    align-self: flex-start;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .discount-stats {
    grid-template-columns: 1fr;
  }
  
  .discount-table {
    font-size: 0.75rem;
  }
  
  .discount-table th,
  .discount-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .actions-cell {
    flex-wrap: wrap;
    gap: 0.125rem;
  }
  
  .action-btn {
    padding: 0.375rem;
  }
  
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .discount-header-content h1 {
    font-size: 1.5rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  
  .stat-content h3 {
    font-size: 1.25rem;
  }
  
  .discount-table th {
    font-size: 0.7rem;
  }
  
  .discount-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .type-badge,
  .status-badge {
    font-size: 0.65rem;
    padding: 0.125rem 0.375rem;
  }
} 