/* ============================================================
   KUMAR SNACKS — Revamped Admin Dashboard Styles (admin.css)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #ff5b22;
  --primary-hover:  #e04a14;
  --primary-light:  #fff5f2;
  --sidebar-bg:     #111c2d;
  --sidebar-hover:  rgba(255, 255, 255, 0.05);
  --sidebar-active: #ff5b22;
  --bg:             #f8fafc;
  --card-bg:        #ffffff;
  --text:           #334155;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --border:         #e2e8f0;
  --border-focus:   #cbd5e1;
  --white:          #ffffff;
  --success:        #22c55e;
  --success-bg:     #d1fae5;
  --danger:         #ef4444;
  --danger-bg:      #fee2e2;
  --warning:        #f5a623;
  --warning-bg:     #fef3c7;
  --info:           #3b82f6;
  --info-bg:        #dbeafe;
  
  --radius-lg:      16px;
  --radius-md:      12px;
  --radius-sm:      8px;
  --radius-pill:    100px;
  
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Resets ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  height: 100vh;
}
input, select, textarea, button {
  font-family: inherit;
  color: inherit;
}
button { cursor: pointer; border: none; background: none; }

/* ---------- Main Layout Wrapper ---------- */
#admin-dashboard {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform var(--transition);
  z-index: 150;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar__logo {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sl-logo-emoji {
  font-size: 1.8rem;
}
.sl-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.sl-role {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar__nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

/* Sidebar links */
.sn-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.sn-link-icon {
  font-size: 1.1rem;
  width: 20px;
}
.sn-link:hover {
  background: var(--sidebar-hover);
  color: var(--white);
}
.sn-link.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}
.sn-link--danger:hover {
  background: var(--danger-bg);
  color: var(--danger) !important;
}

/* Sidebar Dropdown Accordions */
.sidebar-dropdown {
  display: flex;
  flex-direction: column;
}
.dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-align: left;
}
.dropdown-trigger:hover, .dropdown-trigger.active {
  color: var(--white);
  background: var(--sidebar-hover);
}
.dropdown-trigger.active {
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.dd-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition);
}
.dropdown-trigger.active .dd-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 20px;
  gap: 2px;
  margin-top: 2px;
}
.dropdown-content.open {
  display: flex;
}

.sn-sub-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.sn-sub-link:hover {
  color: var(--white);
}
.sn-sub-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

/* ----- TOPBAR ----- */
.topbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
}
.topbar__burger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.topbar__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.topbar__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search Box */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  font-size: 0.85rem;
}
.search-wrap input {
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 36px;
  font-size: 0.85rem;
  width: 240px;
  outline: none;
  transition: all var(--transition);
}
.search-wrap input:focus {
  background: var(--white);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(241,245,249,0.8);
}

