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

body {
  font-family: 'Inter', sans-serif;
  background: #070e1a;
  color: #c8d0e0;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.sidebar {
  width: 240px;
  background: #060c18;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand-logo {
  height: auto;
  width: 75%;
  object-fit: contain;
}

.nav-section-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 18px 20px 6px;
}

.nav-list { list-style: none; }

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-link .ni { font-size: 13px; width: 16px; text-align: center; }
.nav-link .arrow { margin-left: auto; font-size: 9px; transition: transform 0.2s; color: rgba(255,255,255,0.2); }
.nav-item.open .arrow { transform: rotate(180deg); }
.nav-link.active-parent { color: #fff; }

.nav-children { list-style: none; display: none; }
.nav-item.open .nav-children { display: block; }

.nav-child-link {
  display: block;
  padding: 7px 20px 7px 46px;
  color: rgba(255,255,255,0.38);
  text-decoration: none; font-size: 13px;
  transition: color 0.15s;
  position: relative;
}
.nav-child-link:hover { color: rgba(255,255,255,0.75); }
.nav-child-link.active {
  color: #00b4ff;
  font-weight: 600;
  background: rgba(0,180,255,0.08);
}
.nav-child-link.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: #00b4ff;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sb-user-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: #00b4ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name { font-size: 13px; font-weight: 600; color: #fff; }
.sb-user-role { font-size: 11px; color: rgba(255,255,255,0.3); }
.sb-logout {
  background: none; border: none;
  color: rgba(255,255,255,0.25); cursor: pointer; font-size: 14px; padding: 4px;
  transition: color 0.15s;
}
.sb-logout:hover { color: #fff; }

/* ════════════════════════════════════════
   MAIN
════════════════════════════════════════ */
.main { flex: 1; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; margin-left: 240px; }

/* ── Topbar ── */
.topbar {
  height: 58px;
  background: #070e1a;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 6px; }

.tb-btn {
  width: 36px; height: 36px;
  border: none; background: none; border-radius: 8px;
  color: rgba(255,255,255,0.4); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: background 0.15s, color 0.15s;
}
.tb-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }

.notif-wrap { position: relative; }
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 15px; height: 15px;
  background: #00b4ff; border-radius: 50%;
  font-size: 8px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #070e1a;
}

.tb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #26a69a; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin-left: 4px;
}

/* ── Content ── */
.content { padding: 24px 24px 40px; }

.page-header { margin-bottom: 22px; }
.page-header h1 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── Card grid ── */
.cards-row { display: grid; gap: 18px; margin-bottom: 18px; }
.row-rev  { grid-template-columns: 2.2fr 1fr; }
.row-3b   { grid-template-columns: 1.1fr 1.4fr 1fr; }

