@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
  font-size: 16px;
}

@media (min-width: 1024px) and (max-width: 1440px) {
  html {
    font-size: 14px; /* Scales down all rem-based sizes on medium laptops/monitors */
  }
}

@media (min-width: 1441px) {
  html {
    font-size: 15.5px; /* Scales back up slightly on larger desktop monitors to prevent tiny text */
  }
}

:root {
  color-scheme: light;
  /* Brand Colors */
  --color-primary: #2563eb; /* Royal Blue */
  --color-primary-hover: #1d4ed8;
  --color-accent: #5e17eb; /* Purple */
  --color-accent-hover: #4b12bd;
  
  /* Light Theme Colors (Default) */
  --color-bg: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --color-sidebar-bg: #0f172a;
  --color-sidebar-text: #94a3b8;
  --color-sidebar-active: #3b82f6;
  --color-sidebar-hover: rgba(255, 255, 255, 0.05);

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Badge Colors Light Mode */
  --badge-success-bg: rgba(5, 250, 147, 0.15);
  --badge-success-text: #065f46;
  --badge-danger-bg: rgba(239, 68, 68, 0.15);
  --badge-danger-text: #b91c1c;
  --badge-warning-bg: rgba(245, 158, 11, 0.15);
  --badge-warning-text: #92400e;
  --badge-info-bg: rgba(59, 130, 246, 0.15);
  --badge-info-text: #1e40af;
  --badge-neutral-bg: #f3f4f6;
  --badge-neutral-text: #374151;
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.4);
  --shadow-glow-accent: 0 0 15px rgba(94, 23, 235, 0.4);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* Dark Theme Colors */
  --color-bg: #0b0f19;
  --color-surface: #131b2e;
  --color-surface-hover: #1e293b;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #1e293b;
  
  /* Badge Colors Dark Mode */
  --badge-success-bg: rgba(5, 250, 147, 0.15);
  --badge-success-text: #6ee7b7;
  --badge-danger-bg: rgba(239, 68, 68, 0.15);
  --badge-danger-text: #fca5a5;
  --badge-warning-bg: rgba(245, 158, 11, 0.15);
  --badge-warning-text: #fcd34d;
  --badge-info-bg: rgba(59, 130, 246, 0.15);
  --badge-info-text: #93c5fd;
  --badge-neutral-bg: rgba(255, 255, 255, 0.1);
  --badge-neutral-text: #cbd5e1;

  --color-sidebar-bg: #070a13;
  --color-sidebar-text: #94a3b8;
  --color-sidebar-active: #3b82f6;
  --color-sidebar-hover: rgba(255, 255, 255, 0.03);
  
  /* Adjusted Shadows for Dark Mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: var(--transition-theme);
}

a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 600;
  line-height: 1.2;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.btn-accent:hover {
  background-color: #4b12bd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-surface);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-gray);
  color: var(--color-text-main);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: var(--color-bg);
  color: var(--color-text-main);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5, 250, 147, 0.2);
}

/* Layout Specifics */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-gray) 100%);
  padding: 2rem;
}

.auth-split-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 950px;
  justify-content: center;
  align-items: stretch;
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  flex: 1;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-image-card {
  flex: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  position: relative;
  overflow: hidden;
  display: none; /* hidden on mobile */
}

@media (min-width: 768px) {
  .auth-image-card {
    display: block;
  }
}

.auth-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative element for card */
.auth-card::before, .auth-image-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 10;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  max-width: 180px;
  height: auto;
}

.auth-logo img.dark-logo {
  display: none;
}

[data-theme="dark"] .auth-logo img.light-logo {
  display: none;
}

[data-theme="dark"] .auth-logo img.dark-logo {
  display: inline-block;
}

.auth-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* Utilities for messages */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: none;
}

.alert-error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: block;
}

.alert-success {
  background-color: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
  display: block;
}

/* ==========================================================================
   Shipments View Components & Layout
   ========================================================================== */

/* KPIs and Stats */
.shipments-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.shipments-kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.shipments-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shipments-kpi-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-gray);
}

