/* =====================================================================
   ADMIN PORTAL STYLESHEET
   Fashion E-Commerce Platform
   ===================================================================== */

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

:root {
  --admin-sidebar-w: 260px;
  --admin-sidebar-bg: #090d16;
  --admin-sidebar-hover: rgba(255, 255, 255, 0.05);
  --admin-sidebar-active: rgba(212, 175, 55, 0.14);
  --admin-gold: #c59b27;
  --admin-gold-bright: #d4af37;
  --admin-gold-glow: rgba(212, 175, 55, 0.35);
  --admin-bg: #f8fafc;
  --admin-card-bg: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.admin-body {
  font-family: var(--admin-font);
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
}

/* =====================================================================
   CLASSIC PREMIUM ADMIN SIDEBAR
   ===================================================================== */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: linear-gradient(180deg, #090d16 0%, #0f1523 45%, #0b0f19 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-brand {
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.6) 0%, rgba(15, 23, 42, 0.2) 100%);
  position: relative;
  flex-shrink: 0;
}

.admin-sidebar-close-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.admin-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-decoration: none;
  gap: 8px;
}

.admin-logo-showcase {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  max-height: 64px;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.25s ease;
  overflow: hidden;
}

.admin-logo-showcase.light_card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.admin-logo-showcase.light_card:hover {
  border-color: var(--admin-gold);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.admin-logo-showcase.dark_card {
  background: #111827;
  border: 1px solid #374151;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-logo-showcase.dark_card:hover {
  border-color: var(--admin-gold);
}

.admin-logo-showcase.transparent {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.admin-sidebar-logo-img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.admin-brand-sub-badge {
  font-size: 9px;
  color: var(--admin-gold-bright);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
  opacity: 0.95;
}

.admin-brand-fallback-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.admin-brand-icon-box {
  width: 40px;
  height: 40px;
  background: #1f2937;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--admin-gold);
  font-size: 16px;
  border: 1px solid var(--admin-gold);
  flex-shrink: 0;
}

.admin-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.admin-brand-sub {
  font-size: 9.5px;
  color: var(--admin-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 2px;
}

/* Scrollable Navigation Area */
.admin-sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.admin-sidebar-nav-scroll::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.admin-sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
.admin-sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.4);
}

/* Nav Sections */
.admin-nav-section {
  display: flex;
  flex-direction: column;
}

.admin-nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 4px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.admin-nav-section-header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.admin-nav-section-header:hover .admin-nav-section-title {
  color: #94a3b8;
}

.admin-nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.18s ease;
}

.admin-section-dot-alert {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 6px #f59e0b;
  display: inline-block;
  animation: dotPulse 2s infinite ease-in-out;
}

.admin-nav-section-arrow {
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.18s ease;
}

.admin-nav-section-header:hover .admin-nav-section-arrow {
  color: #94a3b8;
}

.admin-nav-section.collapsed .admin-nav-section-arrow {
  transform: rotate(-90deg);
}

