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

:root {
  --admin-primary: #FF5500;
  --admin-primary-hover: #E04B00;
  --admin-sidebar-bg: #0F172A;
  --admin-sidebar-hover: #1E293B;
  --admin-sidebar-active: #FF5500;
  --admin-body-bg: #F8FAFC;
  --admin-card-bg: #FFFFFF;
  --admin-border: #E2E8F0;
  --admin-text-main: #0F172A;
  --admin-text-muted: #64748B;
  --admin-text-light: #94A3B8;
  
  /* Status Colors */
  --status-success: #10B981;
  --status-success-bg: #ECFDF5;
  --status-warning: #F59E0B;
  --status-warning-bg: #FFFBEB;
  --status-danger: #EF4444;
  --status-danger-bg: #FEF2F2;
  --status-info: #3B82F6;
  --status-info-bg: #EFF6FF;
  --status-purple: #8B5CF6;
  --status-purple-bg: #F5F3FF;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sidebar-width: 270px;
  --topbar-height: 64px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--admin-body-bg);
  color: var(--admin-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* LAYOUT SHELL */
.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* 1. SIDEBAR */
.admin-sidebar {
  width: var(--sidebar-width);
  background-color: var(--admin-sidebar-bg);
  color: #FFF;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1E293B;
}

.sidebar-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--admin-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #FFF;
  flex-shrink: 0;
}

.sidebar-logo-text h2 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #FFF;
}

.sidebar-logo-text h2 span {
  color: var(--admin-primary);
}

.sidebar-logo-text p {
  font-size: 9px;
  color: #64748B;
  font-weight: 700;
  letter-spacing: 1px;
}

/* SIDEBAR NAVIGATION */
.sidebar-menu {
  padding: 16px 14px;
  flex: 1;
}

.menu-group-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 12px 6px 12px;
}

.menu-list {
  list-style: none;
  margin-bottom: 8px;
}

.menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  color: #94A3B8;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.menu-item a .item-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.menu-item:hover a {
  background-color: var(--admin-sidebar-hover);
  color: #FFF;
}

.menu-item.active a {
  background-color: rgba(255, 85, 0, 0.15);
  color: var(--admin-primary);
  font-weight: 700;
  border-left: 3px solid var(--admin-primary);
}

.menu-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.badge-orange {
  background: var(--admin-primary);
  color: #FFF;
}

.badge-blue {
  background: #3B82F6;
  color: #FFF;
}

.badge-green {
  background: #10B981;
  color: #FFF;
}

/* SIDEBAR FOOTER (USER STATUS) */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0B1120;
}

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

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #334155;
  color: #FFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.user-info h5 {
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
}

.user-info p {
  font-size: 11px;
  color: #64748B;
}

.btn-logout {
  color: #94A3B8;
  font-size: 16px;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

/* 2. MAIN CONTENT AREA */
.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOPBAR */
.admin-topbar {
  height: var(--topbar-height);
  background: #FFF;
  border-bottom: 1px solid var(--admin-border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

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

.sidebar-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: #475569;
  cursor: pointer;
}

.global-search {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.global-search input {
  width: 100%;
  height: 38px;
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px 0 36px;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.global-search input:focus {
  background: #FFF;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.12);
}

.global-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 13px;
}

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

.btn-view-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--admin-primary);
  background: rgba(255, 85, 0, 0.08);
  padding: 7px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-view-site:hover {
  background: var(--admin-primary);
  color: #FFF;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-icon-btn:hover {
  background: #F1F5F9;
  color: var(--admin-primary);
}

.icon-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--admin-primary);
  border-radius: 50%;
  border: 2px solid #FFF;
}

/* 3. CONTENT CANVAS */
.admin-canvas {
  padding: 28px;
  flex: 1;
}

/* PAGE HEADER */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 22px;
  font-weight: 900;
  color: var(--admin-text-main);
  letter-spacing: -0.3px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

