/* ==========================================================================
   PETS GOODIES – COMPREHENSIVE ADMIN CONTROL PANEL DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Color Palette */
  --admin-navy: #0F172A;
  --admin-navy-dark: #020617;
  --admin-navy-light: #1E293B;
  --admin-sidebar-bg: #0B132B;
  --admin-sidebar-card: #152238;
  --admin-sidebar-hover: rgba(255, 255, 255, 0.07);
  --admin-sidebar-active: rgba(255, 199, 44, 0.14);
  
  --admin-yellow: #FFC72C;
  --admin-yellow-hover: #F5B800;
  --admin-yellow-light: #FFFBEB;
  --admin-yellow-text: #92400E;
  
  --admin-blue: #2563EB;
  --admin-blue-hover: #1D4ED8;
  --admin-blue-light: #EFF6FF;
  
  --admin-emerald: #10B981;
  --admin-emerald-light: #ECFDF5;
  --admin-emerald-text: #065F46;
  
  --admin-purple: #8B5CF6;
  --admin-purple-light: #F5F3FF;
  --admin-purple-text: #5B21B6;
  
  --admin-rose: #EF4444;
  --admin-rose-hover: #DC2626;
  --admin-rose-light: #FEF2F2;
  --admin-rose-text: #991B1B;
  
  --admin-amber: #F59E0B;
  --admin-amber-light: #FEF3C7;
  --admin-amber-text: #92400E;

  /* Neutrals & Surfaces */
  --admin-bg: #F8FAFC;
  --admin-card-bg: #FFFFFF;
  --admin-text: #0F172A;
  --admin-text-secondary: #475569;
  --admin-muted: #64748B;
  --admin-border: #E2E8F0;
  --admin-border-focus: #0F172A;
  
  /* Radii & Shadows */
  --admin-radius-sm: 6px;
  --admin-radius: 10px;
  --admin-radius-lg: 16px;
  --admin-radius-pill: 9999px;
  
  --admin-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --admin-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --admin-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --admin-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --admin-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --admin-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Backdrop (Mobile/Tablet) */
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Sidebar */
.admin-sidebar {
  width: 268px;
  background-color: var(--admin-sidebar-bg);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 995;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar-header {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFF;
}

.admin-sidebar-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.admin-sidebar-brand-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--admin-yellow);
  background: rgba(255, 199, 44, 0.12);
  border: 1px solid rgba(255, 199, 44, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.admin-sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* Sidebar Nav List */
.admin-sidebar-nav {
  padding: 14px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
  overflow-y: auto;
}

.admin-sidebar-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
  padding: 14px 12px 6px;
  margin-top: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  color: #94A3B8;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--admin-radius-sm);
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav-item:hover {
  background-color: var(--admin-sidebar-hover);
  color: #FFFFFF;
}

.admin-nav-item.active {
  background-color: var(--admin-sidebar-active);
  color: var(--admin-yellow);
  font-weight: 700;
}

.admin-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3.5px;
  background-color: var(--admin-yellow);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(255, 199, 44, 0.6);
}

.admin-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.admin-nav-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--admin-radius-pill);
}

.admin-nav-badge.badge-danger {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.admin-nav-badge.badge-yellow {
  background: var(--admin-yellow);
  color: #0F172A;
}

/* Sidebar Footer Profile / Link */
.admin-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--admin-yellow), #D97706);
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-sidebar-username {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
}

.admin-sidebar-userrole {
  font-size: 11px;
  color: #94A3B8;
}

/* ==========================================================================
   MAIN CONTENT AREA & TOPBAR
   ========================================================================== */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--admin-bg);
}

.admin-topbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--admin-shadow-xs);
}

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

.admin-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--admin-navy);
  align-items: center;
  justify-content: center;
}

.admin-topbar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--admin-navy);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-topbar-storelink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--admin-navy);
  text-decoration: none;
  padding: 7px 14px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  transition: all 0.2s;
}

.admin-topbar-storelink:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.admin-content {
  padding: 28px 32px 48px;
  flex-grow: 1;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.admin-card {
  background-color: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 24px;
  box-shadow: var(--admin-shadow-sm);
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--admin-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-subtitle {
  font-size: 12.5px;
  color: var(--admin-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* Stat Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

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

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow);
  border-color: #CBD5E1;
}

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

.stat-icon-yellow { background-color: var(--admin-yellow-light); color: var(--admin-yellow-text); border: 1px solid rgba(255, 199, 44, 0.3); }
.stat-icon-blue   { background-color: var(--admin-blue-light); color: var(--admin-blue); border: 1px solid rgba(37, 99, 235, 0.2); }
.stat-icon-green  { background-color: var(--admin-emerald-light); color: var(--admin-emerald-text); border: 1px solid rgba(16, 185, 129, 0.2); }
.stat-icon-purple { background-color: var(--admin-purple-light); color: var(--admin-purple-text); border: 1px solid rgba(139, 92, 246, 0.2); }

.stat-info-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.stat-info-val {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--admin-navy);
  line-height: 1.1;
}

/* ==========================================================================
   TABLES & LISTS
   ========================================================================== */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: #FFF;
}

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

