/* ==========================================================================
   BAREEZA APPARELS - LUXURY ATELIER ADMIN PORTAL STYLES
   ========================================================================== */

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

:root {
  /* Dark Theme (Default Onyx & Gold Luxe) */
  --admin-bg: #0C0A0A;
  --admin-card-bg: #161313;
  --admin-card-border: rgba(212, 175, 55, 0.2);
  --admin-sidebar-bg: #080707;
  --admin-header-bg: rgba(12, 10, 10, 0.95);
  
  --admin-gold: #D4AF37;
  --admin-gold-light: #F3E5AB;
  --admin-gold-dark: #A98014;
  --admin-gold-subtle: rgba(212, 175, 55, 0.12);
  
  --admin-text-main: #F5F2EB;
  --admin-text-muted: #9E978E;
  --admin-text-dim: #6B655D;
  --admin-border: #262121;
  --admin-border-light: #332C2C;

  --admin-maroon: #871A31;
  --admin-emerald: #107050;
  --admin-blue: #1D5CA8;
  --admin-purple: #6B21A8;
}

/* Light Theme Palette (Crisp Luxury White / Ivory & Royal Gold) */
body.admin-body.theme-light {
  --admin-bg: #F8F5F0;
  --admin-card-bg: #FFFFFF;
  --admin-card-border: #E8E1D5;
  --admin-sidebar-bg: #FFFFFF;
  --admin-header-bg: rgba(255, 255, 255, 0.96);
  
  --admin-gold: #9B7816;
  --admin-gold-light: #5A4407;
  --admin-gold-dark: #7A5B0B;
  --admin-gold-subtle: rgba(155, 120, 22, 0.1);
  
  --admin-text-main: #1C1917;
  --admin-text-muted: #5C564E;
  --admin-text-dim: #8C8478;
  --admin-border: #E8E2D6;
  --admin-border-light: #F0EAE0;

  --admin-maroon: #781528;
  --admin-emerald: #0F6B4F;
  --admin-blue: #1D5CA8;
  --admin-purple: #6B21A8;
}

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

body.admin-body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Admin Layout Structure --- */
.admin-sidebar {
  width: 280px;
  background-color: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.admin-main {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--admin-bg);
}

/* Sidebar Brand Header */
.admin-brand-header {
  padding: 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-brand-logo {
  height: 44px;
  width: auto;
}
.admin-brand-tag {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--admin-gold);
  font-weight: 700;
}

/* Sidebar Nav */
.admin-nav {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}
.admin-nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--admin-text-dim);
  transition: color 0.2s ease;
}
.admin-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--admin-text-main);
}
.admin-nav-item:hover svg {
  color: var(--admin-gold);
}
.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18) 0%, transparent 100%);
  color: var(--admin-gold-light);
  border-left: 3px solid var(--admin-gold);
  font-weight: 600;
}
.admin-nav-item.active svg {
  color: var(--admin-gold);
}

.nav-badge-count {
  margin-left: auto;
  background: var(--admin-maroon);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* Sidebar Footer */
.admin-sidebar-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--admin-gold-dark);
  color: #121010;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.admin-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
}
.admin-user-role {
  font-size: 0.68rem;
  color: var(--admin-gold);
}

/* --- Top Header Navigation --- */
.admin-topbar {
  height: 72px;
  background-color: var(--admin-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--admin-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-page-title-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #FFFFFF;
}
.admin-page-title-wrap p {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-store-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--admin-gold-light);
  border: 1px solid var(--admin-gold-border);
  border-radius: 3px;
  transition: all 0.2s ease;
}
.btn-store-preview:hover {
  background: var(--admin-gold-subtle);
  border-color: var(--admin-gold);
}

/* --- Views Container --- */
.admin-content {
  padding: 32px;
  flex: 1;
}

.admin-view {
  display: none;
}
.admin-view.active {
  display: block;
  animation: fadeInAdmin 0.3s ease;
}

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

/* --- KPI Metrics Grid --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: 6px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--admin-gold), transparent);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kpi-title {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  font-weight: 600;
}
.kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--admin-gold-subtle);
  color: var(--admin-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-icon-wrap svg { width: 18px; height: 18px; }

.kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 0.72rem;
  color: var(--admin-text-dim);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-trend-up { color: #22C55E; font-weight: 600; }

/* --- Admin Data Tables & Controls --- */
.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #FFFFFF;
}

.admin-search-input {
  background: #0F0D0D;
  border: 1px solid var(--admin-border);
  color: #FFFFFF;
  padding: 8px 14px 8px 36px;
  border-radius: 4px;
  font-size: 0.82rem;
  outline: none;
  min-width: 240px;
}
.admin-search-input:focus {
  border-color: var(--admin-gold);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.admin-table th {
  padding: 12px 14px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
  background-color: rgba(255, 255, 255, 0.02);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
  color: var(--admin-text-main);
}

.admin-table tr:hover td {
  background-color: rgba(212, 175, 55, 0.03);
}

/* Product Item Row */
.table-product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
}
.table-product-thumb,
.catalog-thumb {
  width: 48px !important;
  height: 64px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  object-fit: cover !important;
  border-radius: 4px;
  border: 1px solid var(--admin-border-light);
  background: #0A0909;
  flex-shrink: 0;
}
.table-product-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.table-product-sku {
  font-size: 0.72rem;
  color: var(--admin-text-dim);
}

