/* ===================================================
   DINKES KONAWE — Design System
   Font: Plus Jakarta Sans + Inter (Google Fonts)
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* === TOKENS === */
:root {
  --emerald:       #059669;
  --emerald-dark:  #065F46;
  --emerald-light: #D1FAE5;
  --navy:          #1E3A5F;
  --navy-light:    #EFF6FF;
  --orange:        #F97316;
  --orange-light:  #FFF7ED;
  --bg:            #F8FAFC;
  --surface:       #FFFFFF;
  --text:          #1E293B;
  --text-muted:    #64748B;
  --border:        #E2E8F0;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.14);
  --radius:        10px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --navy-muted:    #EFF6FF;
  --transition:    all .3s ease;
  --font-heading:  'Plus Jakarta Sans', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }

/* === ACCESSIBILITY TOOLBAR (DISABILITAS) === */
#a11y-container {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}
#a11y-toggle {
  background: var(--navy);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
#a11y-toggle i {
  font-size: 24px;
}
#a11y-toggle:hover, #a11y-toggle.active {
  background: var(--emerald);
  transform: scale(1.08);
}
#a11y-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 200px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(20px) scale(0.95);
  pointer-events: none;
}
#a11y-menu.a11y-menu-expanded {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.a11y-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.a11y-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.a11y-item-btn {
  background: transparent;
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  width: 100%;
}
.a11y-item-btn:hover {
  background: var(--navy-light);
  color: var(--navy);
}
.a11y-item-btn i {
  font-size: 16px;
  color: var(--text-muted);
}
.a11y-item-btn:hover i {
  color: var(--navy);
}
body.font-lg { font-size: 18px; }
body.font-xl { font-size: 20px; }
body.high-contrast { filter: contrast(1.6) saturate(0); }

/* === NAVBAR === */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; transition: var(--transition); background: linear-gradient(135deg, rgba(6,95,70,.92) 0%, rgba(30,58,95,.88) 100%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#navbar.scrolled { background: rgba(6,95,70,.97) !important; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 4px 24px rgba(0,0,0,.18); padding: 10px 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 48px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.nav-brand-text .title { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.nav-brand-text .sub { font-size: 11px; color: rgba(255,255,255,.75); }
.navbar-nav .nav-link { color: rgba(255,255,255,.9) !important; font-weight: 500; font-size: 14px; padding: 6px 14px !important; border-radius: var(--radius-sm); transition: var(--transition); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #fff !important; background: rgba(255,255,255,.15); }
.navbar-nav .dropdown-menu { border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; padding: 8px 0; }
.navbar-nav .dropdown-item { font-size: 14px; padding: 10px 16px; transition: var(--transition); }
.navbar-nav .dropdown-item:hover { background: var(--emerald-light); color: var(--emerald-dark); }
.btn-callcenter { background: var(--orange) !important; color: #fff !important; border: none !important; border-radius: var(--radius-sm) !important; padding: 8px 18px !important; font-weight: 600 !important; font-size: 13px !important; animation: pulse-orange 2s infinite; white-space: nowrap; }
@keyframes pulse-orange { 0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.5)} 50%{box-shadow:0 0 0 8px rgba(249,115,22,0)} }

/* === HERO === */
#hero { min-height: 100vh; min-height: 100dvh; position: relative; overflow: hidden; display: flex; align-items: center; background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--navy) 100%); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide-default { background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--navy) 100%); opacity: 1 !important; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(4,78,45,.88) 0%, rgba(21,42,73,.85) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); color: #fff; padding: 8px 18px; border-radius: 99px; font-size: 13px; font-weight: 600; margin-bottom: 24px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); }
.hero-title { font-size: clamp(2rem, 5vw, 3.8rem); color: #fff; margin-bottom: 16px; font-weight: 800; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.88); margin-bottom: 36px; max-width: 600px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.btn-hero-primary { background: #fff; color: var(--emerald-dark); padding: 14px 28px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; transition: var(--transition); border: none; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--emerald-dark); }
.btn-hero-outline { background: rgba(255,255,255,.12); color: #fff; padding: 14px 28px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px; border: 2px solid rgba(255,255,255,.45); transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; backdrop-filter: blur(4px); }
.btn-hero-outline:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; transform: translateY(-2px); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md); padding: 22px 16px; text-align: center; transition: var(--transition); }
.stat-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.stat-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 4px; }
.stat-satuan { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500; }