.breadcrumb a:hover {
  color: var(--admin-primary);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.btn-admin {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-admin-primary {
  background: var(--admin-primary);
  color: #FFF;
}

.btn-admin-primary:hover {
  background: var(--admin-primary-hover);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.25);
}

.btn-admin-outline {
  background: #FFF;
  border-color: var(--admin-border);
  color: var(--admin-text-main);
}

.btn-admin-outline:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

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

.stat-card {
  background: #FFF;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  border-color: #CBD5E1;
}

.stat-info h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--admin-text-main);
  margin: 4px 0 2px 0;
  letter-spacing: -0.5px;
}

.stat-info p {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}

.trend-up { color: #10B981; }
.trend-down { color: #EF4444; }

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

.stat-icon-orange { background: rgba(255, 85, 0, 0.12); color: var(--admin-primary); }
.stat-icon-blue { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.stat-icon-green { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.stat-icon-purple { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }

/* 5. DATA TABLES & PANELS */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 28px;
}

.panel-card {
  background: #FFF;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  overflow: hidden;
}

.panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--admin-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  padding: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  background: #F8FAFC;
  padding: 12px 18px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--admin-border);
}

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

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

.sku-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* STATUS PILLS */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-paid { background: var(--status-success-bg); color: var(--status-success); }
.status-paid::before { background: var(--status-success); }

.status-pending { background: var(--status-warning-bg); color: var(--status-warning); }
.status-pending::before { background: var(--status-warning); }

.status-processing { background: var(--status-info-bg); color: var(--status-info); }
.status-processing::before { background: var(--status-info); }

.status-quoted { background: var(--status-purple-bg); color: var(--status-purple); }
.status-quoted::before { background: var(--status-purple); }

.status-cancelled { background: var(--status-danger-bg); color: var(--status-danger); }
.status-cancelled::before { background: var(--status-danger); }

/* ACTIONS */
.action-icons-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tbl-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.tbl-action-btn:hover {
  background: var(--admin-primary);
  color: #FFF;
}

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

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .sidebar-toggle-btn {
    display: block;
  }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FORM CONTROLS, PRODUCT EDITOR & ISO 513 STYLES FOR ADMIN
   ========================================================================== */

/* FORMS & INPUTS */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.form-label .req {
  color: #EF4444;
}

.form-control {
  width: 100%;
  height: 40px;
  background: #FFF;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 0 14px;
  font-size: 13.5px;
  color: #0F172A;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.12);
}

textarea.form-control {
  height: auto;
  min-height: 90px;
  padding: 10px 14px;
  resize: vertical;
}

.form-help {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 4px;
}

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

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

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* SWITCH TOGGLE */
.switch-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 24px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-switch {
  background-color: var(--admin-primary);
}

input:checked + .slider-switch:before {
  transform: translateX(20px);
}

/* ISO 513 MATERIAL BADGES */
.iso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.iso-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: #FFF;
  cursor: pointer;
  transition: all 0.2s;
}

.iso-checkbox-item:hover {
  border-color: var(--admin-primary);
  background: #FAFCFE;
}

.iso-letter {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #FFF;
  flex-shrink: 0;
}