.shipments-kpi-card.kpi-total::after { background-color: var(--color-accent); }
.shipments-kpi-card.kpi-despachado::after { background-color: #10b981; }
.shipments-kpi-card.kpi-sin-movimiento::after { background-color: #f59e0b; }
.shipments-kpi-card.kpi-alerta::after { background-color: #ef4444; }

.kpi-icon {
  font-size: 2rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

/* Filters Panel */
.shipments-filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.filter-item-search {
  flex: 2;
  min-width: 260px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
}

.filter-input {
  height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--color-text-main);
  background-color: var(--color-surface);
  width: 100%;
  transition: border-color 0.15s ease;
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-filter-action {
  height: 38px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-export {
  background-color: #10b981;
  color: white;
  box-shadow: var(--shadow-sm);
  border: none;
}

.btn-export:hover {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Shipment Table Interaction */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background-color: rgba(94, 23, 235, 0.04) !important; /* light purple highlight */
}

/* Headers sorting indicators */
.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.5rem !important;
  transition: background-color 0.2s ease;
}

.sortable-header:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.sort-indicator {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.sortable-header:hover .sort-indicator {
  opacity: 0.8;
}

/* Modal Details and Stepper */
.shipment-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .shipment-detail-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.shipment-detail-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  background-color: var(--color-surface);
  overflow: hidden;
}

.shipment-detail-title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.75rem 1.25rem;
  background: var(--color-surface-hover);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
  transition: background 0.15s;
}

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

.detail-info-row:hover {
  background: var(--color-surface-hover);
}

.detail-info-label {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  flex-shrink: 0;
  min-width: 120px;
}

.detail-info-value {
  font-weight: 600;
  color: var(--color-text-main);
  text-align: right;
  word-break: break-word;
  font-size: 0.875rem;
}

.shipment-detail-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
  padding-bottom: 0.375rem;
}

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

.detail-info-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.detail-info-value {
  font-weight: 600;
  color: var(--color-text-main);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Timeline/Stepper Component */
.timeline-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0 2rem 0;
  padding: 0 1rem;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background-color: var(--color-border);
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 15px;
  left: 2rem;
  height: 4px;
  background-color: var(--color-accent);
  z-index: 2;
  transition: width 0.5s ease;
  width: 0%;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 80px;
}

.timeline-bubble {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  text-align: center;
  white-space: nowrap;
}

/* Active and completed stepper states */
.timeline-step.completed .timeline-bubble {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.timeline-step.completed .timeline-label {
  color: var(--color-accent);
  font-weight: 700;
}

.timeline-step.active .timeline-bubble {
  border-color: var(--color-accent);
  background-color: var(--color-surface);
  color: var(--color-accent);
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(94, 23, 235, 0.2);
}

.timeline-step.active .timeline-label {
  color: var(--color-accent);
  font-weight: 700;
}

.timeline-step.warning .timeline-bubble {
  border-color: #ef4444;
  background-color: #ef4444;
  color: var(--color-surface);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.timeline-step.warning .timeline-label {
  color: #ef4444;
  font-weight: 700;
}


/* Auth Form Toggle & Animations */
.auth-fade-in {
  animation: authFadeIn 0.3s ease forwards;
}

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

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

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(94, 23, 235, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 45px rgba(94, 23, 235, 0.6); }
}

@keyframes fadePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.55s cubic-bezier(.36,.07,.19,.97) both;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   Theme Toggle Button Styles — Pill Switch
   ========================================================================== */
.theme-toggle-btn {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: 99px;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.2s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
  overflow: visible;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 1px 3px rgba(0,0,0,0.1);
}

/* The sliding knob */
.theme-toggle-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s;
  z-index: 2;
}

/* Dark mode: shift knob right + warm amber tones */
html[data-theme="dark"] .theme-toggle-btn {
  background: linear-gradient(135deg, #312e81, #4f46e5);
  border-color: #4f46e5;
}

html[data-theme="dark"] .theme-toggle-btn::after {
  transform: translateX(30px);
  background: #f0f0ff;
  box-shadow: 0 1px 6px rgba(99, 102, 241, 0.5);
}

/* Light mode: azul cielo más saturado para que los íconos oscuros contrasten */
html:not([data-theme="dark"]) .theme-toggle-btn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-color: #0284c7;
}

/* Icons inside the pill */
.sun-icon {
  font-size: 14px;
  color: #92400e;       /* ámbar oscuro — contrasta sobre fondo celeste claro */
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
  transform: scale(1);
  z-index: 3;
  flex-shrink: 0;
  line-height: 1;
}

.moon-icon {
  font-size: 14px;
  color: #3730a3;       /* índigo oscuro — contrasta sobre fondo celeste claro */
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.3s;
  transform: scale(0.8);
  z-index: 3;
  flex-shrink: 0;
  line-height: 1;
}

/* Dark Mode: íconos blancos sobre fondo púrpura */
html[data-theme="dark"] .sun-icon {
  color: white;
  opacity: 0.25;
  transform: scale(0.8);
}

html[data-theme="dark"] .moon-icon {
  color: white;
  opacity: 1;
  transform: scale(1);
}

/* Floating Auth Theme Toggle */
.floating-theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .floating-theme-toggle {
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Shipments Module Redesign
   ========================================================================== */

/* Tabs */
.shipments-tabs, .integration-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.shipment-tab, .integration-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.shipment-tab:hover, .integration-tab:hover {
  color: var(--color-text-main);
}

.shipment-tab.active, .integration-tab.active {
  color: var(--color-accent);
}

.shipment-tab.active::after, .integration-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px 2px 0 0;
}

/* Enhanced KPIs */
.shipments-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.shipments-kpi-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.shipments-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.shipments-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shipments-kpi-card:hover::before {
  opacity: 1;
}

.kpi-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(94, 23, 235, 0.05);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* Slide-over Panel */
.slide-over-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slide-over-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-over panel */
.slide-over-panel {
  width: 100%;
  max-width: 520px;
  height: 100%;
  background-color: var(--color-bg);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.slide-over-overlay.active .slide-over-panel {
  transform: translateX(0);
}

.slide-over-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-surface);
  flex-shrink: 0;
}

.slide-over-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-main);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slide-over-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.slide-over-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
  transform: rotate(90deg);
}