/* === SECTION STYLES === */
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-white { background: var(--surface); }
.section-emerald { background: linear-gradient(135deg, var(--emerald-dark), var(--navy)); color: #fff; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--text); margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 16px; margin-bottom: 48px; max-width: 600px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--emerald); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.section-label::before { content:''; display:block; width:24px; height:2px; background:var(--emerald); border-radius:2px; }

/* === GRAFIS SECTION === */
.chart-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.chart-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.chart-title { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.chart-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* === VISI MISI === */
.visi-misi-section { background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--navy) 100%); }
.visi-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(8px); }
.misi-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.misi-item:last-child { border-bottom: none; }
.misi-icon { width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 16px; }

/* === ARTIKEL CARDS === */
.artikel-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); height: 100%; }
.artikel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.artikel-card:hover .artikel-img { transform: scale(1.07); }
.artikel-img-wrap { overflow: hidden; height: 200px; }
.artikel-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; background: var(--bg); }
.artikel-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--emerald-light), var(--navy-light)); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--emerald); }
.artikel-body { padding: 20px; }
.artikel-kategori { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.kat-berita      { background: var(--emerald-light); color: var(--emerald-dark); }
.kat-edukasi     { background: var(--navy-light);    color: var(--navy); }
.kat-infografis  { background: #FEF3C7; color: #92400E; }
.kat-pengumuman  { background: #FFE4E6; color: #BE123C; }
.artikel-judul { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.artikel-date { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* === PETA SECTION === */
#peta-mini { height: 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
#peta-full  { height: calc(100vh - 70px); }

/* === FOOTER === */
#footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 64px 0 0; }
.footer-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-link { display: block; color: rgba(255,255,255,.7); font-size: 14px; padding: 4px 0; transition: var(--transition); }
.footer-link:hover { color: var(--emerald-light); padding-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-sosmed { display: flex; gap: 12px; margin-top: 16px; }
.sosmed-btn { width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; transition: var(--transition); }
.sosmed-btn:hover { background: var(--emerald); color: #fff; transform: translateY(-3px); }

/* === BUTTONS === */
.btn-dinkes { background: var(--emerald); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.btn-dinkes:hover { background: var(--emerald-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(5,150,105,.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #162d4a; color: #fff; }
.btn-outline-dinkes { background: transparent; color: var(--emerald); border: 2px solid var(--emerald); padding: 10px 22px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-dinkes:hover { background: var(--emerald); color: #fff; }

/* === ADMIN LAYOUT === */
#admin-sidebar { width: 260px; min-height: 100vh; background: var(--navy); position: fixed; top: 0; left: 0; z-index: 100; transition: var(--transition); overflow-y: auto; }
#admin-content { margin-left: 260px; min-height: 100vh; background: var(--bg); transition: var(--transition); }
#admin-topbar { background: var(--surface); padding: 14px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 99; box-shadow: var(--shadow-sm); }
.sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 12px; }
.sidebar-logo img { height: 44px; }
.sidebar-logo-text { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.sidebar-logo-sub { font-size: 11px; color: rgba(255,255,255,.6); }
.sidebar-nav { padding: 16px 0; }
.sidebar-section { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 16px 20px 6px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; transition: var(--transition); }
.sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,.1); color: #fff; padding-left: 26px; }
.sidebar-link.active { border-left: 3px solid var(--emerald); }
.sidebar-link i { width: 20px; text-align: center; font-size: 16px; }
.admin-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-admin-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; border-left: 4px solid var(--emerald); box-shadow: var(--shadow-sm); }

/* === TABLE === */
.table-dinkes { width: 100%; border-collapse: collapse; }
.table-dinkes th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 600; }
.table-dinkes td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table-dinkes tbody tr:hover { background: var(--bg); }
.badge-status { padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge-published { background: var(--emerald-light); color: var(--emerald-dark); }
.badge-draft     { background: #F1F5F9; color: var(--text-muted); }
.badge-pending   { background: #FEF3C7; color: #92400E; }

/* === FORM ADMIN === */
.form-label-dinkes { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control-dinkes { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); background: var(--surface); }
.form-control-dinkes:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }

/* === LOGIN PAGE === */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--emerald-dark), var(--navy)); display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--surface); border-radius: var(--radius-xl); padding: 48px 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { height: 72px; margin: 0 auto 12px; }
.login-logo h1 { font-size: 22px; color: var(--navy); font-weight: 800; }
.login-logo p { font-size: 13px; color: var(--text-muted); }

/* === BREADCRUMB === */
.breadcrumb-dinkes { background: var(--surface); padding: 12px 0; border-bottom: 1px solid var(--border); margin-top: 70px; }
.breadcrumb-item a { color: var(--emerald); }
.breadcrumb-item.active { color: var(--text-muted); }

/* === ANIMATE ON SCROLL === */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  #admin-sidebar { transform: translateX(-100%); }
  #admin-sidebar.open { transform: translateX(0); }
  #admin-content { margin-left: 0; }
}
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-number { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 32px 24px; }
}

/* === LEAFLET CUSTOM TOOLTIP === */
.puskesmas-tooltip {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: var(--font-body) !important;
  box-shadow: var(--shadow-sm) !important;
  white-space: nowrap;
}
.puskesmas-tooltip-paripurna { background: #059669 !important; }
.puskesmas-tooltip-paripurna::before { border-top-color: #059669 !important; }

.puskesmas-tooltip-utama { background: #0EA5E9 !important; }
.puskesmas-tooltip-utama::before { border-top-color: #0EA5E9 !important; }

.puskesmas-tooltip-madya { background: #8B5CF6 !important; }
.puskesmas-tooltip-madya::before { border-top-color: #8B5CF6 !important; }

.puskesmas-tooltip-pratama { background: #F97316 !important; }
.puskesmas-tooltip-pratama::before { border-top-color: #F97316 !important; }

.puskesmas-tooltip-belum-akreditasi { background: #94A3B8 !important; }
.puskesmas-tooltip-belum-akreditasi::before { border-top-color: #94A3B8 !important; }

/* === LEAFLET CUSTOM LAYER CONTROL === */
.leaflet-control-layers {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-body) !important;
  padding: 8px 12px !important;
  color: var(--text) !important;
  transition: var(--transition);
}
.leaflet-control-layers-expanded {
  padding: 10px 14px !important;
  background: var(--surface) !important;
}
.leaflet-control-layers label {
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  color: var(--text) !important;
}
.leaflet-control-layers label:last-child {
  margin-bottom: 0 !important;
}
.leaflet-control-layers input[type="radio"] {
  cursor: pointer !important;
  accent-color: var(--emerald) !important;
  margin: 0 !important;
}

/* === GRAFIS HEALTH SLIDER === */
.grafis-slider-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.grafis-slides {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  border-radius: var(--radius-lg);
}
.grafis-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  z-index: 1;
}
.grafis-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
  z-index: 2;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  z-index: 10;
}
.slider-btn.prev-btn { left: -60px; }
.slider-btn.next-btn { right: -60px; }
.slider-btn:hover {
  background: var(--emerald) !important;
  color: #fff !important;
  border-color: var(--emerald) !important;
  transform: translateY(-50%) scale(1.08);
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--emerald);
}
@media (max-width: 991px) {
  .slider-btn { display: none !important; }
}

/* === VISITOR STATISTICS SECTION === */
#visitor-stats-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 80px;
}

.visitor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.visitor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-light);
}

.visitor-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 16px;
  position: relative;
  transition: var(--transition);
}

.visitor-card:hover .visitor-icon-wrap {
  background: var(--emerald-light);
  color: var(--emerald-dark);
}

.visitor-count {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
  transition: var(--transition);
}

.visitor-card:hover .visitor-count {
  color: var(--emerald-dark);
}

.visitor-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Specific styling for Live Online card */
.visitor-online {
  border-color: rgba(5, 150, 105, 0.25);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(209, 250, 229, 0.15) 100%);
}

.visitor-online .visitor-icon-wrap {
  background: var(--emerald-light);
  color: var(--emerald);
}

.online-pulse-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Specific styling for Total card */
.visitor-total {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(239, 246, 255, 0.4) 100%);
}

.visitor-total .visitor-icon-wrap {
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
}

.visitor-total:hover .visitor-icon-wrap {
  background: var(--navy);
  color: #fff;
}

/* === CHAT SYSTEM STYLING === */
.chat-container-wrapper {
  display: flex;
}

.chat-sidebar-panel {
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.user-item:hover {
  background: rgba(30, 58, 95, 0.04) !important;
}

.user-avatar-circle {
  font-family: var(--font-heading);
}

.chat-bubble-wrap {
  margin-bottom: 8px;
}

.chat-bubble {
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.incoming-bubble {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
  border-top-left-radius: 4px !important;
}

.outgoing-bubble {
  background: var(--emerald) !important;
  color: #fff !important;
  border-top-right-radius: 4px !important;
}

.chat-time {
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 4px;
}

#chat-messages-container {
  scrollbar-width: thin;
}

#chat-messages-container::-webkit-scrollbar {
  width: 6px;
}

#chat-messages-container::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.02);
}

#chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 95, 0.15);
  border-radius: 10px;
}

#chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 58, 95, 0.3);
}

/* Custom transitions and states */
.user-item {
  border-left: 4px solid transparent;
}

.user-item[style*="background: var(--navy-muted)"] {
  border-left-color: var(--emerald) !important;
}

@media (max-width: 768px) {
  .chat-container-wrapper {
    height: calc(100vh - 120px) !important;
  }
}