.iso-p { background: #0066CC; } /* Steel (Blue) */
.iso-m { background: #E6B800; color: #111; } /* Stainless (Yellow) */
.iso-k { background: #CC0000; } /* Cast Iron (Red) */
.iso-n { background: #009944; } /* Non-ferrous Aluminum (Green) */
.iso-s { background: #FF6600; } /* Titanium / Super Alloys (Orange) */
.iso-h { background: #4D4D4D; } /* Hardened Steel (Dark Grey) */

.iso-text {
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

.iso-text span {
  display: block;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

/* TABS IN EDITOR */
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--admin-border);
  background: #FFF;
  border-radius: 8px 8px 0 0;
  padding: 0 16px;
  gap: 8px;
}

.editor-tab-btn {
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748B;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: color 0.2s;
}

.editor-tab-btn.active {
  color: var(--admin-primary);
}

.editor-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--admin-primary);
}

.editor-tab-pane {
  display: none;
  padding: 24px;
  background: #FFF;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--admin-border);
  border-top: none;
}

.editor-tab-pane.active {
  display: block;
}

/* FILE DROPZONE */
.file-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s;
}

.file-dropzone:hover {
  border-color: var(--admin-primary);
  background: rgba(255, 85, 0, 0.03);
}

.dropzone-icon {
  font-size: 32px;
  color: #94A3B8;
  margin-bottom: 8px;
}

.dropzone-text {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.dropzone-text span {
  color: var(--admin-primary);
  text-decoration: underline;
}

/* PAGINATION */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border);
  background: #FFF;
  border-radius: 0 0 8px 8px;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-link-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: #FFF;
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.2s;
}

.page-link-btn:hover, .page-link-btn.active {
  background: var(--admin-primary);
  color: #FFF;
  border-color: var(--admin-primary);
}

/* ==========================================================================
   2-COLUMN PRODUCT EDITOR & MEDIA GALLERY
   ========================================================================== */
.editor-layout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: flex-start;
}

.editor-sidebar-box {
  background: #FFF;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

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

.sidebar-box-header h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-box-body {
  padding: 18px;
}

/* FEATURED IMAGE PREVIEW */
.featured-image-container {
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  background: #FAFCFE;
  padding: 14px;
  text-align: center;
  position: relative;
  transition: all 0.2s;
}

.featured-image-container:hover {
  border-color: var(--admin-primary);
}

.featured-preview-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 4px;
  background: #FFF;
  display: block;
  margin: 0 auto 12px auto;
  border: 1px solid #E2E8F0;
}

.featured-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* GALLERY ALBUM GRID */
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  background: #FFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #FFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-item-remove {
  opacity: 1;
}

.gallery-add-btn {
  aspect-ratio: 1;
  border: 2px dashed #CBD5E1;
  border-radius: 6px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-add-btn:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
  background: rgba(255, 85, 0, 0.04);
}

.gallery-add-btn i {
  font-size: 18px;
}

.gallery-add-btn span {
  font-size: 10.5px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .editor-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   MEDIA & GALLERY SUITE STYLES
   ======================================================== */
.badge-tab {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(255, 85, 0, 0.15);
  color: var(--admin-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  margin-left: 6px;
}

.media-section-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.media-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.media-section-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.media-dropzone-large {
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  background: #FAFCFE;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.media-dropzone-large:hover,
.media-dropzone-large.dragover {
  border-color: var(--admin-primary);
  background: rgba(255, 85, 0, 0.03);
}

.media-dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.1);
  color: var(--admin-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px auto;
}

.media-dropzone-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.media-dropzone-desc {
  font-size: 12px;
  color: #64748B;
}

/* Grid album gallery */
.gallery-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.gallery-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  border-color: var(--admin-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-card-preview {
  position: relative;
  width: 100%;
  height: 140px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-card-preview img {
  transform: scale(1.05);
}

.gallery-badge-order {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.gallery-card-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.gallery-card:hover .gallery-card-actions {
  opacity: 1;
}

.gallery-act-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #FFF;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.gallery-act-btn:hover {
  background: var(--admin-primary);
  color: #FFF;
  transform: scale(1.1);
}

.gallery-act-btn.delete-btn:hover {
  background: #EF4444;
  color: #FFF;
}

.gallery-card-info {
  padding: 10px;
  background: #FFF;
  border-top: 1px solid #F1F5F9;
}

.gallery-card-info input {
  width: 100%;
  font-size: 11.5px;
  padding: 5px 8px;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  background: #F8FAFC;
}

.gallery-card-info input:focus {
  background: #FFF;
  border-color: var(--admin-primary);
  outline: none;
}

/* Upload progress */
.upload-progress-wrap {
  display: none;
  margin-top: 12px;
  background: #E2E8F0;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #FF5500, #FF8800);
  transition: width 0.3s;
}