/* Tag Pills */
.tag-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--admin-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin: 2px;
}

/* Signature Outfits List in Dashboard */
.sig-outfit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sig-outfit-item:last-child {
  border-bottom: none;
}
.sig-outfit-img {
  width: 44px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 4px;
  border: 1px solid var(--admin-border-light);
  flex-shrink: 0;
}
.sig-outfit-info {
  flex: 1;
  min-width: 0;
}
.sig-outfit-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sig-outfit-meta {
  font-size: 0.72rem;
  color: var(--admin-text-dim);
}
.sig-outfit-price {
  font-weight: 700;
  color: var(--admin-gold);
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* Fulfilment Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.status-pending::before { background: #FACC15; }

.status-confirmed {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.status-confirmed::before { background: #60A5FA; }

.status-production {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.status-production::before { background: #C084FC; }

.status-dispatched {
  background: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.status-dispatched::before { background: #2DD4BF; }

.status-delivered {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-delivered::before { background: #4ADE80; }

.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-cancelled::before { background: #F87171; }

/* Table Action Buttons */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-btn {
  padding: 6px 10px;
  font-size: 0.72rem;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
}
.table-btn:hover {
  background: var(--admin-gold-subtle);
  color: var(--admin-gold-light);
  border-color: var(--admin-gold);
}
.table-btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: #EF4444;
}

/* --- Collections Grid View --- */
.collections-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.collection-admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.collection-admin-card:hover {
  border-color: var(--admin-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.collection-card-cover {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.collection-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.collection-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.collection-card-desc {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.collection-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Fulfilment Drawer & Modals (Fixed High Z-Index Hierarchy) --- */
#fulfilmentBackdrop.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
#fulfilmentBackdrop.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-out Fulfilment Drawer */
.fulfilment-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 540px;
  background: #181515;
  border-left: 1px solid var(--admin-card-border);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #F5F2EB;
}
.fulfilment-drawer.active {
  transform: translateX(0);
}

.fulfilment-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121010;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.admin-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-dialog {
  background: #161313;
  border: 1px solid var(--admin-card-border);
  border-radius: 6px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2101;
  color: #F5F2EB;
}

.admin-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121010;
}
.admin-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--admin-gold-light);
}

.admin-modal-body {
  padding: 24px;
}

.admin-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #121010;
}

/* Explicit Form Inputs Contrast */
.fulfilment-drawer input,
.fulfilment-drawer select,
.fulfilment-drawer textarea,
.admin-modal-dialog input,
.admin-modal-dialog select,
.admin-modal-dialog textarea {
  background: #0F0D0D !important;
  color: #FFFFFF !important;
  border: 1px solid #383131 !important;
}
.fulfilment-drawer input:focus,
.fulfilment-drawer select:focus,
.fulfilment-drawer textarea:focus,
.admin-modal-dialog input:focus,
.admin-modal-dialog select:focus,
.admin-modal-dialog textarea:focus {
  border-color: var(--admin-gold) !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25) !important;
}

.fulfilment-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom Measurement Box in Drawer */
.measure-detail-box {
  background: #0A0909;
  border: 1px dashed var(--admin-border-light);
  border-radius: 4px;
  padding: 16px;
  font-size: 0.8rem;
}
.measure-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

/* Product Picker Checkbox List */
.product-picker-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  padding: 10px;
  background: #0A0909;
}
.picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .collections-admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-two-col-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LUXURY ADMIN AUTHENTICATION GATE STYLES
   ========================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1C1718 0%, #0D0B0B 70%, #050404 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  background: #141111;
  border: 1px solid var(--admin-border-light);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.08);
  padding: 40px 32px;
  position: relative;
  animation: fadeInLogin 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInLogin {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.admin-login-logo {
  height: 52px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.admin-login-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--admin-gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.admin-login-sub {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  line-height: 1.4;
}

.admin-login-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #E6E1DA;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--admin-text-dim);
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.88rem;
  background: #0B0A0A;
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  color: #FFFFFF;
  transition: all 0.2s ease;
}
.login-input:focus {
  border-color: var(--admin-gold);
  background: #110E0E;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.login-pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--admin-text-dim);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-pwd-toggle:hover {
  color: var(--admin-gold);
}
.login-pwd-toggle svg {
  width: 16px;
  height: 16px;
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--admin-text-muted);
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.login-checkbox-label input[type="checkbox"] {
  accent-color: var(--admin-gold);
  cursor: pointer;
}

.login-btn {
  width: 100%;
  padding: 13px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.login-hint-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.74rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
  text-align: center;
  margin-top: 4px;
}

.admin-login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-border);
}

.login-back-store {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.login-back-store:hover {
  color: var(--admin-gold);
}

/* Sidebar Footer Actions */
.admin-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sidebar-logout {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

/* Two-Col Grid for Admins View */
.admin-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
}

/* Admin Role Badges */
.badge-role-super {
  background: rgba(212, 175, 55, 0.15);
  color: var(--admin-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.badge-role-manager {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.badge-role-fulfil {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-role-stylist {
  background: rgba(236, 72, 153, 0.15);
  color: #F472B6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.badge-status-active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-status-suspended {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   LIGHT THEME COMPLETE OVERRIDES (WHITE / IVORY LUXE)
   ========================================================================== */
body.admin-body.theme-light .admin-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.admin-body.theme-light .admin-table th {
  background-color: #FAF7F2;
  color: #5C564E;
  border-bottom: 1px solid #E8E2D6;
}

body.admin-body.theme-light .admin-table td {
  border-bottom: 1px solid #EFEAE0;
  color: #1C1917;
}

body.admin-body.theme-light .admin-table tr:hover td {
  background-color: rgba(155, 120, 22, 0.04);
}

body.admin-body.theme-light .admin-search-input,
body.admin-body.theme-light .sort-select {
  background: #FFFFFF !important;
  color: #1C1917 !important;
  border-color: #D8D1C2 !important;
}
body.admin-body.theme-light .admin-search-input:focus,
body.admin-body.theme-light .sort-select:focus {
  border-color: var(--admin-gold) !important;
  box-shadow: 0 0 0 2px rgba(155, 120, 22, 0.15) !important;
}

body.admin-body.theme-light .table-product-name,
body.admin-body.theme-light .admin-card-title,
body.admin-body.theme-light .admin-page-title-wrap h1,
body.admin-body.theme-light .kpi-value,
body.admin-body.theme-light .sig-outfit-title,
body.admin-body.theme-light .collection-card-title,
body.admin-body.theme-light .admin-user-name,
body.admin-body.theme-light .admin-modal-title {
  color: #1C1917 !important;
}

body.admin-body.theme-light .table-product-thumb,
body.admin-body.theme-light .catalog-thumb,
body.admin-body.theme-light .sig-outfit-img {
  background: #FAF8F5;
  border-color: #E2DCD0;
}

body.admin-body.theme-light .admin-modal-dialog {
  background: #FFFFFF !important;
  color: #1C1917 !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18) !important;
  border: 1px solid #E5DFD2 !important;
}

body.admin-body.theme-light .admin-modal-header {
  border-bottom: 1px solid #EFEAE0;
}

body.admin-body.theme-light .admin-modal-footer {
  background: #FAF8F5 !important;
  border-top: 1px solid #EFEAE0;
}

body.admin-body.theme-light .admin-modal-dialog .form-input,
body.admin-body.theme-light .admin-modal-dialog .form-select,
body.admin-body.theme-light .admin-modal-dialog .form-textarea,
body.admin-body.theme-light .admin-card .form-input,
body.admin-body.theme-light .admin-card .form-select,
body.admin-body.theme-light .admin-card .form-textarea {
  background: #FAF8F5 !important;
  color: #1C1917 !important;
  border-color: #D8D1C2 !important;
}

body.admin-body.theme-light .admin-modal-dialog label.form-label,
body.admin-body.theme-light .admin-card label.form-label {
  color: #332D28 !important;
}

body.admin-body.theme-light .fulfilment-drawer {
  background: #FFFFFF !important;
  color: #1C1917 !important;
}

body.admin-body.theme-light .measure-detail-box,
body.admin-body.theme-light .product-picker-list {
  background: #FAF8F5 !important;
  border-color: #E2DCD0 !important;
}

body.admin-body.theme-light .btn-store-preview {
  color: #7A5B0B;
  border-color: #D4AF37;
  background: #FFFFFF;
}
body.admin-body.theme-light .btn-store-preview:hover {
  background: rgba(212, 175, 55, 0.15);
}

body.admin-body.theme-light .table-btn {
  background: #FFFFFF;
  border-color: #D8D1C2;
  color: #4A443D;
}
body.admin-body.theme-light .table-btn:hover {
  background: rgba(155, 120, 22, 0.1);
  color: #7A5B0B;
  border-color: #B8860B;
}

/* ==========================================================================
   THEME TOGGLE SWITCH BUTTON (BLACK / WHITE THEME)
   ========================================================================== */
.admin-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--admin-border-light);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.admin-theme-toggle-btn:hover {
  border-color: var(--admin-gold);
  background: var(--admin-gold-subtle);
}

body.admin-body.theme-light .admin-theme-toggle-btn {
  background: #FFFFFF;
  border-color: #D8D1C2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.theme-switch-track {
  width: 44px;
  height: 24px;
  background: #080707;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  border: 1px solid var(--admin-border-light);
  transition: all 0.25s ease;
}

body.admin-body.theme-light .theme-switch-track {
  background: #E8E2D5;
  border-color: #D0C8B8;
}

.theme-icon-dark, .theme-icon-light {
  font-size: 0.65rem;
  line-height: 1;
}

.theme-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

body.admin-body.theme-light .theme-switch-knob {
  transform: translateX(20px);
  background: linear-gradient(135deg, #D4AF37 0%, #9B7816 100%);
}

.theme-switch-text {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--admin-text-main);
  text-transform: uppercase;
}

