/* ========================================================
   SREE'S SAREE'S - Admin Panel Dedicated Stylesheet
   ======================================================== */

.admin-body {
  background-color: #f1f5f9;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar-nav {
  width: 260px;
  background-color: #004550;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.admin-brand-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.admin-brand-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #ffffff;
}

.admin-brand-text small {
  font-size: 11px;
  letter-spacing: 2px;
  color: #c99738;
  font-weight: 600;
}

.admin-nav-group {
  padding: 20px 12px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  padding: 8px 12px 4px;
  font-weight: 600;
}

.admin-nav-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.admin-nav-tab i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.admin-nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.admin-nav-tab.active {
  background: #065464;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-nav-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 4px;
  background: #c99738;
  border-radius: 0 4px 4px 0;
}

.nav-badge-pill {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.admin-nav-tab.active .nav-badge-pill {
  background: #c99738;
  color: #ffffff;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-sidebar-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-sidebar-store:hover {
  background: #c99738;
  color: #ffffff;
}

/* Main Workspace */
.admin-main-content {
  margin-left: 260px;
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin Top Bar */
.admin-topbar {
  background: #ffffff;
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-search-wrap {
  position: relative;
  width: 340px;
}

.topbar-search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13.5px;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.topbar-search-wrap input:focus {
  border-color: #004550;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 69, 80, 0.1);
}

.topbar-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

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

.topbar-icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}

.topbar-icon-btn:hover {
  background: #f1f5f9;
  color: #004550;
}

.topbar-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 30px;
  transition: background 0.2s;
}

.admin-user-profile:hover {
  background: #f8fafc;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #004550;
  color: #c99738;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.admin-role {
  font-size: 11.5px;
  color: #64748b;
}

/* Page Body Container */
.admin-page-body {
  padding: 30px 32px;
  flex-grow: 1;
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-content-panel.active {
  display: block;
}

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

/* Section Header in Main */
.admin-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-view-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 700;
  color: #004550;
}

.admin-view-header p {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 2px;
}

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

.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 69, 80, 0.06);
}

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

