/* ==========================================================================
   SONAMSONALI BEAUTY PARLOUR - ENTERPRISE ADMIN & DEVELOPER PORTAL
   ========================================================================== */

:root {
  --admin-bg: #F5F0F2;
  --sidebar-bg: #1F191B;
  --sidebar-hover: #2D2326;
  --sidebar-active: #9E646D;
  --card-bg: #FFFFFF;
  --text-dark: #1E1719;
  --text-muted: #6E686A;
  --primary-rose: #9E646D;
  --primary-rose-light: #FDE8EC;
  --gold-accent: #D4AF37;
  --border-color: #EADBDE;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.admin-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--admin-bg);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Login Wrapper */
.admin-login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at center, #FDE8EC 0%, #EFE4E7 100%);
}
.admin-login-card {
  background: #FFFFFF;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(158, 100, 109, 0.15);
  border: 1px solid var(--border-color);
}
.admin-login-header {
  text-align: center;
  margin-bottom: 24px;
}
.admin-login-header h2 {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  color: var(--primary-rose);
  letter-spacing: 1px;
}
.admin-login-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 100;
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-brand h3 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #FFFFFF;
}
.role-badge {
  font-size: 0.65rem;
  background: var(--gold-accent);
  color: #1A1718;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
}
.sidebar-menu {
  list-style: none;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow-y: auto;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #CFC2C5;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #FFFFFF;
}
.sidebar-link.active {
  background: var(--primary-rose);
  color: #FFFFFF;
}
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-info strong { display: block; font-size: 0.88rem; color: #FFF; }
.user-info small { font-size: 0.72rem; color: #9E8C90; text-transform: uppercase; }
.btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.btn-logout:hover { background: #D32F2F; }

/* Main Content */
.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-topbar {
  background: #FFFFFF;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-dark);
}
.topbar-actions {
  display: flex;
  gap: 8px;
}
.admin-content {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

/* Tabs */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Cards & Modern 3D Smart KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.kpi-box {
  background: linear-gradient(145deg, #FFFFFF, #FCF8F9);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(226, 217, 220, 0.85);
  box-shadow: 0 4px 15px -2px rgba(158, 100, 109, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #9E646D, #D4AF37);
  opacity: 0.85;
}
.kpi-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px -4px rgba(158, 100, 109, 0.16), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
  border-color: rgba(158, 100, 109, 0.35);
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kpi-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.kpi-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(158, 100, 109, 0.1);
  color: var(--primary-rose);
}
.kpi-icon-bubble.green { background: rgba(46, 125, 50, 0.12); color: #2E7D32; }
.kpi-icon-bubble.blue { background: rgba(25, 118, 210, 0.12); color: #1976D2; }
.kpi-icon-bubble.orange { background: rgba(237, 108, 2, 0.12); color: #ED6C02; }
.kpi-icon-bubble.red { background: rgba(211, 47, 47, 0.12); color: #D32F2F; }
.kpi-icon-bubble.gold { background: rgba(212, 175, 55, 0.15); color: #9B7B18; }
.kpi-icon-bubble.purple { background: rgba(123, 31, 162, 0.12); color: #7B1FA2; }

.kpi-box h3 {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.kpi-sub {
  font-size: 0.74rem;
  color: #7A6F72;
  font-weight: 500;
}
.kpi-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(158, 100, 109, 0.1);
  color: var(--primary-rose);
  text-transform: uppercase;
}
.kpi-pill.live { background: rgba(46, 125, 50, 0.12); color: #2E7D32; }
.kpi-pill.warn { background: rgba(237, 108, 2, 0.12); color: #ED6C02; }
.kpi-pill.alert { background: rgba(211, 47, 47, 0.12); color: #D32F2F; }

.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}
.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FCF9FA;
}
.card-header h3 {
  font-family: Georgia, serif;
  font-size: 1.18rem;
  color: var(--text-dark);
  font-weight: 700;
}

/* Tables & Interactive Rows */
.table-responsive { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: #FAF5F6;
  color: var(--primary-rose);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.data-table td {
  padding: 13px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid #F3ECEE;
  color: var(--text-dark);
  vertical-align: middle;
}
.data-table tr:hover td { background: #FAF6F7; }
.text-center { text-align: center; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.badge-warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }
.badge-danger { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.badge-info { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }
.badge-purple { background: #F3E5F5; color: #7B1FA2; border: 1px solid #E1BEE7; }
.badge-gold { background: #FFF9C4; color: #827717; border: 1px solid #FFF59D; }

/* Quick Price & Action Tools */
.quick-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F5EEF0;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid #EAD8DC;
}
.quick-price-val {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-rose);
  min-width: 65px;
  text-align: right;
  margin-right: 4px;
}
.btn-mini-step {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #D6C2C7;
  background: #FFF;
  color: var(--primary-rose);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.btn-mini-step:hover {
  background: var(--primary-rose);
  color: #FFF;
  border-color: var(--primary-rose);
}

/* Buttons & Form Controls */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary-rose); color: #FFF; }
.btn-primary:hover { background: #824F57; }
.btn-secondary { background: #FFF; color: var(--primary-rose); border: 1.5px solid var(--primary-rose); }
.btn-secondary:hover { background: var(--primary-rose-light); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-full { grid-column: 1 / -1; }
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #333;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 0.9rem;
  background: #FAF8F9;
}
.form-control:focus {
  background: #FFF;
  border-color: var(--primary-rose);
  outline: none;
}

/* Modals */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.admin-modal-backdrop.active { display: flex; }
.admin-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Policy Manager */
.policy-manager-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-top: 1px solid var(--border-color);
}
.policy-sidebar-list {
  background: #FAF7F5;
  border-right: 1px solid var(--border-color);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy-tab-item {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}
.policy-tab-item:hover { background: #F0E6E8; }
.policy-tab-item.active { background: var(--primary-rose); color: #FFF; }
.policy-editor-panel { padding: 20px; }

/* Report Box */
.report-box {
  background: #FAF7F5;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.report-box h4 { font-family: Georgia, serif; font-size: 1.1rem; margin-bottom: 4px; }
.report-box p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }

/* Sidebar Backdrop for Mobile/Tablet */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 12, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.admin-sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-close-btn-mobile {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFF;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sidebar-close-btn-mobile:hover {
  background: #D32F2F;
}


/* ==========================================================================
   3D GRAPHICS & 3D MODEL MODERN DASHBOARD AESTHETICS
   ========================================================================== */

/* 3D Glassmorphic Cards & Perspective */
.card-3d {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 246, 248, 0.95));
  border-radius: 18px;
  border: 1px solid rgba(226, 217, 220, 0.9);
  box-shadow: 
    0 16px 36px -8px rgba(158, 100, 109, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.card-3d:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 22px 48px -10px rgba(158, 100, 109, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.05);
}

.dashboard-3d-analytics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

/* 3D Visual Performance Chart */
.chart-3d-card {
  padding: 22px;
}
.chart-3d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.chart-3d-title {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-3d-bars-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 180px;
  padding: 16px 12px 10px;
  background: linear-gradient(180deg, rgba(253, 246, 248, 0.4) 0%, rgba(245, 235, 238, 0.8) 100%);
  border-radius: 14px;
  border: 1px dashed rgba(158, 100, 109, 0.25);
  position: relative;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}
.chart-bar-3d {
  width: 100%;
  max-width: 38px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #D4AF37 0%, #9E646D 100%);
  box-shadow: 0 6px 14px rgba(158, 100, 109, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
  min-height: 8px;
}
.chart-bar-3d:hover {
  filter: brightness(1.15);
  transform: scaleY(1.05);
  box-shadow: 0 10px 22px rgba(158, 100, 109, 0.4);
}
.chart-bar-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1F191B;
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 10;
}
.chart-col:hover .chart-bar-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.chart-day-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
}

/* 3D Category Breakdown & Gauge */
.breakdown-3d-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.breakdown-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
}
.breakdown-bar-bg {
  height: 10px;
  background: #EFE4E7;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}
.breakdown-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9E646D, #D4AF37);
  box-shadow: 0 2px 6px rgba(158, 100, 109, 0.3);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 3D Quick Action Hub */
.quick-hub-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.quick-hub-btn {
  background: linear-gradient(145deg, #FFFFFF, #FAF3F5);
  border: 1.5px solid rgba(226, 217, 220, 0.9);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(158, 100, 109, 0.06);
}
.quick-hub-btn:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary-rose);
  box-shadow: 0 10px 22px rgba(158, 100, 109, 0.18);
  background: #FFF;
}
.quick-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--primary-rose-light);
  color: var(--primary-rose);
  box-shadow: 0 4px 10px rgba(158, 100, 109, 0.15);
}
.quick-hub-btn span {
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   REAL-TIME NOTIFICATION HUB & TOAST NOTICES
   ========================================================================== */
.notification-bell-wrap {
  position: relative;
  display: inline-flex;
}
.notification-bell-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: #FFF;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.notification-bell-btn:hover {
  background: var(--primary-rose-light);
  color: var(--primary-rose);
  border-color: var(--primary-rose);
}
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #D32F2F;
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFF;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.4);
  animation: pulseBadge 1.8s infinite;
}
@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  z-index: 1200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: dropSlide 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.notification-dropdown.active { display: flex; }
@keyframes dropSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.notif-header {
  padding: 14px 18px;
  background: #FCF8F9;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-header h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
}
.notif-list {
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #F5EDF0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: #FAF3F5; }
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.notif-desc { font-size: 0.76rem; color: #666; line-height: 1.3; }
.notif-time { font-size: 0.68rem; color: #999; margin-top: 4px; }

/* Real-Time Floating 3D Toast Alert */
.toast-container-3d {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast-card-3d {
  pointer-events: auto;
  min-width: 320px;
  max-width: 400px;
  background: linear-gradient(135deg, #1F191B 0%, #2E2427 100%);
  color: #FFF;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1.5px solid #D4AF37;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  gap: 14px;
  align-items: center;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.toast-card-3d .toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.toast-card-3d .toast-content { flex: 1; }
.toast-card-3d .toast-title { font-size: 0.88rem; font-weight: 800; color: #D4AF37; }
.toast-card-3d .toast-msg { font-size: 0.78rem; color: #E8DEE0; margin-top: 2px; }
.toast-card-3d .toast-btn {
  background: #D4AF37;
  color: #1F191B;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}

/* Sound Toggle Button */
.btn-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FAF3F5;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary-rose);
  transition: all 0.2s;
}
.btn-sound-toggle.muted {
  color: #888;
  background: #F0F0F0;
}

/* ==========================================================================
   SALON SERVICES PICTURE THUMBNAILS & PRESET PICKER
   ========================================================================== */
.service-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 3px 8px rgba(158, 100, 109, 0.12);
  background: #FAF0F2;
}
.service-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.service-thumb-wrap:hover .service-thumb-img {
  transform: scale(1.15);
}
.service-thumb-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Preset Beauty Photo Selector Grid */
.preset-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  background: #FAF5F6;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.preset-photo-chip {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: #FFF;
}
.preset-photo-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary-rose);
}
.preset-photo-chip.selected {
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px #D4AF37;
}
.preset-photo-chip img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  display: block;
}
.preset-photo-chip span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #FFF;
  color: var(--text-dark);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE ENGINE (MOBILE, TABLET, LAPTOP)
   ========================================================================== */

/* 1. TABLET LANDSCAPE & PORTRAIT BREAKPOINT (<= 1024px) */
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    transform: translateX(-100%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    z-index: 1060;
  }
  .admin-sidebar.active {
    transform: translateX(0);
  }
  .sidebar-close-btn-mobile {
    display: flex !important;
  }
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #FAF3F5;
    border: 1px solid var(--border-color);
    color: var(--primary-rose);
    cursor: pointer;
  }
  .dashboard-split-grid,
  .dashboard-3d-analytics-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .policy-manager-grid {
    grid-template-columns: 1fr;
  }
  .policy-sidebar-list {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 14px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .policy-tab-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .admin-modal-card {
    max-width: 90vw;
  }
}

/* 2. MOBILE & PHABLET BREAKPOINT (<= 768px) */
@media (max-width: 768px) {
  .admin-topbar {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-topbar h2 {
    font-size: 1.05rem;
    order: 1;
    margin: 0;
  }
  .mobile-toggle {
    order: 0;
  }
  .topbar-actions {
    order: 2;
    margin-left: auto;
    gap: 6px;
  }
  .admin-content {
    padding: 14px 10px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .kpi-box {
    padding: 14px 10px;
    border-radius: 12px;
  }
  .kpi-box h3 {
    font-size: 1.35rem;
  }
  .kpi-label {
    font-size: 0.68rem;
  }
  .kpi-icon-bubble {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .chart-3d-card {
    padding: 16px 12px;
  }
  .chart-3d-bars-wrap {
    height: 150px;
    padding: 10px 6px;
    gap: 6px;
    overflow-x: auto;
  }
  .chart-bar-3d {
    max-width: 24px;
  }
  .chart-day-label {
    font-size: 0.65rem;
  }
  .quick-hub-3d {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .quick-hub-btn {
    padding: 12px 8px;
  }
  .quick-hub-icon {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  .card {
    border-radius: 12px;
  }
  .card-header {
    padding: 12px 14px;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
  }
  .card-header > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .card-header input[type="text"],
  .card-header select,
  .card-header button,
  .card-header a.btn {
    width: 100% !important;
    justify-content: center;
  }
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .form-control {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    padding: 9px 12px;
  }
  .admin-modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .admin-modal-card {
    max-height: 94vh;
    padding: 20px 14px;
    border-radius: 16px 16px 0 0;
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
  }
  .notification-dropdown {
    width: calc(100vw - 24px);
    right: -10px;
    max-width: 340px;
  }
  .toast-container-3d {
    left: 12px;
    right: 12px;
    bottom: 16px;
  }
  .toast-card-3d {
    min-width: unset;
    width: 100%;
    padding: 12px 14px;
  }
  .btn-sound-toggle span {
    display: none;
  }
  .btn-sound-toggle {
    padding: 7px 10px;
  }
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    max-width: 100%;
  }
  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .data-table th {
    font-size: 0.72rem;
  }
}

/* 3. COMPACT SMARTPHONES BREAKPOINT (<= 480px) */
@media (max-width: 480px) {
  .admin-topbar {
    padding: 10px 12px;
  }
  .admin-topbar h2 {
    font-size: 0.95rem;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quick-hub-3d {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-header h3 {
    font-size: 1.02rem;
  }
  .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .btn-sm {
    padding: 5px 10px;
    font-size: 0.76rem;
  }
  .preset-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  .preset-photo-chip img {
    height: 46px;
  }
  .admin-modal-card {
    padding: 16px 12px;
  }
}


