/* ==========================================================================
   EvoriaBloom - E-Commerce Label Crop & Sort Tool
   Custom Styles & Modern SaaS Theme
   ========================================================================== */

:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  
  --meesho-color: #8b1858;
  --meesho-bg: #fdf2f8;
  --amazon-color: #ff9900;
  --amazon-bg: #fffbeb;
  --flipkart-color: #2874f0;
  --flipkart-bg: #eff6ff;
  
  --brand-primary: #4f46e5;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Base resets & typography */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
  color: #1e293b;
}

/* Glowing backgrounds & Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Subtle gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dropzone Styling */
.dropzone-border {
  border: 2px dashed #cbd5e1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone-border:hover, .dropzone-border.drag-active {
  border-color: #3b82f6;
  background-color: #eff6ff;
  transform: translateY(-2px);
}

/* Sortable List Item Styling */
.sku-item {
  transition: all 0.2s ease;
  user-select: none;
}

.sku-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.08);
}

.sku-item.sortable-ghost {
  opacity: 0.35;
  background-color: #e0f2fe;
  border: 2px dashed #0284c7;
}

.sku-item.sortable-chosen {
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Custom Checkbox */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s ease;
}

.custom-checkbox::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #2563eb;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox:checked {
  border-color: #2563eb;
  background-color: #eff6ff;
}

.custom-checkbox:checked::before {
  transform: scale(1);
}

/* Pulsing badge dot */
.pulse-dot {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

/* Modal Animation */
.modal-enter {
  animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tab active indicator */
.tab-btn {
  transition: all 0.25s ease;
}

.tab-btn.active-meesho {
  background-color: #8b1858 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(139, 24, 88, 0.35);
}

.tab-btn.active-amazon {
  background-color: #131921 !important;
  color: #ff9900 !important;
  box-shadow: 0 4px 14px 0 rgba(19, 25, 33, 0.35);
}

.tab-btn.active-flipkart {
  background-color: #2874f0 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(40, 116, 240, 0.35);
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