.slide-over-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slide-over-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

/* Complementary Brand Button */
.btn-complementary {
  background-color: #0f172a;
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-complementary:hover {
  background-color: #1e293b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

html[data-theme="dark"] .btn-complementary {
  background-color: #f8fafc;
  color: #0f172a;
}
html[data-theme="dark"] .btn-complementary:hover {
  background-color: #e2e8f0;
}

/* Clickable Row Animation */
.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.clickable-row:hover {
  background-color: var(--color-surface-hover);
}

/* ==========================================================================
   Dashboard Module
   ========================================================================== */

/* Hero Banner */
/* Hero Banner */
.dashboard-hero {
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  background-color: var(--color-surface);
}
html[data-theme="dark"] .dashboard-hero {
  border-color: rgba(255,255,255,0.06);
}

.dashboard-hero-content {
  flex: 1;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.dashboard-hero-image {
  flex: 1;
  background: url('https://cdn.shopify.com/s/files/1/0625/6141/9483/files/Gemini_Generated_Image_sjwo2hsjwo2hsjwo.png?v=1782356005') center center / cover no-repeat;
  position: relative;
  min-height: 120px;
}

.dashboard-hero h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.3px;
}
.dashboard-hero p {
  color: var(--color-text-muted);
  max-width: 640px;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .dashboard-hero {
    flex-direction: column-reverse;
  }
}

/* Quick Stats Colors */
.stat-card-blue { background-color: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.stat-card-green { background-color: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.stat-card-yellow { background-color: #fef3c7; color: #92400e; border-color: #fde68a; }
.stat-card-purple { background-color: #f3e8ff; color: #6b21a8; border-color: #e9d5ff; }

html[data-theme="dark"] .stat-card-blue { background-color: rgba(56, 189, 248, 0.1); color: #38bdf8; border-color: rgba(56, 189, 248, 0.2); }
html[data-theme="dark"] .stat-card-green { background-color: rgba(52, 211, 153, 0.1); color: #34d399; border-color: rgba(52, 211, 153, 0.2); }
html[data-theme="dark"] .stat-card-yellow { background-color: rgba(251, 191, 36, 0.1); color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }
html[data-theme="dark"] .stat-card-purple { background-color: rgba(192, 132, 252, 0.1); color: #c084fc; border-color: rgba(192, 132, 252, 0.2); }

.stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border-width: 1px;
  border-style: solid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
}
.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Two Column Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Event & News Items */
.dashboard-list-item {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
  transition: background-color 0.2s ease;
}
.dashboard-list-item:last-child {
  border-bottom: none;
}
.dashboard-list-item:hover {
  background-color: var(--color-surface-hover);
}
.event-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  min-width: 80px;
}
.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.event-dot.warning { background-color: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.5); }
.event-dot.alert { background-color: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.event-dot.success { background-color: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.event-dot.info { background-color: #3b82f6; box-shadow: 0 0 8px rgba(59,130,246,0.5); }

.item-content {
  flex: 1;
}
.item-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.item-content p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
}

/* Notifications */
.notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.notification-item:hover {
  background-color: var(--color-surface-hover);
}
.notification-item.unread {
  background-color: rgba(37,99,235,0.05);
  border-left: 3px solid var(--color-primary);
}
.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-main);
}
.notification-message {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.notification-time {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* Custom Multi-select Dropdown styling */
.custom-multiselect {
  position: relative;
  width: 100%;
}

.multiselect-trigger {
  height: 38px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-text-main);
  background-color: var(--color-surface);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.multiselect-trigger:hover {
  border-color: var(--color-accent);
}

.multiselect-trigger .trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}

.multiselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
  flex-direction: column;
  max-height: 250px;
}

.multiselect-dropdown.show {
  display: flex;
}

.multiselect-actions {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.multiselect-actions button {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.multiselect-actions button:hover {
  text-decoration: underline;
}

.multiselect-options {
  overflow-y: auto;
  padding: 0.5rem 0;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-main);
  cursor: pointer;
  transition: background-color 0.2s;
}

.multiselect-option:hover {
  background-color: var(--color-border);
}

.multiselect-option input[type="checkbox"] {
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.multiselect-option label {
  cursor: pointer;
  flex: 1;
  text-transform: capitalize;
  user-select: none;
}

/* --- TICKET SYSTEM STYLES --- */
.ticket-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .ticket-layout-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
  }
  .ticket-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
  }
}

.ticket-card-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Chat Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
}

.chat-bubble.client {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble.admin {
  align-self: flex-start;
  background-color: var(--color-surface);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble.internal {
  align-self: flex-start;
  background-color: rgba(245, 158, 11, 0.08);
  color: var(--color-text-main);
  border: 1px dashed var(--color-warning);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-meta {
  display: flex;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  gap: 0.5rem;
}

.chat-bubble.client .chat-meta {
  color: rgba(255, 255, 255, 0.8);
  justify-content: flex-end;
}

.chat-bubble.internal .chat-meta {
  color: var(--color-warning);
}

.chat-bubble-sender {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.chat-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input-textarea {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  resize: none;
  font-family: inherit;
  font-size: 0.9rem;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
  max-height: 120px;
}

.chat-input-textarea:focus {
  border-color: var(--color-primary);
}

/* Badges y Detalles */
.badge-priority-urgente {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-priority-alta {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-priority-media {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-priority-baja {
  background-color: rgba(100, 116, 139, 0.1);
  color: var(--color-text-muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-status-abierto {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.badge-status-en_proceso {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--color-info);
}

.badge-status-resuelto {
  background-color: rgba(100, 116, 139, 0.15);
  color: var(--color-text-muted);
}

.badge-status-cerrado {
  background-color: rgba(15, 23, 42, 0.15);
  color: var(--color-text-main);
}

/* Sidebar Info Panel */
.ticket-sidebar-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.ticket-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

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

.ticket-info-label {
  color: var(--color-text-muted);
}

.ticket-info-value {
  font-weight: 500;
  color: var(--color-text-main);
}

/* System note inside chat */
.chat-system-message {
  align-self: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background-color: var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* KAM Contact card links */
.kam-link:hover {
  border-color: var(--color-primary) !important;
  background-color: var(--color-surface-hover) !important;
  box-shadow: var(--shadow-sm);
  color: var(--color-primary) !important;
}

/* Layout Split Dashboard */
.dashboard-layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1200px) {
  .dashboard-layout-split {
    grid-template-columns: 2.2fr 1fr;
  }
}

.stat-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card-modern {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-modern .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Stat card modern themes */
.stat-card-modern.blue { border-color: #bae6fd; }
.stat-card-modern.blue .icon-wrapper { background: rgba(3, 105, 161, 0.1); color: #0369a1; }
html[data-theme="dark"] .stat-card-modern.blue { border-color: rgba(56, 189, 248, 0.2); }
html[data-theme="dark"] .stat-card-modern.blue .icon-wrapper { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }

.stat-card-modern.green { border-color: #a7f3d0; }
.stat-card-modern.green .icon-wrapper { background: rgba(6, 95, 70, 0.1); color: #065f46; }
html[data-theme="dark"] .stat-card-modern.green { border-color: rgba(52, 211, 153, 0.2); }
html[data-theme="dark"] .stat-card-modern.green .icon-wrapper { background: rgba(52, 211, 153, 0.1); color: #34d399; }

.stat-card-modern.yellow { border-color: #fde68a; }
.stat-card-modern.yellow .icon-wrapper { background: rgba(146, 64, 14, 0.1); color: #92400e; }
html[data-theme="dark"] .stat-card-modern.yellow { border-color: rgba(251, 191, 36, 0.2); }
html[data-theme="dark"] .stat-card-modern.yellow .icon-wrapper { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

.stat-card-modern.purple { border-color: #e9d5ff; }
.stat-card-modern.purple .icon-wrapper { background: rgba(107, 33, 168, 0.1); color: #6b21a8; }
html[data-theme="dark"] .stat-card-modern.purple { border-color: rgba(192, 132, 252, 0.2); }
html[data-theme="dark"] .stat-card-modern.purple .icon-wrapper { background: rgba(192, 132, 252, 0.1); color: #c084fc; }

.stat-card-modern.red { border-color: #fecaca; }
.stat-card-modern.red .icon-wrapper { background: rgba(185, 28, 28, 0.1); color: #b91c1c; }
html[data-theme="dark"] .stat-card-modern.red { border-color: rgba(239, 68, 68, 0.2); }
html[data-theme="dark"] .stat-card-modern.red .icon-wrapper { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.stat-card-modern.indigo { border-color: #c7d2fe; }
.stat-card-modern.indigo .icon-wrapper { background: rgba(67, 56, 202, 0.1); color: #4338ca; }
html[data-theme="dark"] .stat-card-modern.indigo { border-color: rgba(129, 140, 248, 0.2); }
html[data-theme="dark"] .stat-card-modern.indigo .icon-wrapper { background: rgba(129, 140, 248, 0.1); color: #818cf8; }

.stat-card-modern.teal { border-color: #99f6e4; }
.stat-card-modern.teal .icon-wrapper { background: rgba(15, 118, 110, 0.1); color: #0f766e; }
html[data-theme="dark"] .stat-card-modern.teal { border-color: rgba(45, 212, 191, 0.2); }
html[data-theme="dark"] .stat-card-modern.teal .icon-wrapper { background: rgba(45, 212, 191, 0.1); color: #2dd4bf; }

.stat-card-modern .stat-value-modern {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

.stat-card-modern .stat-label-modern {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.dashboard-tables-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-tables-split {
    grid-template-columns: 35fr 65fr;
  }
}

.dashboard-tables-split-half {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-tables-split-half {
    grid-template-columns: 1fr 1fr;
  }
}

/* Auth Page Slider Styles */
.auth-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem 2.5rem;
  z-index: 1;
  box-sizing: border-box;
}

.auth-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.auth-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 10s ease-out;
}

.auth-slide.active .auth-slide-bg {
  transform: scale(1.05);
}

.auth-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 2;
}

.auth-slide-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-align: left;
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.auth-slide.active .auth-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.auth-slide-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-slide-icon i {
  font-size: 1.6rem;
  color: #60a5fa; /* Light blue accent for readability on dark backgrounds */
}

.auth-slide-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.auth-slide-desc {
  font-size: 0.9rem;
  color: rgba(243, 244, 246, 0.85);
  line-height: 1.5;
  margin: 0;
}

.auth-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 2.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.auth-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.auth-slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.auth-slider-dot.active {
  background: var(--color-primary);
  width: 22px;
  border-radius: 99px;
}

/* Premium CTA Button for Shopify Sync */
.btn-shopify-sync-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0.85rem 1.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: ctaPulseGlow 2.5s infinite !important;
}

.btn-shopify-sync-cta:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55), 0 0 20px rgba(16, 185, 129, 0.3) !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.btn-shopify-sync-cta:active {
  transform: translateY(0) scale(0.98) !important;
}

.btn-shopify-sync-cta i {
  font-size: 1.15rem;
  transition: transform 0.4s ease;
}

.btn-shopify-sync-cta:hover i {
  transform: rotate(180deg);
}

@keyframes ctaPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 4px 15px rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), 0 6px 22px rgba(16, 185, 129, 0.6);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 4px 15px rgba(16, 185, 129, 0.4);
  }
}

