/* ══════════════════════════════════════════════════════════════
   NETO WELLNESS · AAA PREMIUM AGENCY THEME & LIGHT CLINICAL DASHBOARD
   Primary Emerald: #0D9488 | Secondary Teal: #10B981 | Light Background: #F8FAFC
   ══════════════════════════════════════════════════════════════ */

:root {
  --nw-emerald: #0D9488;
  --nw-emerald-hover: #0F766E;
  --nw-emerald-light: rgba(13, 148, 136, 0.1);
  --nw-teal: #10B981;
  --nw-teal-light: rgba(16, 185, 129, 0.1);
  --nw-sky: #0EA5E9;
  --nw-amber: #F59E0B;
  --nw-rose: #F43F5E;

  --nw-bg-deep: #080B10;
  --nw-bg-primary: #0D1117;
  --nw-bg-card: rgba(22, 27, 34, 0.8);
  --nw-bg-card-solid: #161B22;
  --nw-text-primary: #F0F6FC;
  --nw-text-secondary: #8B949E;
  --nw-text-muted: #6E7681;

  /* Dashboard Soft Light Theme Tokens */
  --dash-bg: #F8FAFC;
  --dash-surface: #FFFFFF;
  --dash-border: #E2E8F0;
  --dash-text-main: #0F172A;
  --dash-text-sub: #475569;
  --dash-text-muted: #64748B;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dash-bg);
  color: var(--dash-text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Header Bar (Clean White Background #FFFFFF) ────────── */
.top_panel_wrap_nw {
  position: relative;
  width: 100%;
  height: 74px;
  background: #FFFFFF;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #E5E7EB;
}

.header-container-nw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* Original Logo Brand Image (Transparent PNG) */
.brand-logo-img-nw {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.brand-logo-img-nw:hover {
  transform: scale(1.03);
}

.brand-logo-img-nw img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.menu_main_nav_nw {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu_main_nav_nw a {
  color: #111111;
  padding-bottom: 4px;
  position: relative;
  transition: color 0.2s ease;
}

.menu_main_nav_nw a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--nw-emerald);
  transition: width 0.25s ease;
}

.menu_main_nav_nw a.active, .menu_main_nav_nw a:hover {
  color: var(--nw-emerald);
}

.menu_main_nav_nw a.active::after, .menu_main_nav_nw a:hover::after {
  width: 100%;
}

/* ── Generic Buttons ─────────────────────────────── */
.btn-nw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-nw-primary { background: var(--nw-emerald); color: #FFFFFF; box-shadow: 0 3px 10px rgba(13, 148, 136, 0.25); }
.btn-nw-primary:hover { background: var(--nw-emerald-hover); transform: translateY(-1px); box-shadow: 0 5px 15px rgba(13, 148, 136, 0.35); }

.btn-nw-ghost { background: #FFFFFF; color: var(--dash-text-sub); border: 1px solid var(--dash-border); }
.btn-nw-ghost:hover { background: #F1F5F9; color: var(--dash-text-main); border-color: #CBD5E1; }

/* ══════════════════════════════════════════════════════════════
   AAA DASHBOARD LIGHT THEME (#F8FAFC) & WELLNESS WIDGETS
   ══════════════════════════════════════════════════════════════ */
.nw-layout-light {
  display: flex;
  min-height: 100vh;
  background: var(--dash-bg);
  color: var(--dash-text-main);
}

/* Floating White Sidebar */
.nw-sidebar-light {
  width: 270px;
  background: #FFFFFF;
  border-right: 1px solid var(--dash-border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.02);
}

.nw-sidebar-brand-light {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dash-border);
  text-decoration: none;
}

.nw-sidebar-brand-light img {
  height: 44px;
  width: auto;
}

.nw-sidebar-user-light {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nw-sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D9488, #0F766E);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.nw-sidebar-nav-light {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nw-sidebar-item-light {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12.5px 16px;
  color: var(--dash-text-sub);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.nw-sidebar-item-light i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.nw-sidebar-item-light:hover {
  background: #F1F5F9;
  color: var(--dash-text-main);
  transform: translateX(3px);
}

.nw-sidebar-item-light.active {
  background: rgba(13, 148, 136, 0.1);
  color: var(--nw-emerald);
  font-weight: 800;
}

.nw-sidebar-item-light.active i {
  color: var(--nw-emerald);
}

.nw-main-light {
  flex: 1;
  min-width: 0;
  background: var(--dash-bg);
}

/* Card Containers */
.nw-card-light {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
  transition: all 0.25s ease;
}

.nw-card-light:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-color: #CBD5E1;
}

.nw-kpi-card-light {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nw-kpi-card-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.nw-kpi-val-light {
  font-size: 27px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.nw-input-light, .nw-select-light {
  width: 100%;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  color: var(--dash-text-main);
  font-weight: 600;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.nw-input-light:focus, .nw-select-light:focus {
  border-color: var(--nw-emerald);
  box-shadow: 0 0 0 3.5px rgba(13, 148, 136, 0.15);
}

/* Water Tracker Buttons */
.water-glass-btn-nw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.08);
  color: #0EA5E9;
  border: 1px solid rgba(14, 165, 233, 0.2);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.water-glass-btn-nw:hover {
  background: #0EA5E9;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Checkbox Items */
.habit-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #F8FAFC;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.habit-check-item input[type="checkbox"] {
  accent-color: var(--nw-emerald);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.habit-check-item:has(input:checked) {
  background: rgba(13, 148, 136, 0.08);
  border-color: var(--nw-emerald);
  color: #0F766E;
}

/* Badges */
.badge-nw {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-nw.success { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-nw.warning { background: rgba(245, 158, 11, 0.12); color: #B45309; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-nw.danger  { background: rgba(244, 63, 94, 0.12); color: #BE123C; border: 1px solid rgba(244, 63, 94, 0.25); }

@media (max-width: 992px) {
  .nw-layout-light { flex-direction: column; }
  .nw-sidebar-light { width: 100%; height: auto; position: relative; }
}