.icon-btn-top {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-size: 1rem;
}
.bell-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.profile-avatar {
  width: 32px; height: 32px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.profile-info strong {
  font-size: 0.82rem;
  color: #0f172a;
}
.profile-info span {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.profile-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 4px;
}

/* ----- CONTENT CONTAINER ----- */
.content-section {
  display: none;
  padding: 24px;
  flex-direction: column;
  gap: 24px;
}
.content-section.active {
  display: flex;
}

/* ============================================================
   STATS BAR (Products View)
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.stat-card__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-card h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
}
.stat-card__sub {
  font-size: 0.72rem;
  font-weight: 600;
}
.text-green { color: var(--success); }
.text-red   { color: var(--danger); }
.text-purple { color: #8b5cf6; }

.stat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.bg-blue-light   { background: var(--info-bg); }
.bg-green-light  { background: var(--success-bg); }
.bg-orange-light { background: var(--danger-bg); }
.bg-purple-light { background: #f3e8ff; }

/* ============================================================
   PRODUCTS LIST / DATA TABLES
   ============================================================ */
.products-panel {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.products-panel__header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.products-panel__header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.products-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-search-wrap input {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  width: 180px;
  outline: none;
}
.table-search-wrap input:focus { border-color: var(--primary); }

.btn-filter, .btn-add-product {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.btn-filter {
  background: #f1f5f9;
  color: var(--text);
}
.btn-filter:hover { background: #e2e8f0; }

.btn-add-product {
  background: var(--primary);
  color: var(--white);
}
.btn-add-product:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(255,91,34,0.25);
}

/* ----- DATA TABLE ----- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: #f8fafc;
}

/* Product Card Emoji or Thumbnail */
.pt-thumb-wrap {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 1.6rem;
}
.pt-thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-badge--active {
  background: var(--success-bg);
  color: var(--success);
}
.status-badge--inactive {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Featured star button */
.btn-star {
  font-size: 1.15rem;
  color: #cbd5e1;
  transition: transform var(--transition);
}
.btn-star.active {
  color: var(--warning);
}
.btn-star:hover {
  transform: scale(1.15);
}

/* Table Row Actions */
.tr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-btn {
  width: 28px; height: 28px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
}
.row-btn--edit   { background: #eff6ff; color: var(--info); }
.row-btn--edit:hover { background: var(--info); color: var(--white); }
.row-btn--delete { background: #fef2f2; color: var(--danger); }
.row-btn--delete:hover { background: var(--danger); color: var(--white); }
.row-btn--view   { background: #fbf7f0; color: var(--warning); }
.row-btn--view:hover { background: var(--warning); color: var(--white); }

/* Table Empty and Footer States */
.table-empty {
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 10px;
}
.table-empty span { font-size: 3rem; }

.table-footer {
  padding: 16px 24px;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pagination {
  display: flex;
  gap: 4px;
}
.pg-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.pg-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pg-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.pg-btn:hover:not(.active):not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   VIEW: ADD/EDIT 3-COLUMN FORM
   ============================================================ */
.form-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-panel__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.form-panel__header h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.form-3-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 24px;
}
.form-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-col__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  outline: none;
  background: #f8fafc;
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,91,34,0.1);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row-2.align-center {
  align-items: center;
}

.flex-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.form-switch-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

/* Switch toggle custom slider */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .2s;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Emoji Input wrapper */
.emoji-input-wrapper {
  display: flex;
  gap: 10px;
}
.emoji-input-wrapper input { flex: 1; }
.emoji-preview {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* Sizes editor row remove */
.sizes-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* Combo Offer Box */
.combo-offer-group {
  background: #fff8f5;
  border: 1px solid rgba(255,91,34,0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.combo-offer-group h5 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-hover);
  text-transform: uppercase;
}

/* Media Box upload dropzone */
.media-box-revamp {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.media-preview-zone {
  height: 140px;
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.media-preview-zone img, .media-preview-zone video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.upload-placeholder {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.up-icon { font-size: 2rem; color: var(--text-light); }
.upload-placeholder strong { font-size: 0.78rem; color: var(--text); }
.upload-placeholder p { font-size: 0.65rem; color: var(--text-light); }

.media-input-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-file-select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-file-select:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.media-or-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: center;
  text-transform: uppercase;
}

.form-actions-bar {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.btn-form-cancel, .btn-form-save {
  padding: 12px 28px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.btn-form-cancel {
  background: #f1f5f9;
  color: var(--text);
}
.btn-form-cancel:hover { background: #e2e8f0; }

.btn-form-save {
  background: var(--primary);
  color: var(--white);
}
.btn-form-save:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(255,91,34,0.3);
}

/* ============================================================
   VIEWS: DASHBOARD SPECIFIC
   ============================================================ */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dash-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.dash-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-card__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.bg-blue   { background: #eff6ff; color: var(--info); }
.bg-green  { background: #ecfdf5; color: var(--success); }
.bg-orange { background: #fff7ed; color: var(--primary); }
.bg-purple { background: #faf5ff; color: #8b5cf6; }

.dash-card__change {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--success-bg);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.dash-card__body h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
}
.dash-card__body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-tables-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 20px;
}
.dash-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-panel h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px;
}

.bestseller-list-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.bs-item__icon { font-size: 1.6rem; }
.bs-item__info { flex: 1; }
.bs-item__info h5 { font-size: 0.82rem; font-weight: 800; color: var(--text); }
.bs-item__info span { font-size: 0.72rem; color: var(--text-muted); }
.bs-item__sales {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ============================================================
   VIEWS: FALLBACK PAGES
   ============================================================ */
.fallback-panel {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fallback-panel span { font-size: 3.5rem; }
.fallback-panel h3 { font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.fallback-panel p { font-size: 0.88rem; color: var(--text-muted); max-width: 380px; }

/* ============================================================
   MODALS AND INTERACTIVES
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.confirm-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.active .confirm-modal {
  transform: translateY(0);
}
.confirm-modal__icon {
  font-size: 3rem;
  color: var(--danger);
  margin-bottom: 14px;
}
.confirm-modal h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.confirm-modal p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.btn-cancel, .btn-delete-confirm {
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.btn-cancel { background: #f1f5f9; color: var(--text); }
.btn-delete-confirm { background: var(--danger); color: var(--white); }
.btn-delete-confirm:hover { background: #dc2626; }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
  .form-3-col-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-tables-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .topbar__burger { display: flex; }
  .form-3-col-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .stats-bar { grid-template-columns: 1fr; }
  .dashboard-stats-grid { grid-template-columns: 1fr; }
}