.admin-table th {
  padding: 13px 16px;
  font-size: 11px;
  font-weight: 800;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background-color: #F8FAFC;
  border-bottom: 1.5px solid var(--admin-border);
  white-space: nowrap;
}

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

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background-color: #F8FAFC;
}

/* Badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--admin-radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
}

.badge-pending, .badge-unpaid, .badge-inactive {
  background: var(--admin-amber-light);
  color: var(--admin-amber-text);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-confirmed, .badge-paid, .badge-active {
  background: var(--admin-emerald-light);
  color: var(--admin-emerald-text);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-processing, .badge-packed {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}

.badge-shipped, .badge-out-for-delivery {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-delivered {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.badge-cancelled, .badge-failed {
  background: var(--admin-rose-light);
  color: var(--admin-rose-text);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-bestseller {
  background: var(--admin-yellow-light);
  color: var(--admin-yellow-text);
  border: 1px solid rgba(255, 199, 44, 0.4);
}

.badge-new {
  background: #E0F2FE;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.badge-hot {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group, .admin-form-group {
  margin-bottom: 18px;
}

.form-label, .admin-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--admin-navy);
}

.form-label .required, .admin-label .required {
  color: var(--admin-rose);
  margin-left: 2px;
}

.form-control, .admin-input, .admin-select, .admin-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  background-color: #FFFFFF;
  color: var(--admin-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--admin-navy);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-control::placeholder, .admin-input::placeholder, .admin-textarea::placeholder {
  color: #94A3B8;
}

.form-control:disabled, .admin-input:disabled {
  background-color: #F1F5F9;
  cursor: not-allowed;
  color: var(--admin-muted);
}

/* Custom File Upload Box */
.admin-file-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: var(--admin-radius);
  padding: 18px;
  background: #F8FAFC;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.admin-file-dropzone:hover {
  border-color: var(--admin-yellow-dark);
  background: #FFFDF5;
}

.admin-file-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.admin-preview-thumbnail {
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-xs);
  object-fit: cover;
  background: #FFF;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-admin-yellow {
  background-color: var(--admin-yellow);
  color: var(--admin-navy);
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--admin-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--admin-shadow-xs);
  transition: all 0.15s ease;
}

.btn-admin-yellow:hover {
  background-color: var(--admin-yellow-hover);
  transform: translateY(-1px);
  box-shadow: var(--admin-shadow-sm);
}

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

.btn-admin-navy {
  background-color: var(--admin-navy);
  color: #FFFFFF;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--admin-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--admin-shadow-xs);
  transition: all 0.15s ease;
}

.btn-admin-navy:hover {
  background-color: var(--admin-navy-light);
  transform: translateY(-1px);
  box-shadow: var(--admin-shadow-sm);
}

.btn-admin-danger {
  background-color: var(--admin-rose);
  color: #FFFFFF;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--admin-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-admin-danger:hover {
  background-color: var(--admin-rose-hover);
}

.btn-admin-secondary {
  background-color: #FFFFFF;
  color: var(--admin-text-secondary);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--admin-radius-sm);
  border: 1.5px solid var(--admin-border);
  cursor: pointer;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-admin-secondary:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
  color: var(--admin-navy);
}

.btn-admin-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-admin-lg {
  padding: 13px 26px;
  font-size: 15px;
}

/* ==========================================================================
   MODAL ARCHITECTURE (CLEAN 2-COLUMN, STICKY HEADER & FOOTER)
   ========================================================================== */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-modal.show, .admin-modal[style*="display: flex"] {
  opacity: 1;
}

.admin-modal-dialog {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 780px;
  border-radius: var(--admin-radius-lg);
  box-shadow: var(--admin-shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  max-height: 88dvh;
  overflow: hidden;
  animation: adminModalScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-modal-dialog > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

@keyframes adminModalScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.admin-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--admin-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-modal-close {
  background: #F1F5F9;
  border: none;
  font-size: 18px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  transition: all 0.15s ease;
}

.admin-modal-close:hover {
  background: #E2E8F0;
  color: var(--admin-navy);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: #FFFFFF;
}

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

/* Modal 2-Column and 3-Column Responsive Grids */
.admin-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-grid-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.admin-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   CUSTOM UI HELPERS & PILLS
   ========================================================================== */
.admin-size-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
  user-select: none;
}

.admin-size-pill:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.admin-size-pill.selected, .admin-size-pill:has(input:checked) {
  border-color: #10B981;
  background: #ECFDF5;
  color: #065F46;
}

.custom-size-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--admin-navy);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

/* Flash Messages */
.admin-flash {
  padding: 14px 20px;
  border-radius: var(--admin-radius);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--admin-shadow-xs);
}

.admin-flash-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  border-left: 4px solid #10B981;
}

.admin-flash-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-left: 4px solid #EF4444;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.3);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-close {
    display: block;
  }

  .admin-mobile-toggle {
    display: inline-flex;
  }

  .admin-topbar {
    padding: 0 20px;
  }

  .admin-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-grid-2col, .admin-grid-3col, .admin-grid-2-1 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-modal-dialog {
    max-width: 95vw;
    margin: 10px;
  }

  .admin-card {
    padding: 16px;
  }

  .admin-topbar-title {
    font-size: 17px;
  }
}