.admin-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.admin-nav-section.collapsed .admin-nav-list {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* Nav Item Box Layout */
.admin-nav-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-nav-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.admin-nav-box:hover {
  background: linear-gradient(90deg, rgba(31, 41, 55, 0.75) 0%, rgba(17, 24, 39, 0.75) 100%);
  border-color: rgba(212, 175, 55, 0.35);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-nav-box:active {
  transform: translateX(1px) scale(0.99);
}

/* Active Highlight */
.admin-nav-item.active .admin-nav-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(31, 41, 55, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Vertical Gold Accent Indicator */
.nav-box-indicator {
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3.5px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: all 0.2s ease;
}

.admin-nav-item.active .nav-box-indicator {
  background: linear-gradient(180deg, #f59e0b 0%, #d4af37 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* Icon Container */
.nav-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-icon-svg {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.22s ease;
}

.admin-nav-box:hover .nav-icon-wrap {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.4);
  color: #f59e0b;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.admin-nav-box:hover .admin-icon-svg {
  stroke: #f59e0b;
}

.admin-nav-item.active .nav-icon-wrap {
  background: linear-gradient(135deg, #d4af37 0%, #b08719 100%);
  color: #0b0f19;
  border-color: #d4af37;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.admin-nav-item.active .admin-icon-svg {
  stroke: #0b0f19;
}

/* Menu Text Label */
.nav-label-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: color 0.18s ease;
}

.admin-nav-box:hover .nav-label-text {
  color: #ffffff;
}

.admin-nav-item.active .nav-label-text {
  font-weight: 600;
  color: #ffffff;
}

/* Status Badges */
.admin-nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7.5px;
  border-radius: 12px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.admin-nav-box:hover .admin-nav-badge {
  transform: scale(1.08);
}

.admin-nav-badge.badge-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.admin-nav-badge.badge-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b08719 100%);
  color: #0b0f19;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.admin-nav-badge.badge-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: badgeAlertPulse 2s infinite;
}

@keyframes badgeAlertPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Sidebar Footer */
.admin-sidebar-footer {
  padding: 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(9, 13, 22, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.admin-live-store-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--admin-gold-bright);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-live-store-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--admin-gold);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.admin-sidebar-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
  padding: 0 2px;
}

.admin-status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  font-weight: 600;
  font-size: 11px;
}

.admin-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.5; }
}

.admin-version-tag {
  color: #64748b;
  font-family: monospace;
  font-size: 10.5px;
  letter-spacing: 0.5px;
}

/* Main Content Area */
.admin-main-wrapper {
  margin-left: var(--admin-sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
}

.admin-topbar-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

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

.admin-content-container {
  padding: 30px;
  flex: 1;
}

/* Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-gold   { background: #fef9c3; color: #a16207; }
.stat-blue   { background: #dbeafe; color: #1d4ed8; }
.stat-green  { background: #dcfce7; color: #15803d; }
.stat-purple { background: #f3e8ff; color: #7e22ce; }

.stat-info .stat-val {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.stat-info .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Wrapper */
.admin-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 24px;
  overflow: hidden;
}

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

.admin-card-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

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

/* Data Tables */
.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th {
  background: #f9fafb;
  color: #4b5563;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

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

.admin-table tr:hover td {
  background: #fbfbfb;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-label .required {
  color: #dc2626;
}

.form-control {
  padding: 9px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

.form-help {
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

/* Live Pricing Preview Box */
.calc-price-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 14px;
  border-radius: 6px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-price-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.calc-price-val {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

/* Category Circular Preview & Masking Box */
.category-circle-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--admin-gold);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  margin: 10px 0;
}

.category-circle-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Action buttons */
.btn-admin-primary {
  background: var(--admin-gold);
  color: #111827;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-admin-primary:hover {
  background: #b08719;
  color: #ffffff;
}

.btn-admin-danger {
  background: #ef4444;
  color: #ffffff;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
}

.btn-admin-danger:hover {
  background: #dc2626;
}

.btn-admin-secondary {
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}

.btn-admin-secondary:hover {
  background: #e5e7eb;
}

/* Bank Details Box for Returns */
.bank-details-card {
  background: #fdfaf3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #fef3c7;
}

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

.bank-detail-label {
  color: #78350f;
  font-weight: 600;
}

.bank-detail-value {
  color: #1f2937;
  font-family: monospace;
  font-weight: 600;
}

/* =====================================================================
   SIDEBAR TOGGLE, DESKTOP COLLAPSE & MOBILE DRAWER STYLES
   ===================================================================== */
/* Desktop Sidebar Collapse */
body.admin-sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
  box-shadow: none;
}

body.admin-sidebar-collapsed .admin-main-wrapper {
  margin-left: 0 !important;
}

.admin-sidebar-toggle-btn {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
  color: #334155;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-sidebar-toggle-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.admin-sidebar-toggle-btn:active {
  transform: translateY(0);
}

.admin-sidebar-toggle-btn svg {
  display: block;
}

.admin-sidebar-toggle-btn svg line {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Collapsed state appearance & visual feedback */
.admin-sidebar-toggle-btn.is-collapsed {
  background: #fffbeb;
  border-color: rgba(212, 175, 55, 0.85);
  color: #92400e;
  box-shadow: 0 0 0 2.5px rgba(212, 175, 55, 0.25);
}

.admin-sidebar-toggle-btn.is-collapsed:hover {
  background: #fef3c7;
  border-color: var(--admin-gold);
}

.admin-sidebar-toggle-btn.is-collapsed svg {
  stroke: #b45309;
}

.admin-sidebar-toggle-btn.is-collapsed svg line:nth-child(1) {
  transform: translateY(1px) scaleX(0.85);
}

.admin-sidebar-toggle-btn.is-collapsed svg line:nth-child(3) {
  transform: translateY(-1px) scaleX(0.85);
}

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.65);
  }
  .admin-sidebar-backdrop {
    display: block;
  }
  body.admin-sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.admin-sidebar-open {
    overflow: hidden;
  }
  .admin-main-wrapper {
    margin-left: 0 !important;
  }
  .admin-sidebar-toggle-btn {
    display: inline-flex;
  }
  .admin-sidebar-close-btn {
    display: none !important;
  }
  .admin-topbar {
    padding: 12px 18px;
  }
}

