/*
 * css/sidebar-dark.css
 * Dark Emerald Sidebar Theme — สมดี ศูนย์ซ่อมและบริการ
 * โหลดหลัง main.css เสมอ
 */

/* ════════ SIDEBAR CONTAINER ════════ */
.main-app .sidebar {
  background: #0D3B2E !important;
  border-right: none !important;
  box-shadow: 3px 0 16px rgba(0,0,0,.28);
}

/* ════════ HEADER ════════ */
.main-app .sb-head {
  background: #0A2E23 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  padding: 15px 14px 13px !important;
}
.main-app .sb-icon {
  background: #1D9E75 !important;
  box-shadow: 0 2px 10px rgba(29,158,117,.45) !important;
}
.main-app .sb-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}
.main-app .sb-url {
  color: rgba(255,255,255,.38) !important;
}

/* ════════ NAV GROUP LABEL ════════ */
.main-app .nav-lbl {
  color: rgba(255,255,255,.30) !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: .9px !important;
  padding: 10px 16px 3px !important;
}

/* ════════ NAV ITEM ════════ */
.main-app .nav-item {
  margin: 1px 8px !important;
  border-radius: 8px !important;
  padding: 7px 10px 7px 12px !important;
  font-size: 12.5px !important;
  color: rgba(255,255,255,.68) !important;
  transition: background .12s, color .12s !important;
}

/* bullet dot */
.main-app .nav-item::before {
  content: '•' !important;
  font-size: 16px !important;
  color: rgba(255,255,255,.25) !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  transition: color .12s !important;
  /* reset bar เดิม */
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  top: auto !important; bottom: auto !important;
  border-radius: 0 !important;
}

/* hover */
.main-app .nav-item:hover {
  background: rgba(255,255,255,.07) !important;
  color: #ffffff !important;
}
.main-app .nav-item:hover::before {
  color: #25C48F !important;
}

/* active */
.main-app .nav-item.active {
  background: rgba(29,158,117,.22) !important;
  color: #25C48F !important;
  font-weight: 600 !important;
}
.main-app .nav-item.active::before {
  color: #25C48F !important;
}
/* ปิด border bar เดิมของ active */
.main-app .nav-item.active::after {
  display: none !important;
}

/* ════════ BADGE ════════ */
.main-app .nb {
  background: rgba(226,75,74,.20) !important;
  color: #ff8888 !important;
  border: 1px solid rgba(226,75,74,.22) !important;
}
.main-app .nb.warn {
  background: rgba(186,117,23,.20) !important;
  color: #ffcc55 !important;
  border: 1px solid rgba(186,117,23,.22) !important;
}

/* ════════ FOOTER ════════ */
.main-app .sb-foot {
  background: #0A2E23 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}
.main-app .sb-uname {
  color: #ffffff !important;
}
.main-app .sb-urole {
  color: rgba(255,255,255,.38) !important;
}
.main-app .sb-av {
  background: rgba(29,158,117,.20) !important;
  color: #25C48F !important;
  border: 1px solid rgba(29,158,117,.35) !important;
}
.main-app .sb-logout {
  color: rgba(255,255,255,.35) !important;
}
.main-app .sb-logout:hover {
  background: rgba(226,75,74,.15) !important;
  color: #ff8888 !important;
}

/* ════════ SCROLLBAR ════════ */
.main-app .sidebar::-webkit-scrollbar {
  width: 3px;
}
.main-app .sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.main-app .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.10);
  border-radius: 2px;
}

/* ════════ TOPBAR ════════ */
.main-app .new-btn {
  box-shadow: 0 2px 8px rgba(29,158,117,.30);
}
