/* ==========================================================================
   SMILE STAGE — DESIGN SYSTEM & THEME
   Corporate Identity: SMile tage private ltd
   Aesthetics: Bento-Box, Luxury Ivory & Pearl with Radiant Gold Accents
   ========================================================================== */

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

:root {
  /* Color Palette - Luxury Ivory & Pearl with Radiant Gold */
  --bg-darkest: #EAE6DF;
  --bg-main: #F8F6F0;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.80);

  /* Gold Accents & Highlights */
  --gold-primary: #C59B27;
  --gold-light: #8C6B17;
  --gold-dark: #6E520D;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C59B27 50%, #9B781A 100%);
  --gold-border: rgba(197, 155, 39, 0.25);
  --gold-border-strong: rgba(197, 155, 39, 0.55);
  --gold-glow: 0 0 24px rgba(197, 155, 39, 0.18);
  --gold-glow-subtle: 0 4px 16px rgba(197, 155, 39, 0.10);

  /* Typography Colors */
  --text-primary: #181B22;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-gold: #8C6B17;

  /* Status Colors */
  --status-active: #059669;
  --status-active-bg: rgba(5, 150, 105, 0.10);
  --status-inactive: #475569;
  --status-inactive-bg: rgba(71, 85, 105, 0.10);
  --status-disabled: #DC2626;
  --status-disabled-bg: rgba(220, 38, 38, 0.10);
  --status-retired: #7C3AED;
  --status-retired-bg: rgba(124, 58, 237, 0.12);

  /* Structure & Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 260px;
}

/* Custom Gold Accent Scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #C59B27 rgba(197, 155, 39, 0.08);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(197, 155, 39, 0.06);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4AF37 0%, #C59B27 100%);
  border-radius: var(--radius-full);
  border: 2px solid #F8F6F0;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E5C158 0%, #D4AF37 100%);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(197, 155, 39, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(197, 155, 39, 0.05) 0%, transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 26px rgba(160, 130, 40, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--gold-border-strong);
  box-shadow: 0 12px 34px rgba(160, 130, 40, 0.12), var(--gold-glow-subtle);
}

/* Gold Accents & Badges */
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: rgba(197, 155, 39, 0.10);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(197, 155, 39, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-border-strong);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  background: rgba(197, 155, 39, 0.10);
  color: var(--gold-dark);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .col-3, .col-4 { grid-column: span 6; }
  .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .col-3, .col-4, .col-6 { grid-column: span 12; }
}

/* Bento Card */
.bento-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-value {
  font-size: 2.1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.bento-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status-active {
  background: var(--status-active-bg);
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-inactive {
  background: var(--status-inactive-bg);
  color: var(--status-inactive);
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.status-disabled {
  background: var(--status-disabled-bg);
  color: var(--status-disabled);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-retired {
  background: var(--status-retired-bg);
  color: var(--status-retired);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

/* App Layout with Sidebar */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #0B0F19;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.15);
  flex-shrink: 0;
}

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

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(197, 155, 39, 0.08);
  color: var(--gold-light);
}

.nav-link.active {
  background: rgba(197, 155, 39, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--gold-border-strong);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(197, 155, 39, 0.12);
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: 72px;
  border-bottom: 1px solid var(--gold-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03);
}

.topbar-title {
  font-size: 1.3rem;
  font-weight: 600;
}

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

/* Active ID Switcher Component */
.id-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.id-switcher label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.id-select {
  background: transparent;
  color: var(--gold-light);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  border: none;
  outline: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.id-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.content-container {
  padding: 32px;
  flex: 1;
}

/* Tables */
.data-table-container {
  overflow-x: auto;
  margin-top: 16px;
}

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

.data-table th {
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--gold-border);
  background: rgba(247, 245, 240, 0.75);
}

.data-table td {
  padding: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(197, 155, 39, 0.10);
}

.data-table tr:hover td {
  background: rgba(197, 155, 39, 0.05);
  color: var(--text-primary);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(197, 155, 39, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
  background: #FFFFFF;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 26, 20, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), var(--gold-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gold-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .topbar {
    padding: 0 16px;
  }
  .content-container {
    padding: 16px;
  }
}

/* ==========================================================================
   OPTION 1: ROYAL PEARL & RADIANT GOLD EXECUTIVE DASHBOARD STYLES
   ========================================================================== */

.wallet-hero-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F0 100%);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(184, 134, 11, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.wallet-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

.wallet-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.wallet-balance-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.wallet-balance-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.1;
}

.wallet-balance-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.cap-progress-box {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  min-width: 320px;
}

.cap-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.cap-progress-bar {
  height: 12px;
  background: #EFECE6;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  position: relative;
}

.cap-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C59B27, #D4AF37);
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 6-Card KPI Grid */
.kpi-pearl-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-pearl-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.kpi-pearl-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 26px rgba(184, 134, 11, 0.12);
}

.kpi-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon-sym {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.kpi-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--gold-dark);
  margin-top: 4px;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 2-Column Split Grid */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Right Column Widgets */
.perfume-tracker-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.05);
  margin-bottom: 24px;
}

.perfume-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.perfume-bottle-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #FAF8F5;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.perfume-steps-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 18px 0 10px;
}

.perfume-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FAF8F5;
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.perfume-step-dot.active {
  background: var(--gold-gradient);
  border-color: var(--gold-light);
  color: #000;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.perfume-step-line {
  flex: 1;
  height: 2px;
  background: var(--gold-border);
  margin: 0 6px;
}

.referral-share-card {
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.05);
  margin-bottom: 24px;
}

.referral-link-input-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.referral-link-input-group input {
  flex: 1;
  background: #FAF8F5;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-family: monospace;
}

@media (max-width: 1200px) {
  .kpi-pearl-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .kpi-pearl-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-hero-top { flex-direction: column; }
  .wallet-balance-num { font-size: 2.2rem; }
}