@media (max-width: 576px) {
  .admin-topbar-title h1 {
    font-size: 16px;
  }
  .admin-topbar-actions {
    gap: 8px;
  }
  .admin-topbar-actions span {
    display: none;
  }
}

/* ==========================================================================
   ADMINISTRATOR TOPBAR DROPDOWN MENU
   ========================================================================== */
.admin-user-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.admin-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  user-select: none;
}

.admin-user-btn:hover,
.admin-user-dropdown-wrap.is-open .admin-user-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.admin-user-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
}

.admin-avatar-pill {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid #d4af37;
}

.admin-avatar-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.admin-user-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-user-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-badge-tag {
  font-size: 11px;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}

.admin-user-role-text {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-chevron-svg {
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  flex-shrink: 0;
}

.admin-user-dropdown-wrap.is-open .admin-chevron-svg {
  transform: rotate(180deg);
  color: #0f172a;
}

/* Dropdown Menu Panel */
.admin-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  z-index: 1000;
  overflow: hidden;
}

.admin-user-dropdown-wrap.is-open .admin-user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Dropdown Header */
.admin-dd-user-header {
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dd-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid #d4af37;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.admin-dd-header-text {
  min-width: 0;
  flex: 1;
}

.admin-dd-header-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-dd-header-email {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.admin-dd-header-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.admin-dd-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-dd-pill.role {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.admin-dd-pill.id {
  background: #f1f5f9;
  color: #475569;
}

.admin-dd-rule {
  height: 1px;
  background: #e2e8f0;
  margin: 0;
}

/* Menu Items */
.admin-dd-menu-items {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.18s ease;
  position: relative;
}

.admin-dd-item:hover {
  background: #f8fafc;
}

.admin-dd-item.active {
  background: #f1f5f9;
}

.admin-dd-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.admin-dd-item-icon.profile {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.admin-dd-item:hover .admin-dd-item-icon.profile {
  background: #0f172a;
  color: #d4af37;
  border-color: #0f172a;
}

.admin-dd-item-icon.logout {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
}

.admin-dd-item:hover .admin-dd-item-icon.logout {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.admin-dd-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.admin-dd-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  transition: color 0.18s;
}

.admin-dd-item-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.admin-dd-chevron-right {
  color: #94a3b8;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-dd-item:hover .admin-dd-chevron-right {
  opacity: 1;
  transform: translateX(0);
}

.admin-dd-item-danger:hover .admin-dd-item-title {
  color: #dc2626;
}

.admin-dd-item-danger:hover {
  background: #fff5f5;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .admin-user-role-text {
    display: none;
  }
}

@media (max-width: 640px) {
  .admin-user-meta {
    display: none;
  }
  .admin-user-btn {
    padding: 3px 6px 3px 3px;
  }
  .admin-user-dropdown-menu {
    right: -4px;
    width: min(280px, calc(100vw - 24px));
  }
}
