/* ─────────────────────────────────────────────────────────────
   seller-navigation.css — dark/light theme enabled
   Requires theme-core.css to be loaded BEFORE this file.
   ───────────────────────────────────────────────────────────── */

/* ─── Topbar ─────────────────────────────────────────────────────────── */
:root {
  --topbar-h: 60px;
}

.navbar-custom,
nav.navbar-custom {
  position: fixed !important;
  top: 0;
  left: var(--sidebar-w, 64px);
  right: 0;
  height: var(--topbar-h);
  background: rgba(var(--rgb-surface-tint), 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--shadow-color-sm, rgba(0, 0, 0, 0.07)) !important;
  display: flex !important;
  align-items: center;
  padding: 0 20px !important;
  gap: 12px;
  z-index: 150;
  transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 0 var(--shadow-color-sm, rgba(0, 0, 0, 0.04));
  font-family: "DM Sans", "Quicksand", sans-serif;
  flex-wrap: nowrap !important;
  margin-left: 0 !important;
}

.sidebar:hover ~ .navbar-custom {
  left: var(--sidebar-expanded, 260px);
}

.tb-logo-mobile {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: "Syne", "Quicksand", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #09090b);
  text-decoration: none;
  flex-shrink: 0;
}

.tb-logo-mobile .tb-logo-mark {
  width: 100px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-logo-mobile .tb-logo-mark i {
  color: var(--bg-surface, #fff);
  font-size: 14px;
}

.tb-logo-mobile span {
  color: var(--accent, #5e17eb);
}

.tb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted, #a1a1aa);
  flex-shrink: 0;
  white-space: nowrap;
}

.tb-breadcrumb .tb-crumb-cur {
  color: var(--text-primary, #09090b);
  font-weight: 600;
}

.tb-breadcrumb i {
  font-size: 11px;
}

.tb-search {
  flex: 1;
  max-width: 440px;
  position: relative;
  margin: 0 16px;
}

.tb-search input,
.modern-search-input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--shadow-color-md, rgba(0, 0, 0, 0.09));
  border-radius: 9px;
  background: var(--bg-subtle, #f4f4f6);
  padding: 0 72px 0 36px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary, #09090b);
  outline: none;
  transition: all 0.2s;
}

.tb-search input::placeholder {
  color: var(--text-muted, #a1a1aa);
}

.tb-search input:focus {
  border-color: var(--accent, #5e17eb);
  background: var(--bg-surface, #fff);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.1);
}

.tb-search-icon-left {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #a1a1aa);
  font-size: 16px;
  pointer-events: none;
}

.tb-search-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-muted, #a1a1aa);
  background: var(--border-color, #ebebef);
  border: 1px solid var(--shadow-color-md, rgba(0, 0, 0, 0.08));
  border-radius: 4px;
  padding: 2px 5px;
  font-family: monospace;
  pointer-events: none;
}

.modern-search {
  display: contents;
}

.new-order-alert,
#newOrderAlert {
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    135deg,
    var(--accent, #5e17eb),
    var(--accent-alt, #7c3aed)
  );
  color: var(--bg-surface, #fff);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  animation: tb-pulse 2.4s ease-in-out infinite;
  box-shadow: 0 4px 14px rgba(94, 23, 235, 0.35);
}

#newOrderAlert.d-none {
  display: none !important;
}

@keyframes tb-pulse {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(94, 23, 235, 0.35);
  }

  50% {
    box-shadow: 0 4px 24px rgba(94, 23, 235, 0.55);
  }
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.tb-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--shadow-color-md, rgba(0, 0, 0, 0.08));
  background: var(--bg-surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary-strong, #52525b);
  font-size: 18px;
  position: relative;
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.tb-icon-btn:hover {
  border-color: var(--accent, #5e17eb);
  color: var(--accent, #5e17eb);
  background: rgba(94, 23, 235, 0.08);
  text-decoration: none;
}

.tb-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: var(--accent, #5e17eb);
  color: var(--bg-surface, #fff);
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid var(--bg-surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.tb-icon-badge.red {
  background: var(--danger, #ef4444);
}

.tb-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border-radius: 10px;
  border: 1px solid var(--shadow-color-md, rgba(0, 0, 0, 0.08));
  background: var(--bg-surface, #fff);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.tb-account:hover {
  border-color: var(--accent, #5e17eb);
  background: rgba(94, 23, 235, 0.06);
  text-decoration: none;
}

.tb-account img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(94, 23, 235, 0.2);
  flex-shrink: 0;
}

.tb-account-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary, #09090b);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-account-chevron {
  font-size: 14px;
  color: var(--text-muted, #a1a1aa);
}

.navigation-dropdown-menu {
  border: 1px solid var(--shadow-color-md, rgba(0, 0, 0, 0.08)) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 28px var(--shadow-color-md, rgba(0, 0, 0, 0.1)) !important;
  padding: 10px 0 !important;
  min-width: 300px;
}

.nofification-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--shadow-color-sm, rgba(0, 0, 0, 0.05));
  transition: background 0.15s;
}

.nofification-alert:last-child {
  border-bottom: none;
}

.nofification-alert:hover {
  background: var(--bg-subtle, #f4f4f6);
}

.notification-alert-text {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary, #09090b);
  margin: 0;
}

.notification-alert-date {
  font-size: 11px;
  color: var(--text-muted, #a1a1aa);
  margin-top: 2px;
  display: block;
}

.notification-inner-icon-1,
.notification-inner-icon-2,
.notification-inner-icon-3 {
  font-size: 16px;
  color: var(--text-muted, #a1a1aa);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 340px;
  background: var(--bg-surface, #fff);
  box-shadow: -4px 0 24px var(--shadow-color-md, rgba(0, 0, 0, 0.1));
  border-left: 1px solid var(--shadow-color-sm, rgba(0, 0, 0, 0.07));
  z-index: 1000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-panel.active {
  right: 0;
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--shadow-color-lg, rgba(0, 0, 0, 0.3));
  z-index: 999;
}

.ms-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-surface, #fff);
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.ms-overlay.open {
  display: flex;
  transform: translateY(0);
}

.ms-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color, #f0f0f2);
  flex-shrink: 0;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

.ms-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--shadow-color-md, rgba(0, 0, 0, 0.08));
  background: var(--bg-subtle, #f4f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary-strong, #374151);
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.ms-back-btn:hover {
  background: rgba(94, 23, 235, 0.1);
  color: var(--accent, #5e17eb);
  border-color: var(--accent, #5e17eb);
}

.ms-input-wrap {
  flex: 1;
  position: relative;
}

.ms-input-wrap i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-muted, #a1a1aa);
  pointer-events: none;
}

.ms-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid rgba(94, 23, 235, 0.25);
  border-radius: 11px;
  background: var(--bg-subtle, #f4f4f6);
  padding: 0 14px 0 38px;
  font-size: 15px;
  color: var(--text-primary, #09090b);
  outline: none;
  font-family: "DM Sans", "Quicksand", sans-serif;
  transition: all 0.2s;
}

.ms-input:focus {
  border-color: var(--accent, #5e17eb);
  background: var(--bg-surface, #fff);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.1);
}

.ms-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border-strong, #d1d5db);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bg-surface, #fff);
  font-size: 13px;
  padding: 0;
}

.ms-clear-btn.visible {
  display: flex;
}

.ms-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.ms-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted, #a1a1aa);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 18px 6px;
}

.ms-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--bg-subtle, #f7f7f8);
}

.ms-suggestion:last-child {
  border-bottom: none;
}

.ms-suggestion:active,
.ms-suggestion:hover {
  background: rgba(94, 23, 235, 0.05);
}

.ms-suggestion-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-subtle, #f4f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
  color: var(--text-muted, #9ca3af);
}

.ms-suggestion-text {
  flex: 1;
  min-width: 0;
}

.ms-suggestion-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #09090b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-suggestion-title mark {
  background: none;
  color: var(--accent, #5e17eb);
  font-weight: 700;
  padding: 0;
}

.ms-suggestion-sub {
  font-size: 11.5px;
  color: var(--text-muted, #a1a1aa);
  margin-top: 1px;
}

.ms-suggestion-arrow {
  font-size: 15px;
  color: var(--border-strong, #d1d5db);
  flex-shrink: 0;
}

.ms-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--text-muted, #a1a1aa);
  text-align: center;
}

.ms-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--border-color, #e5e7eb);
}

.ms-empty p {
  font-size: 14px;
}

.ms-recents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 18px 12px;
}

.ms-recent-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle, #f4f4f6);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 20px;
  padding: 5px 10px 5px 8px;
  font-size: 12.5px;
  color: var(--text-secondary-strong, #374151);
  cursor: pointer;
  transition: all 0.15s;
  max-width: 180px;
}

.ms-recent-chip:hover {
  background: rgba(94, 23, 235, 0.08);
  border-color: var(--accent, #5e17eb);
  color: var(--accent, #5e17eb);
}

.ms-recent-chip i {
  font-size: 13px;
  color: var(--text-muted, #9ca3af);
}

.ms-recent-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-recent-chip .ms-chip-remove {
  font-size: 12px;
  color: var(--border-strong, #d1d5db);
  margin-left: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.ms-recent-chip .ms-chip-remove:hover {
  color: var(--danger, #ef4444);
}

.tb-search-mobile-btn {
  display: none;
}

@media (max-width: 767px) {
  .tb-search-mobile-btn {
    display: flex;
  }
}

@media (max-width: 767px) {
  .navbar-custom,
  nav.navbar-custom {
    left: 0 !important;
    padding: 0 14px !important;
    justify-content: space-between;
  }

  .sidebar:hover ~ .navbar-custom {
    left: 0 !important;
  }

  .tb-logo-mobile {
    display: flex !important;
  }

  .tb-breadcrumb {
    display: none !important;
  }

  .tb-search {
    display: none !important;
  }

  .tb-account-name {
    display: none !important;
  }

  .new-order-alert,
  #newOrderAlert {
    display: none !important;
  }

  .tb-right {
    gap: 4px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .navbar-custom,
  nav.navbar-custom {
    left: var(--sidebar-w, 64px);
  }

  .sidebar:hover ~ .navbar-custom {
    left: var(--sidebar-expanded, 260px);
  }

  .tb-account-name {
    display: none;
  }

  .tb-search {
    max-width: 260px;
  }
}

.country-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(94, 23, 235, 0.25);
  background: rgba(94, 23, 235, 0.04);
  cursor: pointer;
  transition: all 0.18s;
}

.country-select-btn:hover {
  border-color: var(--accent, #5e17eb);
  background: rgba(94, 23, 235, 0.09);
}

.country-select-btn .csb-flag {
  width: 24px;
  height: 17px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--shadow-color-md, rgba(0, 0, 0, 0.1));
}

.country-select-btn .csb-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.country-select-btn .csb-micro {
  font-size: 9px;
  color: var(--accent-alt, #7c3aed);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.country-select-btn .csb-country {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary, #09090b);
}

.country-select-btn .csb-chevron {
  font-size: 11px;
  color: var(--text-muted, #9ca3af);
}

/* ── Theme toggle row — inside account dropdown ──────────────── */
.theme-toggle-divider {
  height: 1px;
  background: var(--border-color, #e6e6f0);
  margin: 6px 14px 4px;
}

.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 2px 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.theme-toggle-row:hover {
  background: var(--bg-subtle, #f3f4f6);
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #09090b);
}

.theme-toggle-label i {
  font-size: 16px;
  color: var(--text-secondary, #6b7280);
}

.theme-toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: var(--border-strong, #d1d5db);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.theme-toggle-switch.on {
  background: var(--accent, #5e17eb);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-surface, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.theme-toggle-switch.on .theme-toggle-thumb {
  transform: translateX(16px);
}

/* ── Account switcher — redesigned profile rows ──────────────── */
.acct-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #a1a1aa);
  padding: 8px 16px 4px;
}

.acct-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  margin: 0 6px 2px;
  border-radius: 10px;
}

.acct-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.acct-row-main:hover {
  background: var(--bg-subtle, #f3f4f6);
}

.acct-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color, #e6e6f0);
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.acct-row-main:hover .acct-avatar {
  border-color: var(--accent, #5e17eb);
}

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

.acct-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary, #09090b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.acct-sub {
  font-size: 11px;
  color: var(--text-muted, #a1a1aa);
  margin-top: 1px;
}

.acct-chevron {
  font-size: 13px;
  color: var(--border-strong, #d1d5db);
  flex-shrink: 0;
  transition:
    color 0.2s,
    transform 0.2s;
}

.acct-row-main:hover .acct-chevron {
  color: var(--accent, #5e17eb);
  transform: translateX(2px);
}

.acct-remove-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition:
    background 0.15s,
    color 0.15s;
}

.acct-remove-btn:hover {
  background: var(--danger-pale-bg, #fee2e2);
  color: var(--danger, #ef4444);
}

.acct-remove-btn i {
  font-size: 14px;
  pointer-events: none;
}

/* ── Add New Account button ───────────────────────────────────── */
.acct-add-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin: 6px 6px 2px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #5e17eb);
  text-decoration: none;
  transition: background 0.15s;
}

.acct-add-btn:hover {
  background: var(--accent-pale-bg, #eceaff);
  color: var(--accent, #5e17eb);
  text-decoration: none;
}

.acct-add-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-pale-bg, #eceaff);
  color: var(--accent, #5e17eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}

.acct-add-btn:hover .acct-add-icon {
  background: var(--accent, #5e17eb);
  color: var(--bg-surface, #fff);
}
