﻿html, body { height: 100%; }
    body { background: #f5f7fb; }
    .sidebar {
      width: 280px;
      height: 100vh;
      background: #fff;
      border-right: 1px solid #e5e7eb;
      padding: 18px;
      display: none;
      position: fixed;
      left: 0;
      top: 0;
      z-index: 1030;
    }
    @media (min-width: 992px) {
      .sidebar { display: flex; flex-direction: column; }
      .d-flex > main.flex-grow-1 { margin-left: 280px; }
    }
    .brand { display: flex; align-items: center; gap: 10px; padding: 10px 10px 14px; }
    .brand-mark {
      width: 40px; height: 40px; border-radius: 12px;
      display: grid; place-items: center;
      background: #f1f5f9;
      border: 1px solid #d1d5db;
      color: #0f172a;
    }
    .nav-section-title {
      font-size: .75rem; color: #6b7280;
      text-transform: uppercase; letter-spacing: .08em;
      padding: 14px 10px 8px;
    }
    .nav-link {
      color: #334155;
      border-radius: 12px;
      padding: 10px 12px;
      display: flex; align-items: center; gap: 10px;
    }
    .nav-link:hover { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
    .nav-link.active {
      background: rgba(13, 110, 253, 0.12);
      border: 1px solid rgba(13, 110, 253, 0.22);
      color: #0f172a;
    }
    .text-muted-3 { color: #64748b !important; }
    .content-wrap { min-height: 100vh; padding: 20px; }
    .topbar{
      position:sticky; top:0; z-index:1020;
      background: color-mix(in srgb, #f5f7fb 85%, transparent);
      backdrop-filter: blur(10px);
      border-bottom:1px solid #e5e7eb;
    }
    .topbar-inner{padding:14px 16px;}
    @media (min-width: 992px){ .topbar-inner{padding:14px 24px;} }
    .topbar .header-meta h4{
      font-size: 1.05rem;
      font-weight: 600;
      line-height: 1.2;
    }
    .topbar .header-meta .text-muted{
      font-size: .875rem;
      color: #64748b !important;
      line-height: 1.2;
    }
    .topbar .btn,
    .topbar .form-select{
      min-height: 38px;
      font-size: .92rem;
    }
    .page-max { max-width: 1600px; margin: 0 auto; }
    .icon-btn { width: 40px; height: 40px; border: 1px solid #d0d7e2; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #334155; }
    .notif-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #0d6efd; display: none; }
    .nowrap { white-space: nowrap; }
    .sidebar { overflow: hidden; }
    .sidebar-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding-right: 6px;
      margin-right: -6px;
    }
    .offcanvas{
      background: #fff;
      color: #0f172a;
    }
      .profile-icon-btn{
      border:0 !important;
      background:transparent !important;
      color: color-mix(in srgb, var(--text, #334155) 90%, transparent) !important;
      padding:.2rem .35rem;
      line-height:1;
    }
    .profile-icon-btn:hover,
    .profile-icon-btn:focus,
    .profile-icon-btn:active{
      border:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      color: color-mix(in srgb, var(--text, #334155) 90%, transparent) !important;
    }
    .profile-icon-btn::after{ display:none !important; }
    .profile-icon-btn i{ font-size:1.25rem; }
    .theme-icon-btn{
      border:0 !important;
      background:transparent !important;
      color: color-mix(in srgb, var(--text, #334155) 90%, transparent) !important;
      padding:.2rem .35rem;
      line-height:1;
    }
    .theme-icon-btn:hover,
    .theme-icon-btn:focus,
    .theme-icon-btn:active{
      border:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      color: color-mix(in srgb, var(--text, #334155) 90%, transparent) !important;
    }
    .theme-icon-btn i{ font-size:1.25rem; }
