:root {
    --sidebar-width: 274px;
    --sidebar-bg: #101827;
    --sidebar-muted: #93a4bd;
    --sidebar-hover: rgba(255,255,255,.075);
    --sidebar-active: #2563eb;
    --page-bg: #f3f6fb;
    --topbar-height: 76px;
    --border-color: #e4eaf2;
    --text-main: #172033;
    --text-muted: #6b778c;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--text-main); background: var(--page-bg); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { text-decoration: none; }
.admin-shell { min-height: 100vh; display: flex; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1045; width: var(--sidebar-width); display: flex; flex-direction: column; background: var(--sidebar-bg); color: white; box-shadow: 12px 0 35px rgba(15,23,42,.08); transition: transform .25s ease; }
.sidebar-brand { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-link { display: flex; align-items: center; gap: 12px; color: white; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#3b82f6,#1d4ed8); font-size: 20px; box-shadow: 0 8px 24px rgba(37,99,235,.32); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: .1px; }
.brand-copy small { margin-top: 4px; color: var(--sidebar-muted); font-size: 11px; }
.sidebar-close, .topbar-icon { border: 0; background: transparent; }
.sidebar-close { color: #c8d3e2; font-size: 21px; }
.sidebar-user { display: flex; align-items: center; gap: 11px; margin: 16px 14px 8px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.055); }
.user-avatar, .profile-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; font-weight: 700; background: linear-gradient(145deg,#0ea5e9,#2563eb); }
.user-avatar { width: 38px; height: 38px; }
.user-name { font-weight: 650; font-size: 13px; }
.user-role { color: var(--sidebar-muted); font-size: 11px; margin-top: 2px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px 18px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.sidebar-section { padding: 18px 12px 7px; color: #70829d; font-size: 10px; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 750; }
.sidebar-link { display: flex; align-items: center; gap: 12px; min-height: 43px; margin: 3px 0; padding: 10px 12px; border-radius: 11px; color: #cbd5e1; font-size: 13px; font-weight: 550; transition: .18s ease; }
.sidebar-link > i:first-child { width: 20px; text-align: center; color: #8ea1bb; font-size: 15px; }
.sidebar-link:hover { color: white; background: var(--sidebar-hover); }
.sidebar-link:hover > i:first-child { color: white; }
.sidebar-link.active { color: white; background: linear-gradient(135deg,#2563eb,#1d4ed8); box-shadow: 0 8px 22px rgba(37,99,235,.22); }
.sidebar-link.active > i:first-child { color: white; }
.sidebar-bottom { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.logout-link:hover { background: rgba(239,68,68,.13); color: #fecaca; }
.admin-main { width: calc(100% - var(--sidebar-width)); min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 1025; min-height: var(--topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color); }
.topbar-title { font-size: 18px; font-weight: 750; color: #182235; }
.topbar-date { margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-icon { width: 40px; height: 40px; border-radius: 10px; background: #eef3f9; color: #334155; }
.topbar-search { width: min(360px, 31vw); align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #dce4ef; border-radius: 12px; background: #f8fafc; }
.topbar-search i { color: #8290a4; font-size: 13px; }
.topbar-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #334155; font-size: 12px; }
.profile-button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 3px 7px; color: #253149; }
.profile-avatar { width: 37px; height: 37px; }
.profile-button strong, .profile-button small { display: block; max-width: 150px; line-height: 1.2; }
.profile-button strong { font-size: 12px; }
.profile-button small { color: var(--text-muted); font-size: 10px; margin-top: 2px; }
.admin-content { flex: 1; width: 100%; padding: 24px; }
.admin-content > .container-fluid { padding: 0 !important; }
.admin-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 24px; color: #7b8799; border-top: 1px solid var(--border-color); background: white; font-size: 11px; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 1040; background: rgba(15,23,42,.55); }
.public-content { min-height: 100vh; }
.card { border-color: #e5ebf3; border-radius: 14px; }
.card-header { border-bottom-color: #e9eef5; background: #fff; border-radius: 14px 14px 0 0 !important; }
.btn { border-radius: 9px; }
.form-control, .form-select { border-radius: 9px; border-color: #dce4ee; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding-top: .78rem; padding-bottom: .78rem; }
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.show { display: block; }
    .admin-main { width: 100%; margin-left: 0; }
    .admin-topbar { padding-inline: 16px; }
    .admin-content { padding: 16px; }
}
@media (max-width: 575.98px) {
    .admin-topbar { min-height: 68px; }
    .topbar-title { font-size: 15px; }
    .topbar-date { display: none; }
    .admin-content { padding: 12px; }
    .admin-footer { padding: 14px 16px; }
}
