/* ===== Modern sidebar (visual only - no markup/route changes) ===== */
.side-bar { background: #fff; box-shadow: 1px 0 0 rgba(15, 23, 42, .06), 4px 0 18px rgba(15, 23, 42, .04); }

/* brand header */
.side-bar > a:first-of-type { position: relative; box-shadow: 0 3px 10px rgba(15, 23, 42, .18); letter-spacing: .2px; }
.side-bar > a:first-of-type::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0) 60%); pointer-events: none; }

/* search box */
.sb-search { position: relative; padding: 12px 12px 4px; background: #fff; }
.sb-search input { width: 100%; height: 38px; padding: 0 34px 0 36px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; font-size: 13px; color: #334155; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.sb-search input:focus { background: #fff; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .22); }
.sb-search .sb-ico { position: absolute; left: 24px; top: 50%; transform: translateY(-40%); color: #94a3b8; font-size: 13px; pointer-events: none; }
.sb-search .sb-clear { position: absolute; right: 22px; top: 50%; transform: translateY(-40%); border: 0; background: transparent; color: #94a3b8; font-size: 18px; line-height: 1; cursor: pointer; display: none; }
.sb-search.has-text .sb-clear { display: block; }
.sb-empty { display: none; padding: 18px 14px; text-align: center; color: #94a3b8; font-size: 13px; }

/* menu container */
#side-bar { padding: 10px 12px 24px !important; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
#side-bar::-webkit-scrollbar { width: 6px; }
#side-bar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
#side-bar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
#side-bar > * + * { margin-top: 4px !important; }

/* items */
#side-bar > a, #side-bar .drop_down { position: relative; border-radius: 10px; padding: 9px 12px; gap: 12px; color: #475569; font-weight: 500; transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
#side-bar > a > i, #side-bar .drop_down > i, #side-bar > a > svg:first-child, #side-bar .drop_down > svg:first-child { width: 20px; min-width: 20px; text-align: center; font-size: 15px; opacity: .8; transition: opacity .18s, transform .18s; }
#side-bar > a:hover, #side-bar .drop_down:hover { background: #f1f5f9; color: #0f172a; transform: translateX(2px); }
#side-bar > a:hover > i, #side-bar .drop_down:hover > i { opacity: 1; transform: scale(1.08); }

/* active item: soft tint + accent bar */
#side-bar > a.tw-bg-gray-200 { background: linear-gradient(90deg, rgba(59, 130, 246, .16), rgba(59, 130, 246, .04)) !important; box-shadow: inset 3px 0 0 currentColor; font-weight: 600; }
#side-bar > div.tw-bg-gray-200 { background: #f8fafc !important; border-radius: 12px; box-shadow: inset 0 0 0 1px #e2e8f0; padding-bottom: 6px !important; }
#side-bar > div.tw-bg-gray-200 > .drop_down { background: transparent !important; box-shadow: inset 3px 0 0 currentColor; font-weight: 600; }

/* chevron */
#side-bar .drop_down .svg { transition: transform .2s; }

/* sub menu */
#side-bar .chiled { margin-top: 4px !important; margin-bottom: 8px !important; padding-left: 40px !important; }
#side-bar .chiled > div:first-child { left: 20px !important; background: linear-gradient(#e2e8f0, #f1f5f9) !important; }
#side-bar .chiled .tw-space-y-3\.5 > * + * { margin-top: 2px !important; }
#side-bar .chiled a { position: relative; padding: 7px 10px; border-radius: 8px; color: #64748b; font-weight: 500; transition: background .15s, color .15s, padding-left .15s; }
#side-bar .chiled a::before { content: ""; position: absolute; left: -22px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; transition: background .15s, transform .15s; }
#side-bar .chiled a:hover { background: #f1f5f9; color: #0f172a; padding-left: 14px; }
#side-bar .chiled a:hover::before { background: #60a5fa; transform: scale(1.25); }
#side-bar .chiled a.tw-text-primary-700 { background: rgba(59, 130, 246, .10); font-weight: 600; }
#side-bar .chiled a.tw-text-primary-700::before { background: currentColor; transform: scale(1.3); }

/* section headers */
#side-bar > div.tw-uppercase { color: #94a3b8; font-size: 11px; letter-spacing: .09em; padding: 14px 12px 4px !important; }

/* search hidden state */
#side-bar .sb-hide { display: none !important; }