.card {
  background: #0d1b2e;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.card-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 14px; font-weight: 600; color: #e2e8f0; }

/* ── KPI Cards ── */
.kpi-row { grid-template-columns: repeat(4, 1fr); }
.kpi-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.kpi-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.kpi-blue   { background: rgba(96,165,250,0.12); color: #60a5fa; }
.kpi-orange { background: rgba(0,180,255,0.12); color: #00b4ff; }
.kpi-green  { background: rgba(52,211,153,0.12); color: #34d399; }
.kpi-purple { background: rgba(167,139,250,0.12); color: #a78bfa; }

.kpi-trend { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.trend-up   { color: #34d399; }
.trend-down { color: #f87171; }

.kpi-value { font-size: 24px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 3px; }
.kpi-label { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.kpi-spark-wrap { position: relative; height: 36px; }
.kpi-spark { width: 100%; height: 36px; }

/* Period tabs */
.period-tabs { display: flex; gap: 2px; }
.period-tab {
  padding: 3px 10px; font-size: 11px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08); background: none; border-radius: 5px;
  cursor: pointer; color: rgba(255,255,255,0.4); font-family: inherit;
  transition: all 0.15s;
}
.period-tab.active { background: #00b4ff; border-color: #00b4ff; color: #fff; }
.period-tab:hover:not(.active) { background: rgba(255,255,255,0.05); color: #fff; }

/* ── Revenue chart card ── */
.rev-meta-row { display: flex; gap: 28px; margin-bottom: 16px; }
.rev-meta-item { display: flex; align-items: center; gap: 10px; }
.rev-meta-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-orange { background: #00b4ff; }
.dot-blue   { background: #60a5fa; }
.rev-meta-val { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; }
.rev-meta-lbl { font-size: 11px; color: rgba(255,255,255,0.3); }
.rev-chart-wrap { position: relative; height: 180px; }

/* ── Donut chart card ── */
.donut-wrap { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; }
.donut-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.donut-total { font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }
.donut-label { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 3px; }

.donut-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dl-item { display: flex; align-items: center; gap: 8px; }
.dl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dl-orange { background: #00b4ff; }
.dl-blue   { background: #60a5fa; }
.dl-purple { background: #a78bfa; }
.dl-red    { background: #f87171; }
.dl-name { font-size: 12px; color: rgba(255,255,255,0.5); flex: 1; }
.dl-val  { font-size: 12px; font-weight: 600; color: #e2e8f0; }

/* ── Next Meeting card ── */
.meeting-card { display: flex; flex-direction: column; }
.meeting-badge {
  background: rgba(0,180,255,0.15); color: #00b4ff;
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; letter-spacing: 0.5px;
}
.meeting-body { display: flex; gap: 14px; margin-bottom: 16px; flex: 1; }
.meeting-time-block { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.meeting-time { font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
.meeting-time-sub { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }
.meeting-divider { width: 1px; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.meeting-info { flex: 1; min-width: 0; }
.meeting-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.meeting-client { font-size: 12px; color: rgba(255,255,255,0.35); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.meeting-attendees { display: flex; align-items: center; gap: 4px; }
.sm-av { width: 24px; height: 24px; font-size: 8px; }
.more-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.meeting-actions { display: flex; gap: 8px; margin-top: auto; }
.meet-btn {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; border: none; transition: opacity 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.meet-join { background: #00b4ff; color: #fff; }
.meet-join:hover { opacity: 0.88; }
.meet-view { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.07); }
.meet-view:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Upcoming Events ── */
.view-all { font-size: 11px; color: #00b4ff; text-decoration: none; font-weight: 500; }
.view-all:hover { text-decoration: underline; }

.events-list { display: flex; flex-direction: column; gap: 12px; }
.event-item { display: flex; align-items: center; gap: 12px; }
.event-date-block {
  width: 40px; height: 44px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ev-orange { background: rgba(0,180,255,0.15); }
.ev-blue   { background: rgba(96,165,250,0.15); }
.ev-purple { background: rgba(167,139,250,0.15); }
.ev-day { font-size: 16px; font-weight: 700; color: #fff; line-height: 1; }
.ev-mon { font-size: 9px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.4); letter-spacing: 0.5px; }
.ev-orange .ev-day { color: #00b4ff; }
.ev-blue   .ev-day { color: #60a5fa; }
.ev-purple .ev-day { color: #a78bfa; }

.event-info { flex: 1; min-width: 0; }
.event-title { font-size: 13px; font-weight: 500; color: #e2e8f0; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-meta { font-size: 11px; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 3px; }

.event-type {
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.et-meeting  { background: rgba(0,180,255,0.12); color: #00b4ff; }
.et-call     { background: rgba(96,165,250,0.12); color: #60a5fa; }
.et-training { background: rgba(167,139,250,0.12); color: #a78bfa; }

/* ── Top Agents ── */
.agents-list { display: flex; flex-direction: column; gap: 13px; }
.agent-row { display: flex; align-items: center; gap: 9px; }
.agent-rank {
  width: 18px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.2); text-align: center; flex-shrink: 0;
}
.rank-1 { color: #00b4ff; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #a78bfa; }

.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 12px; font-weight: 500; color: #c8d0e0; margin-bottom: 5px; }
.agent-bar-wrap { height: 4px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.agent-bar { height: 100%; border-radius: 10px; }
.ab-orange { background: #00b4ff; }
.ab-blue   { background: #60a5fa; }
.ab-purple { background: #a78bfa; }
.ab-green  { background: #34d399; }
.w-88 { width: 88%; }
.w-74 { width: 74%; }
.w-61 { width: 61%; }
.w-49 { width: 49%; }
.agent-deals { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45); width: 34px; text-align: right; flex-shrink: 0; }

/* ── Avatars ── */
.u-av {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.av-teal   { background: #0d9488; }
.av-purple { background: #7c3aed; }
.av-orange { background: #ea580c; }
.av-green  { background: #059669; }
.av-indigo { background: #4338ca; }
.av-blue   { background: #2563eb; }

/* ════════════════════════════════════════
   SIDEBAR OVERLAY (mobile / tablet)
════════════════════════════════════════ */
.sidebar { transition: transform 0.25s ease; }
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99; cursor: pointer;
}
.layout.sb-open .sidebar-overlay { display: block; }
.layout.sb-open .sidebar         { transform: translateX(0) !important; }

/* ════════════════════════════════════════
   4K — 2560px +
════════════════════════════════════════ */
@media (min-width: 2560px) {
  body            { font-size: 16px; }
  .sidebar        { width: 280px; }
  .main           { margin-left: 280px; }
  .content        { padding: 36px 40px 56px; }
  .topbar         { height: 66px; padding: 0 32px; }
  .page-header h1 { font-size: 28px; }
  .kpi-value      { font-size: 30px; }
  .kpi-icon       { width: 52px; height: 52px; font-size: 22px; }
  .card           { padding: 26px; border-radius: 16px; }
  .card-title     { font-size: 16px; }
  .cards-row      { gap: 22px; margin-bottom: 22px; }
  .rev-chart-wrap { height: 220px; }
  .donut-wrap     { height: 220px; }
}

/* ════════════════════════════════════════
   2K — 1920px – 2559px
════════════════════════════════════════ */
@media (min-width: 1920px) and (max-width: 2559px) {
  body            { font-size: 15px; }
  .sidebar        { width: 260px; }
  .main           { margin-left: 260px; }
  .content        { padding: 28px 32px 44px; }
  .topbar         { height: 62px; padding: 0 28px; }
  .kpi-value      { font-size: 26px; }
  .kpi-icon       { width: 48px; height: 48px; font-size: 20px; }
  .rev-chart-wrap { height: 200px; }
}

/* ════════════════════════════════════════
   LAPTOP — 1024px – 1279px
════════════════════════════════════════ */
@media (max-width: 1279px) {
  .kpi-value      { font-size: 20px; }
  .kpi-icon       { width: 38px; height: 38px; font-size: 16px; }
  .row-rev        { grid-template-columns: 1.8fr 1fr; }
  .row-3b         { grid-template-columns: 1fr 1.2fr; }
  .row-3b > :last-child { grid-column: 1 / -1; }
  .rev-chart-wrap { height: 160px; }
}

/* ════════════════════════════════════════
   TABLET — 768px – 1023px
════════════════════════════════════════ */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); }
  .main    { margin-left: 0; }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .row-rev { grid-template-columns: 1fr; }
  .row-3b  { grid-template-columns: 1fr 1fr; }
  .row-3b > :last-child { grid-column: 1 / -1; }
  .content { padding: 20px; }
  .cards-row { gap: 14px; margin-bottom: 14px; }
  .rev-chart-wrap { height: 200px; }
  .donut-wrap     { height: 200px; }
  .meeting-body   { flex-direction: column; gap: 8px; }
  .meeting-divider { width: 100%; height: 1px; }
}

/* ════════════════════════════════════════
   MOBILE — up to 767px
════════════════════════════════════════ */
@media (max-width: 767px) {
  .sidebar { transform: translateX(-100%); }
  .main    { margin-left: 0; }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .row-rev { grid-template-columns: 1fr; }
  .row-3b  { grid-template-columns: 1fr; }
  .cards-row { gap: 10px; margin-bottom: 10px; }
  .content { padding: 14px; }
  .topbar  { padding: 0 14px; }

  .page-header h1  { font-size: 18px; }
  .kpi-value       { font-size: 18px; }
  .kpi-icon        { width: 36px; height: 36px; font-size: 15px; }
  .card            { padding: 16px; }
  .rev-chart-wrap  { height: 180px; }
  .donut-wrap      { height: 180px; }
  .meeting-body    { flex-direction: column; gap: 8px; }
  .meeting-divider { width: 100%; height: 1px; }
  .events-list     { gap: 8px; }
}

/* ════════════════════════════════════════
   SMALL MOBILE — up to 479px
════════════════════════════════════════ */
@media (max-width: 479px) {
  .kpi-row   { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 16px; }
  .kpi-spark-wrap { display: none; }
  .rev-meta-row { flex-direction: column; gap: 8px; }
}

/* ════════════════════════════════════════
   LIGHT THEME OVERRIDES
════════════════════════════════════════ */
[data-theme="light"] body {
  background: #f0f4ff;
  color: #0d1525;
}
[data-theme="light"] .main {
  background: #f0f4ff;
}
[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .topbar {
  background: #ffffff;
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .content {
  background: #f0f4ff;
}
[data-theme="light"] .card-title { color: #0d1525; }
[data-theme="light"] .kpi-value { color: #0d1525; }
[data-theme="light"] .kpi-label { color: rgba(26,31,46,0.5); }
[data-theme="light"] .rev-meta-val { color: #0d1525; }
[data-theme="light"] .rev-meta-lbl { color: rgba(26,31,46,0.4); }
[data-theme="light"] .donut-total { color: #0d1525; }
[data-theme="light"] .donut-label { color: rgba(26,31,46,0.4); }
[data-theme="light"] .meeting-time { color: #0d1525; }
[data-theme="light"] .meeting-time-sub { color: rgba(26,31,46,0.4); }
[data-theme="light"] .meeting-title { color: #0d1525; }
[data-theme="light"] .meeting-client { color: rgba(26,31,46,0.4); }
[data-theme="light"] .event-title { color: #0d1525; }
[data-theme="light"] .event-meta { color: rgba(26,31,46,0.4); }
[data-theme="light"] .ev-day { color: #0d1525; }
[data-theme="light"] .ev-orange .ev-day { color: #00b4ff; }
[data-theme="light"] .ev-blue   .ev-day { color: #3b82f6; }
[data-theme="light"] .ev-purple .ev-day { color: #7c3aed; }
[data-theme="light"] .ev-mon { color: rgba(26,31,46,0.4); }
[data-theme="light"] .agent-name { color: #0d1525; }
[data-theme="light"] .agent-deals { color: rgba(26,31,46,0.5); }
[data-theme="light"] .agent-bar-wrap { background: rgba(0,0,0,0.08); }
[data-theme="light"] .dl-name { color: rgba(26,31,46,0.5); }
[data-theme="light"] .dl-val  { color: #0d1525; }
[data-theme="light"] .tb-btn  { color: rgba(26,31,46,0.5); }
[data-theme="light"] .tb-btn:hover { background: rgba(0,0,0,0.06); color: #0d1525; }
[data-theme="light"] .meet-view {
  background: rgba(0,0,0,0.05);
  color: rgba(26,31,46,0.6);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .meet-view:hover { background: rgba(0,0,0,0.09); color: #0d1525; }
[data-theme="light"] .meeting-divider { background: rgba(0,0,0,0.08); }
[data-theme="light"] .period-tab {
  border-color: rgba(0,0,0,0.12);
  color: rgba(26,31,46,0.5);
}
[data-theme="light"] .period-tab:hover:not(.active) { background: rgba(0,0,0,0.05); color: #0d1525; }
[data-theme="light"] .page-header h1 { color: #0d1525; }
[data-theme="light"] .breadcrumb { color: rgba(26,31,46,0.35); }
[data-theme="light"] .notif-dot { border-color: #ffffff; }
[data-theme="light"] .notif-badge { border-color: #ffffff; }
[data-theme="light"] .more-av { background: rgba(0,0,0,0.08); color: rgba(26,31,46,0.5); }

/* Topbar search — light */
[data-theme="light"] .topbar-search-inner {
  background: #f1f3f6;
  border-color: #e2e5ea;
}
[data-theme="light"] .topbar-search-inner:focus-within { border-color: #00b4ff; }
[data-theme="light"] .topbar-search-input {
  background: transparent;
  border-color: transparent;
  color: #0d1525;
}
[data-theme="light"] .topbar-search-input::placeholder { color: rgba(26,31,46,0.4); }
[data-theme="light"] .topbar-search-icon { color: rgba(26,31,46,0.4); }
[data-theme="light"] .search-dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="light"] .search-result-item { color: #0d1525; }
[data-theme="light"] .search-result-item:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .search-result-title { color: #0d1525; }

/* Notification dropdown — light */
[data-theme="light"] .notif-dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[data-theme="light"] .notif-header-title { color: #0d1525; }
[data-theme="light"] .notif-item { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .notif-item-title { color: #0d1525; }
[data-theme="light"] .notif-item-time { color: rgba(26,31,46,0.4); }
[data-theme="light"] .notif-empty { color: rgba(26,31,46,0.4); }

/* Breadcrumb — light */
[data-theme="light"] .bc-link { color: rgba(26,31,46,0.45); }
[data-theme="light"] .bc-sep  { color: rgba(26,31,46,0.3); }
[data-theme="light"] .bc-current { color: #0d1525; }

/* Page layout — light */
[data-theme="light"] .page-h1 { color: #0d1525; }
[data-theme="light"] .page-sub { color: rgba(26,31,46,0.45); }
[data-theme="light"] .data-table thead th { color: rgba(26,31,46,0.45); border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .data-table tbody tr { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .data-table tbody tr:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .data-table td { color: #0d1525; }
[data-theme="light"] .form-label { color: rgba(26,31,46,0.5); }
[data-theme="light"] .form-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: #0d1525;
}
[data-theme="light"] .form-input::placeholder { color: rgba(26,31,46,0.35); }
[data-theme="light"] .btn-secondary {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: #0d1525;
}
[data-theme="light"] .btn-secondary:hover { background: rgba(0,0,0,0.09); }

/* Toast — light */
[data-theme="light"] .toast {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  color: #0d1525;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
[data-theme="light"] .toast-msg { color: #0d1525; }

/* Confirm modal — light */
[data-theme="light"] .confirm-modal {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .confirm-title { color: #0d1525; }
[data-theme="light"] .confirm-msg { color: rgba(26,31,46,0.5); }
[data-theme="light"] .confirm-cancel {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
  color: #0d1525;
}

/* Empty state — light */
[data-theme="light"] .empty-state-title { color: #0d1525; }
[data-theme="light"] .empty-state-msg   { color: rgba(26,31,46,0.45); }

/* Skeleton — light */
[data-theme="light"] .skeleton { background: rgba(0,0,0,0.06); }

/* Tabs — light */
[data-theme="light"] .tab-btn {
  color: rgba(26,31,46,0.5);
  border-bottom-color: transparent;
}
[data-theme="light"] .tab-btn.active { color: #00b4ff; }
[data-theme="light"] .tab-bar { border-bottom-color: rgba(0,0,0,0.1); }

/* Form section — light */
[data-theme="light"] .form-section-title { color: #0d1525; }
[data-theme="light"] .form-section-sep { border-color: rgba(0,0,0,0.08); }

/* Role badge — light adjustments */
[data-theme="light"] .role-badge-admin   { background: rgba(59,130,246,0.12); }
[data-theme="light"] .role-badge-manager { background: rgba(124,58,237,0.12); }
[data-theme="light"] .role-badge-agent   { background: rgba(0,180,255,0.12); }
[data-theme="light"] .role-badge-viewer  { background: rgba(100,116,139,0.12); }

/* Sidebar light mode */
[data-theme="light"] .sidebar { background: #ffffff; border-right: 1px solid #e9ecef; }
[data-theme="light"] .brand-logo { content: url('../images/logo-dark.png'); }
[data-theme="light"] .sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); }
[data-theme="light"] .sidebar-brand { border-bottom-color: #e9ecef; }
[data-theme="light"] .nav-section-label { color: rgba(26,31,46,0.35); }
[data-theme="light"] .nav-link { color: rgba(26,31,46,0.6); }
[data-theme="light"] .nav-link:hover { color: #00b4ff; background: rgba(0,180,255,0.06); }
[data-theme="light"] .nav-link.active, [data-theme="light"] .nav-link.active-parent { color: #00b4ff; }
[data-theme="light"] .nav-link .ni { color: inherit; }
[data-theme="light"] .nav-child-link { color: rgba(26,31,46,0.45); }
[data-theme="light"] .nav-child-link:hover { color: #00b4ff; }
[data-theme="light"] .nav-child-link.active { color: #00b4ff; }
[data-theme="light"] .sidebar-user { border-top-color: #e9ecef; }
[data-theme="light"] .sb-user-av { background: #00b4ff; color: #fff; }
[data-theme="light"] .sb-user-name { color: #0d1525; }
[data-theme="light"] .sb-user-role { color: rgba(26,31,46,0.4); }
[data-theme="light"] .sb-logout { color: rgba(26,31,46,0.3); }
[data-theme="light"] .sb-logout:hover { color: #00b4ff; }

/* ════════════════════════════════════════
   TOPBAR SEARCH
════════════════════════════════════════ */
.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 6px;
}
.topbar-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0 12px;
  width: 260px;
  height: 36px;
  transition: border-color 0.15s, width 0.2s;
}
.topbar-search-inner:focus-within {
  border-color: rgba(0,180,255,0.5);
}
.topbar-search-icon { color: rgba(255,255,255,0.3); font-size: 12px; flex-shrink: 0; }
.topbar-search-input {
  background: none;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
.topbar-search-input::placeholder { color: rgba(255,255,255,0.25); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  background: #0d1525;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  padding: 6px;
}
.search-dropdown.open { display: block; }
.search-dropdown::-webkit-scrollbar { width: 3px; }
.search-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-icon { width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.search-result-title { font-size: 13px; color: #e2e8f0; flex: 1; }
.search-tag {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.search-tag-orange { background: rgba(0,180,255,0.15); color: #00b4ff; }
.search-tag-blue   { background: rgba(96,165,250,0.15); color: #60a5fa; }
.search-tag-purple { background: rgba(167,139,250,0.15); color: #a78bfa; }
.search-tag-green  { background: rgba(52,211,153,0.15); color: #34d399; }
.search-empty {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 1279px) {
  .topbar-search-inner { width: 160px; }
}
@media (max-width: 767px) {
  .topbar-search { display: none; }
}

/* ════════════════════════════════════════
   NOTIFICATION DROPDOWN
════════════════════════════════════════ */
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  width: 15px; height: 15px;
  background: #00b4ff; border-radius: 50%;
  font-size: 8px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #070e1a;
  pointer-events: none;
}
.notif-badge[data-count="0"],
.notif-badge.hidden { display: none; }

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #0d1525;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-wrap { position: relative; }

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.notif-header-title { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.notif-view-all { font-size: 11px; color: #00b4ff; text-decoration: none; font-weight: 500; }
.notif-view-all:hover { text-decoration: underline; }

.notif-list { max-height: 280px; overflow-y: auto; }
.notif-list::-webkit-scrollbar { width: 3px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.12s;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { border-left: 2px solid #00b4ff; padding-left: 12px; }
.notif-item:last-child { border-bottom: none; }

.notif-item-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; margin-top: 1px;
}
.notif-icon-orange { background: rgba(0,180,255,0.15); color: #00b4ff; }
.notif-icon-blue   { background: rgba(96,165,250,0.15); color: #60a5fa; }
.notif-icon-green  { background: rgba(52,211,153,0.15); color: #34d399; }
.notif-icon-red    { background: rgba(248,113,113,0.15); color: #f87171; }
.notif-icon-purple { background: rgba(167,139,250,0.15); color: #a78bfa; }

.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 12px; font-weight: 500; color: #c8d0e0; margin-bottom: 2px; }
.notif-item.unread .notif-item-title { color: #fff; font-weight: 600; }
.notif-item-time { font-size: 10px; color: rgba(255,255,255,0.3); }
.notif-unread-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00b4ff; flex-shrink: 0; margin-top: 5px;
}

.notif-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════
   BREADCRUMB BAR
════════════════════════════════════════ */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.bc-link {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.15s;
}
.bc-link:hover { color: #00b4ff; }
.bc-sep { color: rgba(255,255,255,0.2); font-size: 8px; }
.bc-current { font-size: 12px; color: rgba(255,255,255,0.65); }

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  min-width: 280px;
  max-width: 360px;
  background: #0d1525;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid #00b4ff;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  pointer-events: all;
  animation: toast-slide-in 0.25s ease forwards;
}
.toast.toast-out { animation: toast-slide-out 0.25s ease forwards; }
.toast-success { border-left-color: #34d399; }
.toast-error   { border-left-color: #f87171; }
.toast-warning { border-left-color: #fbbf24; }
.toast-info    { border-left-color: #60a5fa; }

.toast-icon { font-size: 15px; flex-shrink: 0; }
.toast-success .toast-icon { color: #34d399; }
.toast-error   .toast-icon { color: #f87171; }
.toast-warning .toast-icon { color: #fbbf24; }
.toast-info    .toast-icon { color: #60a5fa; }
.toast         .toast-icon { color: #00b4ff; }

.toast-msg { font-size: 13px; color: #e2e8f0; flex: 1; }
.toast-close {
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: pointer; font-size: 14px; padding: 0; line-height: 1;
  transition: color 0.15s;
}
.toast-close:hover { color: #fff; }

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-slide-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ════════════════════════════════════════
   CONFIRM MODAL
════════════════════════════════════════ */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  display: none;
}
.confirm-backdrop.open { display: flex; }
.confirm-modal {
  background: #0d1b2e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  max-width: 400px;
  width: 90%;
  padding: 32px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.confirm-icon { font-size: 36px; color: #00b4ff; margin-bottom: 14px; }
.confirm-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.confirm-msg { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }
.confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}
.confirm-cancel {
  padding: 10px 24px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.confirm-cancel:hover { background: rgba(255,255,255,0.1); color: #fff; }
.confirm-ok {
  padding: 10px 24px; border-radius: 8px;
  background: #00b4ff; border: none;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: opacity 0.15s;
}
.confirm-ok:hover { opacity: 0.88; }

/* ════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.empty-state-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.15);
  margin-bottom: 16px;
}
.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.empty-state-msg {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════════
   SKELETON LOADER
════════════════════════════════════════ */
.skeleton {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.skeleton-line { height: 12px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-line.wide   { width: 100%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.short  { width: 40%; }

/* ════════════════════════════════════════
   PAGE LAYOUT CLASSES
════════════════════════════════════════ */
.shell-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-h1 { font-size: 20px; font-weight: 700; color: #fff; }
.page-sub { font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ── Data Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.data-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: #c8d0e0;
  vertical-align: middle;
}
.data-table tbody tr:last-child { border-bottom: none; }

/* ── Form Section ── */
.form-section { margin-bottom: 18px; }
.form-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.35);
}
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}
.form-input:focus { border-color: #00b4ff; }
.form-input::placeholder { color: rgba(255,255,255,0.2); }
select.form-input { cursor: pointer; }

/* ── Buttons ── */
.btn-primary {
  background: #00b4ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-danger {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.25);
  color: #f87171;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-danger:hover { background: rgba(248,113,113,0.2); }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px;
  transition: background 0.12s, color 0.12s;
}
.btn-icon:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-icon.danger:hover { background: rgba(248,113,113,0.15); color: #f87171; }

/* ── Avatar Circle ── */
.avatar-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: #00b4ff; color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-circle.lg { width: 72px; height: 72px; font-size: 22px; }

/* ── Role Badge ── */
.role-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  text-transform: capitalize; letter-spacing: 0.3px;
}
.role-badge-admin   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.role-badge-manager { background: rgba(124,58,237,0.15); color: #a78bfa; }
.role-badge-agent   { background: rgba(0,180,255,0.15); color: #00b4ff; }
.role-badge-viewer  { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ── Status Badge ── */
.status-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}
.status-active   { background: rgba(52,211,153,0.12); color: #34d399; }
.status-inactive { background: rgba(248,113,113,0.12); color: #f87171; }
.status-pending  { background: rgba(251,191,36,0.12); color: #fbbf24; }
.status-connected    { background: rgba(52,211,153,0.12); color: #34d399; }
.status-disconnected { background: rgba(100,116,139,0.12); color: #94a3b8; }

/* ── Tab bar ── */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active {
  color: #00b4ff;
  border-bottom-color: #00b4ff;
}
.tab-btn:hover:not(.active) { color: rgba(255,255,255,0.7); }

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

/* ── Toggle Switch ── */
.toggle-switch {
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-track::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: #00b4ff; }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(18px); }

/* ── Upload area ── */
.upload-area {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-area:hover { border-color: #00b4ff; background: rgba(0,180,255,0.04); }
.upload-area-icon { font-size: 28px; color: rgba(255,255,255,0.2); margin-bottom: 10px; }
.upload-area-text { font-size: 13px; color: rgba(255,255,255,0.4); }
.upload-area-hint { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 4px; }
[data-theme="light"] .upload-area { border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .upload-area:hover { border-color: #00b4ff; background: rgba(0,180,255,0.03); }
[data-theme="light"] .upload-area-icon { color: rgba(26,31,46,0.2); }
[data-theme="light"] .upload-area-text { color: rgba(26,31,46,0.4); }
[data-theme="light"] .upload-area-hint { color: rgba(26,31,46,0.25); }

/* ── Color swatch ── */
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.12s;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.active { border-color: #fff; }

/* ── Notification row (settings) ── */
.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.notif-row:last-child { border-bottom: none; }
.notif-row-info { flex: 1; }
.notif-row-label { font-size: 13px; font-weight: 500; color: #e2e8f0; }
.notif-row-desc  { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 2px; }
[data-theme="light"] .notif-row { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .notif-row-label { color: #0d1525; }
[data-theme="light"] .notif-row-desc  { color: rgba(26,31,46,0.4); }

/* ── Integration card ── */
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.integration-card {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.integration-icon { font-size: 24px; color: rgba(255,255,255,0.5); }
.integration-name { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.integration-desc { font-size: 12px; color: rgba(255,255,255,0.35); }
.integration-footer { display: flex; align-items: center; justify-content: space-between; }
[data-theme="light"] .integration-card { border-color: rgba(0,0,0,0.08); background: #ffffff; }
[data-theme="light"] .integration-icon { color: rgba(26,31,46,0.4); }
[data-theme="light"] .integration-name { color: #0d1525; }
[data-theme="light"] .integration-desc { color: rgba(26,31,46,0.4); }
@media (max-width: 767px) { .integration-grid { grid-template-columns: 1fr; } }

/* ── Sidebar overlay fix (body class) ── */
body.sb-open .sidebar-overlay { display: block; }
body.sb-open .sidebar         { transform: translateX(0) !important; }

/* ── Sidebar collapsed (desktop) ── */
.sidebar.collapsed {
  width: 60px;
  overflow: hidden;
}
.sidebar.collapsed .sidebar-brand .brand-logo { width: 30px; }
.sidebar.collapsed .nav-section-label { opacity: 0; pointer-events: none; }
.sidebar.collapsed .nav-link span { display: none; }
.sidebar.collapsed .nav-link .arrow { display: none; }
.sidebar.collapsed .nav-children { display: none !important; }
.sidebar.collapsed .sb-user-info { display: none; }
.sidebar.collapsed .sb-logout { display: none; }
.sidebar.collapsed .sb-user-av { margin: 0 auto; }
.sidebar.collapsed .nav-link { justify-content: center; padding: 9px; }
.sidebar.collapsed .nav-link .ni { width: auto; }
.main.sb-collapsed { margin-left: 60px; }

/* ── Login page ── */
.login-page {
  min-height: 100vh;
  background: #070e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,180,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(96,165,250,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.login-card {
  background: #0d1b2e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.login-logo { display: block; height: 42px; margin: 0 auto 28px; }
.login-heading {
  font-size: 22px; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 6px;
}
.login-sub {
  font-size: 13px; color: rgba(255,255,255,0.35);
  text-align: center; margin-bottom: 28px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon .form-input { padding-left: 40px; }
.input-with-icon .input-icon {
  position: absolute; left: 13px;
  color: rgba(255,255,255,0.25); font-size: 14px;
  pointer-events: none;
}
.input-with-icon .input-eye {
  position: absolute; right: 13px;
  color: rgba(255,255,255,0.25); font-size: 14px;
  cursor: pointer; background: none; border: none;
  padding: 0; transition: color 0.15s;
}
.input-with-icon .input-eye:hover { color: rgba(255,255,255,0.6); }
.login-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.login-remember { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.login-remember input { accent-color: #00b4ff; cursor: pointer; }
.login-remember span { font-size: 12px; color: rgba(255,255,255,0.4); }
.login-forgot { font-size: 12px; color: #00b4ff; text-decoration: none; }
.login-forgot:hover { text-decoration: underline; }
.btn-login {
  width: 100%; padding: 12px;
  background: #00b4ff; border: none; border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: opacity 0.15s; margin-top: 4px;
}
.btn-login:hover { opacity: 0.88; }
.login-theme-toggle {
  position: fixed; top: 20px; right: 20px;
  z-index: 10;
}
[data-theme="light"] .login-page { background: #f0f4ff; }
[data-theme="light"] .login-page::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(0,180,255,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(96,165,250,0.04) 0%, transparent 60%);
}
[data-theme="light"] .login-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
[data-theme="light"] .login-heading { color: #0d1525; }
[data-theme="light"] .login-sub     { color: rgba(26,31,46,0.4); }
[data-theme="light"] .input-with-icon .input-icon { color: rgba(26,31,46,0.3); }
[data-theme="light"] .input-with-icon .input-eye  { color: rgba(26,31,46,0.3); }
[data-theme="light"] .login-remember span { color: rgba(26,31,46,0.4); }

/* ── 404 page ── */
.err-page {
  min-height: 100vh;
  background: #070e1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.err-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,180,255,0.06) 0%, transparent 70%);
  animation: err-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes err-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
.err-logo { height: 36px; margin-bottom: 40px; opacity: 0.6; position: relative; z-index: 1; }
.err-code {
  font-size: 120px; font-weight: 800;
  color: #00b4ff; line-height: 1;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.err-title {
  font-size: 24px; font-weight: 700; color: #fff;
  margin-bottom: 12px; position: relative; z-index: 1;
}
.err-msg {
  font-size: 14px; color: rgba(255,255,255,0.35);
  max-width: 380px; line-height: 1.6;
  margin-bottom: 32px; position: relative; z-index: 1;
}
[data-theme="light"] .err-page { background: #f0f4ff; }
[data-theme="light"] .err-title { color: #0d1525; }
[data-theme="light"] .err-msg   { color: rgba(26,31,46,0.4); }

/* ── Profile page ── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-hero-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 700; color: #fff; }
.profile-role { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 3px; }
[data-theme="light"] .profile-name { color: #0d1525; }
[data-theme="light"] .profile-role { color: rgba(26,31,46,0.4); }

/* ── Settings appearance cards ── */
.theme-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.theme-preview-card {
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
}
.theme-preview-card.selected { border-color: #00b4ff; }
.theme-preview-thumb {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.theme-preview-dark  { background: #0d1b2e; color: rgba(255,255,255,0.4); }
.theme-preview-light { background: #f0f4ff; color: rgba(26,31,46,0.5); }
.theme-preview-label {
  padding: 8px 12px;
  font-size: 12px; font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}
[data-theme="light"] .theme-preview-label { border-top-color: rgba(0,0,0,0.06); color: rgba(26,31,46,0.5); }

/* ── Notifications page ── */
.notif-page-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
  border-radius: 4px;
}
.notif-page-item.unread { border-left: 3px solid #00b4ff; padding-left: 12px; }
.notif-page-item:last-child { border-bottom: none; }
.notif-page-body { flex: 1; min-width: 0; }
.notif-page-title { font-size: 13px; font-weight: 500; color: #c8d0e0; }
.notif-page-item.unread .notif-page-title { font-weight: 600; color: #fff; }
.notif-page-desc { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 3px; }
.notif-page-time { font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 5px; }
.notif-page-right {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.notif-unread-indicator {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00b4ff; flex-shrink: 0;
}
.notif-dismiss {
  background: none; border: none;
  color: rgba(255,255,255,0.2); cursor: pointer;
  font-size: 14px; padding: 2px;
  transition: color 0.15s;
}
.notif-dismiss:hover { color: #fff; }
[data-theme="light"] .notif-page-item { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .notif-page-title { color: #0d1525; }
[data-theme="light"] .notif-page-item.unread .notif-page-title { color: #0d1525; }
[data-theme="light"] .notif-page-desc { color: rgba(26,31,46,0.4); }
[data-theme="light"] .notif-page-time { color: rgba(26,31,46,0.3); }
[data-theme="light"] .notif-dismiss { color: rgba(26,31,46,0.2); }
[data-theme="light"] .notif-dismiss:hover { color: #0d1525; }

/* ── Roles grid ── */
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.role-card {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 18px;
}
.role-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.role-card-name { font-size: 14px; font-weight: 600; color: #fff; }
.role-card-count { font-size: 12px; color: rgba(255,255,255,0.3); }
.role-perms { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.role-perms li { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }
.role-perms li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; flex-shrink: 0; }
[data-theme="light"] .role-card { border-color: rgba(0,0,0,0.08); background: #ffffff; }
[data-theme="light"] .role-card-name  { color: #0d1525; }
[data-theme="light"] .role-card-count { color: rgba(26,31,46,0.4); }
[data-theme="light"] .role-perms li   { color: rgba(26,31,46,0.5); }
@media (max-width: 767px) { .roles-grid { grid-template-columns: 1fr; } }

/* ── Users table toolbar ── */
.table-toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.table-toolbar .topbar-search-inner { height: 36px; }
.toolbar-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0 14px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: inherit;
  height: 36px;
  cursor: pointer;
  outline: none;
}
.toolbar-select:focus { border-color: #00b4ff; }
[data-theme="light"] .toolbar-select {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: rgba(26,31,46,0.6);
}

/* ── Danger zone ── */
.danger-zone {
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.danger-zone-info .danger-zone-title { font-size: 13px; font-weight: 600; color: #f87171; }
.danger-zone-info .danger-zone-desc  { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 3px; }
[data-theme="light"] .danger-zone-info .danger-zone-desc { color: rgba(26,31,46,0.4); }

/* ── Two-col layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1023px) {
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .theme-preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .err-code { font-size: 80px; }
  .page-header-row { flex-direction: column; align-items: flex-start; }
  .table-toolbar { flex-direction: column; align-items: flex-start; }
  .integration-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   UTILITY CLASSES
════════════════════════════════════════ */
.mt-18  { margin-top: 18px; }
.mb-18  { margin-bottom: 18px; }
.mb-14  { margin-bottom: 14px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }

.d-flex        { display: flex; }
.align-center  { align-items: center; }
.gap-6         { gap: 6px; }
.gap-10        { gap: 10px; }
.gap-12        { gap: 12px; }
.flex-wrap     { flex-wrap: wrap; }
.flex-col      { flex-direction: column; }
.text-center   { text-align: center; }

/* table user cell */
.table-user-cell { display: flex; align-items: center; gap: 10px; }
.table-actions   { display: flex; gap: 6px; }

/* avatar color variants (used in users table) */
.av-teal-bg   { background: #0d9488; }
.av-purple-bg { background: #7c3aed; }
.av-burnt-bg  { background: #ea580c; }
.av-green-bg  { background: #059669; }
.av-indigo-bg { background: #4338ca; }
.av-slate-bg  { background: #64748b; }

/* color swatches row */
.swatch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* sidebar style options */
.radio-option { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.radio-option input { accent-color: #00b4ff; }
.radio-option span  { font-size: 13px; color: #c8d0e0; }
.radio-options-list { display: flex; flex-direction: column; gap: 10px; }
[data-theme="light"] .radio-option span { color: #0d1525; }

/* toolbar search inline reset */
.toolbar-search-wrap { margin-left: 0; }

/* Danger zone title */
.danger-section-title { color: #f87171; }
.danger-zone-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
[data-theme="light"] .danger-zone-intro { color: rgba(26,31,46,0.4); }

/* Sub-section heading */
.sub-section-heading {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
[data-theme="light"] .sub-section-heading { color: #0d1525; }

/* Notifications page mb override */
.notif-filter-bar { margin-bottom: 20px; }

/* hidden helper */
.hidden { display: none !important; }

/* Notification dismiss animation */
.notif-page-dismiss-anim {
  transition: opacity 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateX(20px);
}

/* Load more wrap */
.load-more-wrap { text-align: center; margin-top: 18px; }

/* Profile hero card */
.profile-hero-card { margin-bottom: 0; }

/* Swatch with bg color (defined per swatch, set via data attr or class) */
.swatch-orange { background: #00b4ff; }
.swatch-blue   { background: #3b82f6; }
.swatch-purple { background: #8b5cf6; }
.swatch-emerald{ background: #10b981; }
.swatch-pink   { background: #ec4899; }
.swatch-amber  { background: #f59e0b; }

/* Danger btn delete variant */
.btn-danger-delete {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.5);
  color: #f87171;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-danger-delete:hover { background: rgba(248,113,113,0.2); }

/* ════════════════════════════════════════
   CRM OVERVIEW CARDS (overview.html)
════════════════════════════════════════ */
.crm-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.crm-card:hover {
  border-color: #c8a000;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.crm-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.crm-logo-box {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #c8a000;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.crm-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
}
.crm-status-dot.status-active   { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
.crm-status-dot.status-pending  { background: #fb923c; }
.crm-status-dot.status-inactive { background: #8db4cc; }
.crm-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.crm-name {
  font-size: 16px;
  font-weight: 600;
  color: #c8d0e0;
  line-height: 1.3;
}
.crm-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crm-meta-item {
  font-size: 13px;
  color: #8db4cc;
  display: flex;
  align-items: center;
  gap: 6px;
}
.crm-active-dot { color: #22c55e; font-size: 10px; }
.crm-card-footer { margin-top: auto; }
.crm-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  background: #c8a000;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity .15s;
}
.crm-open-btn:hover { opacity: .85; }
[data-theme="light"] .crm-name       { color: #1a1f2e; }
[data-theme="light"] .crm-meta-item  { color: rgba(26,31,46,0.45); }