.kpi-icon-teal { background: #e0f2f1; color: #004550; }
.kpi-icon-gold { background: #fef3c7; color: #b45309; }
.kpi-icon-blue { background: #e0f2fe; color: #0284c7; }
.kpi-icon-purple { background: #f3e8ff; color: #7e22ce; }

.kpi-details {
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.kpi-growth {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 4px;
}

.growth-up { color: #16a34a; }
.growth-down { color: #dc2626; }

/* Dashboard Grids */
.dashboard-middle-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.chart-card-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title-row h3 {
  font-size: 16px;
  font-weight: 700;
  color: #004550;
  letter-spacing: 0.5px;
}

.chart-filter-select {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
  color: #475569;
  outline: none;
}

/* Category Progress Bars */
.category-progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.progress-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 6px;
  font-weight: 500;
}

.progress-bar-bg {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.fill-silk { background: #004550; width: 45%; }
.fill-designer { background: #c99738; width: 25%; }
.fill-party { background: #8b5cf6; width: 18%; }
.fill-cotton { background: #06b6d4; width: 12%; }

/* Admin Tables Card */
.admin-table-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.table-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.table-search-input {
  padding: 9px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  width: 260px;
  outline: none;
}

.table-search-input:focus {
  border-color: #004550;
}

.filter-badge-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab-pill:hover, .filter-tab-pill.active {
  background: #004550;
  color: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #334155;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #fcfdfd;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-delivered { background: #dcfce7; color: #15803d; }
.status-delivered .status-pill-dot { background: #16a34a; }

.status-processing { background: #fef9c3; color: #854d0e; }
.status-processing .status-pill-dot { background: #eab308; }

.status-shipped { background: #e0f2fe; color: #0369a1; }
.status-shipped .status-pill-dot { background: #0284c7; }

.status-pending { background: #ffedd5; color: #c2410c; }
.status-pending .status-pill-dot { background: #f97316; }

.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-cancelled .status-pill-dot { background: #ef4444; }

/* Status selector inside table */
.status-select-inline {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

/* Action Icon Buttons */
.action-btn-group {
  display: flex;
  gap: 8px;
}

.btn-table-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-table-action:hover {
  background: #004550;
  color: #ffffff;
  border-color: #004550;
}

.btn-table-action.delete-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Add Saree & Primary Buttons */
.btn-admin-primary {
  background: #004550;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-admin-primary:hover {
  background: #065464;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 69, 80, 0.2);
}

/* Saree Table Item Display */
.table-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-product-thumb {
  width: 44px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.product-cell-meta h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.product-cell-meta span {
  font-size: 11.5px;
  color: #64748b;
}

/* Coupon Cards Grid */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.coupon-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  padding: 20px;
  position: relative;
  transition: all 0.2s;
}

.coupon-card:hover {
  border-color: #004550;
  box-shadow: 0 4px 12px rgba(0, 69, 80, 0.08);
}

.coupon-badge-code {
  display: inline-block;
  background: #e0f2f1;
  color: #004550;
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Settings Form */
.settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.settings-section-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-section-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #004550;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* CMS Page Editor Styles */
.cms-page-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  overflow-x: auto;
}

.cms-page-btn {
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.cms-page-btn:hover {
  border-color: #004550;
  color: #004550;
}

.cms-page-btn.active {
  background: #004550;
  color: #ffffff;
  border-color: #004550;
  box-shadow: 0 4px 12px rgba(0, 69, 80, 0.15);
}

.cms-panel-wrap {
  display: none;
}

.cms-panel-wrap.active {
  display: block;
}

.cms-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.cms-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #004550;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-img-preview-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
}

.cms-thumb-display {
  width: 120px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #ffffff;
}

.cms-img-controls {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cms-file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  width: fit-content;
}

.cms-file-upload-btn:hover {
  background: #e2e8f0;
}

.cms-actions-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

/* Saree Image Upload Dropzone */
.saree-upload-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.saree-upload-preview {
  width: 100px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #ffffff;
  flex-shrink: 0;
}

.upload-dropzone {
  flex-grow: 1;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
}

.upload-dropzone:hover {
  border-color: #004550;
  background: #f0fdf4;
}

.upload-dropzone i {
  font-size: 26px;
  color: #004550;
  margin-bottom: 6px;
}

.upload-dropzone p {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 2px;
}

.upload-dropzone small {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Modal Popup in Admin */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.admin-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.admin-modal-box {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.admin-modal-overlay.show .admin-modal-box {
  transform: scale(1);
}

.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #004550;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

/* ========================================================
   ADMIN RESPONSIVE MOBILE APP SYSTEM & ZERO-ALIGNMENT BUGS
   ======================================================== */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-middle-grid { grid-template-columns: 1fr; }
  .coupons-grid { grid-template-columns: 1fr; }
  .settings-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Prevent Any Layout Overflow */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Compact 56px App Header */
  .admin-topbar {
    height: 58px !important;
    padding: 0 12px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
  }

  .admin-mobile-sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
    margin-right: 8px !important;
    border-radius: 8px;
    background: #f1f5f9 !important;
    color: #004550 !important;
  }

  .topbar-search-wrap {
    display: none !important;
  }

  .topbar-right-actions {
    gap: 8px !important;
  }

  .admin-user-profile {
    padding: 2px 6px !important;
    gap: 6px !important;
  }

  .admin-user-info {
    display: none !important; /* Hide long name text on compact mobile header */
  }

  .admin-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }

  /* Slide-Out Off-Canvas Sidebar Drawer */
  .admin-sidebar-nav {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 275px !important;
    z-index: 1000 !important;
    transform: translateX(-100%) !important;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

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

  /* Main Workspace Expansion */
  .admin-main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }

  .admin-page-body {
    padding: 14px 12px 60px !important;
  }

  /* Section Header on Mobile */
  .admin-view-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
  }

  .admin-view-header h1 {
    font-size: 20px !important;
  }

  .admin-view-header p {
    font-size: 12.5px !important;
  }

  /* 2x2 Responsive App Grid for KPI Cards */
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .kpi-card {
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }

  .kpi-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  .kpi-data h3 {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .kpi-data p {
    font-size: 11.5px !important;
  }

  /* Dashboard Middle Grid */
  .dashboard-middle-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
  }

  /* Data Table Cards on Mobile */
  .admin-table-card {
    padding: 14px 10px !important;
    border-radius: 10px !important;
    margin-bottom: 16px !important;
  }

  .table-toolbar-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .table-search-input {
    width: 100% !important;
    font-size: 14px !important;
  }

  .filter-badge-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    width: 100% !important;
    display: flex !important;
    gap: 6px !important;
    scrollbar-width: none;
  }

  .filter-badge-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab-pill {
    white-space: nowrap !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  /* Smooth Horizontal Scroll for Tables */
  .table-responsive, [style*="overflow-x: auto"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  .data-table, .admin-data-table {
    min-width: 580px; /* guarantees complete readability on small screens */
  }

  .data-table th, .data-table td {
    padding: 10px 8px !important;
    font-size: 12.5px !important;
  }

  .btn-table-action {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  /* Mobile App Modals */
  .admin-modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
    margin: auto !important;
  }

  .modal-head {
    padding: 14px 16px !important;
  }

  .modal-head h3 {
    font-size: 16px !important;
  }

  .modal-body {
    padding: 16px 14px !important;
    max-height: calc(92vh - 120px) !important;
    overflow-y: auto !important;
  }

  .modal-footer {
    padding: 12px 14px !important;
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }

  .modal-footer button {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
  }

  /* Single Column Stacking for Form Rows */
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-input, .form-select, select, input[type="text"], input[type="number"], input[type="email"], input[type="tel"] {
    font-size: 16px !important; /* Prevents auto zoom */
  }

  /* Coupons Grid */
  .coupons-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Settings Form Grid */
  .settings-form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .settings-section-card {
    padding: 16px 14px !important;
    border-radius: 10px !important;
  }
}
