/* ==========================================================================
   SELLORA CUSTOMER DASHBOARD — COMPLETE ULTRA-PREMIUM STYLESHEET
   100% Robust, High-End Card UI, Steppers, Notifications, Inbox & Sidebar
   ========================================================================== */

.customer-dashboard-wrapper {
  background-color: var(--app-body-bg, #f8fafd);
  min-height: calc(100vh - 280px);
}

/* Base Card Container Utility */
.customer-card-box {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eef2f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 18px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.customer-card-box:hover {
  border-color: #e2e8f0;
}

/* ==========================================================================
   1. CUSTOMER SIDEBAR
   ========================================================================== */

.customer-sidebar-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eef2f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  position: sticky;
  top: 100px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Profile Box Header */
.customer-profile-header {
  padding: 26px 20px 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  position: relative;
}

.customer-avatar-wrap {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  position: relative;
}

.customer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #e2e8f0, 0 6px 16px rgba(13, 110, 253, 0.15);
}

.customer-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0d6efd 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #e2e8f0, 0 6px 16px rgba(15, 23, 42, 0.12);
}

.customer-avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.customer-avatar-edit-badge:hover {
  transform: scale(1.12);
  background: #0d6efd;
  color: #ffffff;
}

.customer-profile-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.customer-profile-email {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 10px;
}

/* Verified Pill Badge */
.badge-verified-customer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulseGreen 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-dot-blue {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0d6efd;
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.6);
  animation: pulseBlue 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(13, 110, 253, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* Sidebar Nav Groups */
.customer-sidebar-nav {
  padding: 16px 12px;
}

.customer-nav-group-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 6px 12px;
  margin-top: 8px;
}

.customer-nav-group-title:first-child {
  margin-top: 0;
}

.customer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 12px;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 3px;
  position: relative;
}

.customer-nav-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-nav-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.customer-nav-link:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  transform: translateX(2px);
}

.customer-nav-link:hover .customer-nav-icon-box {
  background: #ffffff;
  color: #0d6efd;
  border-color: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Active Nav State — Sleek Dark */
.customer-nav-link.active {
  background: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.customer-nav-link.active .customer-nav-icon-box {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.customer-nav-link.active .customer-nav-arrow {
  color: rgba(255, 255, 255, 0.7) !important;
}

.customer-nav-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
}

.customer-nav-link.active .customer-nav-badge {
  background: #0d6efd !important;
  color: #ffffff !important;
  border: none !important;
}

/* Priority Help Box */
.customer-sidebar-help {
  margin: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}

/* ==========================================================================
   2. HERO BADGES & DASHBOARD STAT METRICS
   ========================================================================== */

.hero-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.hero-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0 !important;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.75rem;
}

.customer-stat-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eef2f6;
  padding: 22px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.customer-stat-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.customer-stat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.customer-stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.customer-stat-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   3. ACTIVE SHIPMENT TRACKER & STEPPERS (100% ROBUST FLEXBOX)
   ========================================================================== */

.active-shipment-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 18px rgba(15, 23, 42, 0.03);
}

.shipment-stepper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  position: relative !important;
  margin: 36px 12px 24px !important;
  padding: 0 !important;
}

.shipment-stepper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.shipment-stepper-progress {
  position: absolute;
  top: 20px;
  left: 36px;
  height: 3px;
  background: #0d6efd;
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shipment-step-node {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: transparent;
  min-width: 75px;
  max-width: 140px;
}

.shipment-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem;
  margin-bottom: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.shipment-step-node.completed .shipment-step-icon {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.shipment-step-node.active .shipment-step-icon {
  background: #ffffff;
  border-color: #0d6efd;
  color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2), 0 4px 12px rgba(13, 110, 253, 0.15);
}

.shipment-step-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

.shipment-step-node.completed .shipment-step-label,
.shipment-step-node.active .shipment-step-label {
  color: #0f172a;
  font-weight: 800;
}

/* ==========================================================================
   4. GENERAL CARD & FILTER BAR
   ========================================================================== */

.customer-order-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eef2f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 18px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.customer-order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.order-card-header {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-id-tag {
  font-family: 'Inter', monospace, sans-serif;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.order-status-pill.in-transit {
  background: #eef5ff;
  color: #0d6efd;
  border: 1px solid #c7d9ff;
}

.order-status-pill.delivered {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.order-status-pill.cancelled {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.order-price-display {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.order-card-body {
  padding: 22px 24px;
}

.order-product-thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.order-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.order-spec-tag {
  display: inline-block;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.order-eta-strip {
  background: #f0f7ff;
  border: 1px solid #d0e4ff;
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-eta-text {
  font-size: 0.8125rem;
  color: #1e40af;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-card-footer {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Order Item Card Utility */
.customer-order-item-card {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #edf2f7;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.customer-order-item-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Action Buttons */
.btn-order-action {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-order-action-primary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
}

.btn-order-action-primary:hover {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.btn-order-action-outline {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-order-action-outline:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-order-action-soft {
  background: #eef5ff;
  color: #0d6efd;
  border: 1px solid #d0e4ff;
}

.btn-order-action-soft:hover {
  background: #0d6efd;
  color: #ffffff;
}

/* Filter Segmented Control */
.orders-filter-segmented {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 5px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.orders-filter-tab {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.orders-filter-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.orders-filter-tab.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.orders-tab-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  transition: all 0.2s ease;
}

.orders-filter-tab.active .orders-tab-count {
  background: #0f172a;
  color: #ffffff;
}

/* Search Box */
.customer-search-box {
  position: relative;
  min-width: 280px;
}

.customer-search-input {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 9px 16px 9px 40px;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  width: 100%;
}

.customer-search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
  outline: none;
}

.customer-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 1rem;
}

/* ==========================================================================
   5. NOTIFICATIONS LIST (FLUID HORIZONTAL LAYOUT)
   ========================================================================== */

.customer-notification-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background-color 0.15s ease;
  background: #ffffff;
}

.customer-notification-item:last-child {
  border-bottom: none !important;
}

.customer-notification-item.unread {
  background-color: #f8faff !important;
}

.customer-notification-item:hover {
  background-color: #f1f5f9 !important;
}

.customer-notif-icon-wrap {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   6. INBOX / CHAT
   ========================================================================== */

.customer-inbox-wrapper {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #eef2f6;
  min-height: 560px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 18px rgba(15, 23, 42, 0.03);
}

.customer-inbox-sidebar {
  border-right: 1px solid #f1f5f9;
  max-height: 560px;
  overflow-y: auto;
}

.customer-chat-thread-item {
  padding: 16px 18px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.customer-chat-thread-item:hover {
  background-color: #f8fafc;
}

.customer-chat-thread-item.active {
  background-color: #eef5ff;
  border-left: 3px solid #0d6efd;
}

.customer-chat-bubble-received {
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 18px;
  max-width: 75%;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.customer-chat-bubble-sent {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 18px;
  max-width: 75%;
  margin-left: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   7. FORM CONTROLS & UTILITIES
   ========================================================================== */

.customer-form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.customer-form-control {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.875rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.customer-form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

@media (max-width: 575.98px) {
  .shipment-stepper {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
    margin: 20px 0 !important;
  }
  .shipment-stepper::before {
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    height: auto;
    right: auto;
  }
  .shipment-stepper-progress {
    left: 20px;
    top: 20px;
    width: 3px;
    height: 65%;
  }
  .shipment-step-node {
    flex-direction: row !important;
    gap: 12px;
    text-align: left;
    max-width: 100%;
  }
}
