@charset "UTF-8";
/* ============================================================================
   TKFB PAYMENT PANEL — reconstructed theme stylesheet (styles.css)
   Target: /public/giaodienblog/css/styles.css  (client Modernize + pcoded shell)
   --------------------------------------------------------------------------
   The original theme CSS was missing, so this file rebuilds it from scratch to
   match the real DOM found in resources/views/*. Strategy:
     1. @import Bootstrap 5.3.3 (the markup relies on hundreds of BS utilities;
        BS *CSS* is otherwise not loaded — only its JS bundle is).
     2. Re-tint the whole framework to the brand green (#2dbb6c -> #1b7323).
     3. Fill in the Modernize-only utilities BS does not ship
        (spacing steps 6–10, fs-1..fs-8, btn-xs, bg-indigo-subtle, ...).
     4. Build the full layout shell for EVERY wrapper variant present:
        Modernize (.left-sidebar / .page-wrapper / .topbar / #sidebarnav),
        pcoded (.pcoded-main-container / .pcoded-content),
        AdminKit (#sidebar.sidebar / .sidebar-user),
        Tailwind-admin fallback (.admin-sidebar / .sidebar-collapsed),
        auth (.auth-login), customizer offcanvas, and the preloader.
   NOTE: @import MUST stay the first rule after @charset.
   ============================================================================ */
@import url("https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css");

/* ===========================================================================
   1. DESIGN TOKENS
   =========================================================================== */
:root {
  /* Brand palette (matches parent shop tkfb.store) */
  --brand-400: #4fd08a;
  --brand-500: #2dbb6c;
  --brand-600: #24a35c;
  --brand-700: #1b7323;
  --brand-800: #155a1c;
  --brand-grad: linear-gradient(135deg, #2fc271 0%, #1b7323 100%);
  --brand-grad-soft: linear-gradient(135deg, #38c778 0%, #1f9251 100%);

  /* Dark, faintly green-tinted slate sidebar */
  --sidebar-bg: #14202c;
  --sidebar-bg-2: #0f1a24;
  --sidebar-text: #aab6c2;
  --sidebar-muted: #64727f;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --sidebar-active-bg: rgba(45, 187, 108, .16);

  --content-bg: rgb(240, 245, 249);

  /* Shape + elevation */
  --radius-card: 14px;
  --radius-sm: .5rem;
  --shadow-xs: 0 1px 2px rgba(16, 30, 54, .06);
  --shadow-card: 0 2px 10px rgba(16, 30, 54, .06), 0 1px 2px rgba(16, 30, 54, .04);
  --shadow-pop: 0 12px 34px rgba(16, 30, 54, .14);

  --sidebar-w: 260px;
  --topbar-h: 66px;

  /* --- Re-tint Bootstrap to brand green --- */
  --bs-primary: #2dbb6c;
  --bs-primary-rgb: 45, 187, 108;
  --bs-primary-text-emphasis: #155e2a;
  --bs-primary-bg-subtle: #ddf6e9;
  --bs-primary-border-subtle: #a6e6c4;
  --bs-link-color: #1b8a4c;
  --bs-link-color-rgb: 27, 138, 76;
  --bs-link-hover-color: #146b3a;
  --bs-body-color: #334155;
  --bs-body-bg: var(--content-bg);
  --bs-border-color: #e4e9f0;
  --bs-border-radius: .5rem;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ===========================================================================
   2. BASE
   =========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--content-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: #1f2a37; font-weight: 600; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid rgba(45, 187, 108, .55); outline-offset: 2px; }
::selection { background: rgba(45, 187, 108, .22); }

/* ===========================================================================
   3. MODERNIZE FONT-SIZE SCALE (BS ships fs-1..fs-6 at a larger scale; the
      templates were authored against Modernize's compact scale fs-1..fs-8)
   =========================================================================== */
.fs-1 { font-size: 2rem !important; }
.fs-2 { font-size: .75rem !important; }
.fs-3 { font-size: .875rem !important; }
.fs-4 { font-size: 1rem !important; }
.fs-5 { font-size: 1.125rem !important; }
.fs-6 { font-size: 1.25rem !important; }
.fs-7 { font-size: 1.5rem !important; }
.fs-8 { font-size: 2rem !important; }

/* ===========================================================================
   4. EXTENDED SPACING UTILITIES (BS only defines steps 0–5; markup uses 6–10)
      6:1rem  7:1.5rem  8:2rem  9:2.5rem  10:3rem
   =========================================================================== */
.m-6{margin:1rem!important}.mt-6{margin-top:1rem!important}.mb-6{margin-bottom:1rem!important}.ms-6{margin-left:1rem!important}.me-6{margin-right:1rem!important}.mx-6{margin-left:1rem!important;margin-right:1rem!important}.my-6{margin-top:1rem!important;margin-bottom:1rem!important}
.p-6{padding:1rem!important}.pt-6{padding-top:1rem!important}.pb-6{padding-bottom:1rem!important}.ps-6{padding-left:1rem!important}.pe-6{padding-right:1rem!important}.px-6{padding-left:1rem!important;padding-right:1rem!important}.py-6{padding-top:1rem!important;padding-bottom:1rem!important}
.m-7{margin:1.5rem!important}.mt-7{margin-top:1.5rem!important}.mb-7{margin-bottom:1.5rem!important}.ms-7{margin-left:1.5rem!important}.me-7{margin-right:1.5rem!important}.mx-7{margin-left:1.5rem!important;margin-right:1.5rem!important}.my-7{margin-top:1.5rem!important;margin-bottom:1.5rem!important}
.p-7{padding:1.5rem!important}.pt-7{padding-top:1.5rem!important}.pb-7{padding-bottom:1.5rem!important}.ps-7{padding-left:1.5rem!important}.pe-7{padding-right:1.5rem!important}.px-7{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-7{padding-top:1.5rem!important;padding-bottom:1.5rem!important}
.m-8{margin:2rem!important}.mt-8{margin-top:2rem!important}.mb-8{margin-bottom:2rem!important}.ms-8{margin-left:2rem!important}.me-8{margin-right:2rem!important}.mx-8{margin-left:2rem!important;margin-right:2rem!important}.my-8{margin-top:2rem!important;margin-bottom:2rem!important}
.p-8{padding:2rem!important}.pt-8{padding-top:2rem!important}.pb-8{padding-bottom:2rem!important}.ps-8{padding-left:2rem!important}.pe-8{padding-right:2rem!important}.px-8{padding-left:2rem!important;padding-right:2rem!important}.py-8{padding-top:2rem!important;padding-bottom:2rem!important}
.m-9{margin:2.5rem!important}.mt-9{margin-top:2.5rem!important}.mb-9{margin-bottom:2.5rem!important}.ms-9{margin-left:2.5rem!important}.me-9{margin-right:2.5rem!important}.mx-9{margin-left:2.5rem!important;margin-right:2.5rem!important}.my-9{margin-top:2.5rem!important;margin-bottom:2.5rem!important}
.p-9{padding:2.5rem!important}.pt-9{padding-top:2.5rem!important}.pb-9{padding-bottom:2.5rem!important}.ps-9{padding-left:2.5rem!important}.pe-9{padding-right:2.5rem!important}.px-9{padding-left:2.5rem!important;padding-right:2.5rem!important}.py-9{padding-top:2.5rem!important;padding-bottom:2.5rem!important}
.m-10{margin:3rem!important}.mt-10{margin-top:3rem!important}.mb-10{margin-bottom:3rem!important}.ms-10{margin-left:3rem!important}.me-10{margin-right:3rem!important}.mx-10{margin-left:3rem!important;margin-right:3rem!important}.my-10{margin-top:3rem!important;margin-bottom:3rem!important}
.p-10{padding:3rem!important}.pt-10{padding-top:3rem!important}.pb-10{padding-bottom:3rem!important}.ps-10{padding-left:3rem!important}.pe-10{padding-right:3rem!important}.px-10{padding-left:3rem!important;padding-right:3rem!important}.py-10{padding-top:3rem!important;padding-bottom:3rem!important}

/* Misc utility fills used by the markup but absent from BS */
.f-w-400 { font-weight: 400 !important; }
.f-w-500 { font-weight: 500 !important; }
.f-w-600 { font-weight: 600 !important; }
.bg-indigo-subtle { background-color: #e5e7ff !important; }
.text-indigo { color: #6366f1 !important; }
.sidebar-icon { display: inline-block; width: 6px; }

/* ===========================================================================
   5. BUTTONS — brand green + variants (BS btn machinery re-tinted via vars)
   =========================================================================== */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: .1px;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, background-image .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: #2dbb6c; --bs-btn-border-color: #2dbb6c;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #26a75f; --bs-btn-hover-border-color: #239b58;
  --bs-btn-focus-shadow-rgb: 45, 187, 108;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1f8d4f; --bs-btn-active-border-color: #1b7323;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #7bd0a5; --bs-btn-disabled-border-color: #7bd0a5;
  background-image: var(--brand-grad-soft);
  border: 0;
}
.btn-primary:hover { background-image: linear-gradient(135deg, #2bb268 0%, #197f45 100%); box-shadow: 0 6px 16px rgba(31, 141, 79, .32); }
.btn-primary:focus, .btn-primary:active { background-image: var(--brand-grad); }

.btn-outline-primary {
  --bs-btn-color: #1f8d4f; --bs-btn-border-color: #55c489;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #2dbb6c; --bs-btn-hover-border-color: #2dbb6c;
  --bs-btn-focus-shadow-rgb: 45, 187, 108;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #2dbb6c; --bs-btn-active-border-color: #2dbb6c;
}
.btn-success { --bs-btn-bg: #1eae63; --bs-btn-border-color: #1eae63; --bs-btn-hover-bg: #199a56; --bs-btn-hover-border-color: #199a56; --bs-btn-active-bg: #178c4e; }
.btn-outline-danger { --bs-btn-color: #e4405f; --bs-btn-border-color: #f0a1af; --bs-btn-hover-bg: #e4405f; --bs-btn-hover-border-color: #e4405f; }

/* BS4 leftovers still present in markup */
.btn-block { display: block; width: 100%; }
.btn-xs {
  --bs-btn-padding-y: .2rem; --bs-btn-padding-x: .55rem; --bs-btn-font-size: .75rem;
  padding: .2rem .55rem; font-size: .75rem; line-height: 1.4; border-radius: .4rem;
}

/* ===========================================================================
   6. CARDS
   =========================================================================== */
.card {
  border: 1px solid #edf1f6;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: #fff;
}
.card-header {
  background: rgba(112, 122, 130, .08);
  border-bottom: 1px solid #eef1f5;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.card-header h5, .card-header h4, .card-header * { margin-bottom: 0; }
.card-header h5 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 1.35rem; }
.card.bg-primary-subtle { border-color: var(--bs-primary-border-subtle); }

/* ---- Info / stat cards (home dashboard bank tiles) ---- */
.info-card { cursor: pointer; border: 0; }
.info-card.text-bg-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(27, 115, 35, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.info-card.text-bg-primary::after {
  content: ""; position: absolute; right: -28px; top: -28px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); pointer-events: none;
}
.info-card.text-bg-primary:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27, 115, 35, .32); }
.info-card .card-body { position: relative; z-index: 1; }
.info-card h5 { color: #fff; }
.theme-avtar {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-avtar img { width: 34px; height: 34px; object-fit: contain; }
/* Count badge on the green card: frosted white pill (avoids green-on-green) */
.info-card.text-bg-primary .badge {
  background: rgba(255, 255, 255, .22) !important;
  color: #fff !important; backdrop-filter: blur(2px); font-weight: 600;
}

/* ===========================================================================
   7. TABLES  (uppercase thead 12px per legacy inline style; hover + zebra)
   =========================================================================== */
.table { --bs-table-hover-bg: rgba(45, 187, 108, .05); color: #3a4756; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  color: #6b7785; font-weight: 600;
  background: #f6f8fb; border-bottom: 2px solid #e9edf3;
}
.table tbody td { vertical-align: middle; border-color: #eef1f5; }
.table tbody tr { transition: background .14s ease; }
.table-hover tbody tr:hover, .table tbody tr:hover { background: rgba(45, 187, 108, .05); }
.table-border-style .table { border: 0; }
.table-responsive { border-radius: 10px; }
.table-action { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.table-action .btn { --bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; font-size: .7875rem; border-radius: .4rem; }

/* ===========================================================================
   8. FORMS
   =========================================================================== */
.form-control, .form-select {
  border: 1px solid #d4d8df;
  border-radius: var(--radius-sm);
  padding: .6rem .85rem;
  color: #2b3543;
  background-color: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus, .form-select:focus {
  border-color: #56c78c;
  box-shadow: 0 0 0 .2rem rgba(45, 187, 108, .18);
}
.form-control::placeholder { color: #b9bfc7; }
.form-control:read-only, .form-control:disabled { background: #eef1f4; }
label, .form-label { margin-bottom: .35rem; font-weight: 500; color: #45505f; }
.form-group { margin-bottom: 1rem; }
.input-group .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn, .input-group-append > * {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
}
.input-group-append { display: flex; align-items: stretch; }
.input-group-append img { border: 1px solid #d4d8df; border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ===========================================================================
   9. BADGES / BREADCRUMB / PAGE HEADER
   =========================================================================== */
.badge { font-weight: 600; letter-spacing: .2px; border-radius: 7px; }
.page-header { margin: .25rem 0 1.25rem; }
.page-header-title { display: none; }               /* per legacy inline rule */
.breadcrumb { margin: 0; padding: .35rem 0; font-size: .82rem; }
.breadcrumb-item, .breadcrumb-item a { color: #7a8594; }
.breadcrumb-item.active, .breadcrumb-item:last-child a { color: var(--brand-700); }
.breadcrumb-item + .breadcrumb-item::before { color: #b8c0cb; }

/* ===========================================================================
   10. LAYOUT SHELL — MODERNIZE (client home / list / history pages)
       #main-wrapper > aside.left-sidebar + .page-wrapper>.body-wrapper>.container-fluid
   =========================================================================== */
#main-wrapper { position: relative; }

/* ---- Left sidebar (dark) ---- */
.left-sidebar {
  position: fixed; top: 0; left: 0; z-index: 1035;
  width: var(--sidebar-w); height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 2px 0 18px rgba(8, 15, 26, .18);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.left-sidebar .brand-logo {
  min-height: var(--topbar-h);
  padding: .75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}
.left-sidebar .brand-logo img { max-height: 42px; width: auto; }
.left-sidebar .brand-logo .light-logo { display: inline-block; }
.left-sidebar .brand-logo .dark-logo { display: none; }
.left-sidebar .sidebartoggler { color: #8b97a4; }

.scroll-sidebar { flex: 1 1 auto; overflow-y: auto; padding: .75rem .75rem 1rem; }
.left-sidebar .sidebar-nav { padding: 0; }
.left-sidebar #sidebarnav { margin: 0; padding: 0; list-style: none; }
.left-sidebar .sidebar-item { list-style: none; margin-bottom: 2px; }

.left-sidebar .sidebar-link {
  display: flex; align-items: center; gap: .25rem;
  padding: .58rem .7rem; border-radius: 10px;
  color: var(--sidebar-text); font-size: .9rem; font-weight: 500;
  transition: background .16s ease, color .16s ease;
}
.left-sidebar .sidebar-link .hide-menu { color: inherit; }
.left-sidebar .sidebar-link:hover { background: var(--sidebar-hover); color: #fff; }
.left-sidebar .sidebar-link.active,
.left-sidebar .sidebar-item > .sidebar-link.active {
  background: var(--sidebar-active-bg); color: #fff;
  box-shadow: inset 3px 0 0 var(--brand-500);
}
/* Colored icon chips (bg-*-subtle) already themed by BS; keep them crisp */
.left-sidebar .aside-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
}
.left-sidebar .aside-icon iconify-icon { font-size: 1.05rem; }

/* Collapsible submenus: theme JS (sidebarmenu.js) is missing, so reveal the
   BS .collapse groups permanently — otherwise the bank / API / settings links
   would stay display:none and be unreachable. */
.left-sidebar .sidebar-nav .collapse.first-level { display: block !important; height: auto !important; }
.left-sidebar .first-level { padding-left: .35rem; margin: 2px 0 6px; }
.left-sidebar .first-level .sidebar-link {
  padding: .42rem .7rem .42rem 2.6rem; font-size: .84rem; border-radius: 8px;
  color: var(--sidebar-muted); position: relative;
}
.left-sidebar .first-level .sidebar-link::before {
  content: ""; position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #4a5765;
}
.left-sidebar .first-level .sidebar-link:hover { color: #fff; background: var(--sidebar-hover); }
.left-sidebar .first-level .sidebar-link:hover::before { background: var(--brand-500); }
/* has-arrow caret */
.left-sidebar .sidebar-link.has-arrow { position: relative; }
.left-sidebar .sidebar-link.has-arrow::after {
  content: ""; position: absolute; right: 1rem; top: 46%;
  width: 7px; height: 7px; border-right: 2px solid #7a8794; border-bottom: 2px solid #7a8794;
  transform: rotate(45deg); transition: transform .2s ease;
}

/* ---- Fixed profile card at sidebar bottom ---- */
.fixed-profile { flex-shrink: 0; }
.fixed-profile .card { border: 0; box-shadow: none; border-radius: 12px; }
.fixed-profile .card.bg-primary-subtle { background: rgba(45, 187, 108, .14) !important; }
.fixed-profile h5 { color: #eef4ef; font-size: .95rem; }
.fixed-profile p, .fixed-profile .card-body { color: #b4c1cb; }
.fixed-profile img { border: 2px solid rgba(255, 255, 255, .12); }

/* ---- Page wrapper offset to the right of the sidebar ---- */
.page-wrapper { margin-left: var(--sidebar-w); min-height: 100vh; transition: margin-left .3s cubic-bezier(.4, 0, .2, 1); }
.body-wrapper { min-height: 100vh; }
.body-wrapper > .container-fluid { padding: 1.25rem 1.5rem 2.5rem; max-width: 100%; }

/* ---- Top navbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 1020;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: .4rem 1rem;
  margin-bottom: 1.25rem;
  min-height: var(--topbar-h);
  display: flex; align-items: center;
}
.topbar .with-vertical, .topbar .navbar { width: 100%; }
.topbar .navbar { padding: 0; }
.topbar .navbar-nav { align-items: center; }
.topbar .nav-link { color: #4a5765; display: inline-flex; align-items: center; justify-content: center; }
.topbar .nav-icon-hover-bg {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s ease;
}
.topbar .nav-icon-hover-bg:hover { background: rgba(45, 187, 108, .1); }
.topbar .nav-icon-hover-bg .nav-link { color: #4a5765; font-size: 1.15rem; }
.topbar #headerCollapse { cursor: pointer; }

/* topbar profile block */
.topbar .profile-name { color: #26313f; font-weight: 600; margin-bottom: 0; }
.topbar .profile-subtext { color: #8a95a2; }
.topbar .user-profile img { border: 2px solid #e7ebf1; }

/* notification pulse dot */
.pulse { position: relative; }
.pulse .heartbit {
  position: absolute; top: -14px; right: -4px; height: 22px; width: 22px;
  border: 4px solid; border-radius: 50%; animation: pulse-ring 1.4s ease-out infinite;
}
.pulse .point { position: absolute; top: -8px; right: 2px; width: 7px; height: 7px; border-radius: 50%; }
@keyframes pulse-ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.1); opacity: 0; } }

/* dropdown menus (BS supplies base; polish + brand) */
.dropdown-menu { border: 1px solid #edf1f6; border-radius: 12px; box-shadow: var(--shadow-pop); padding: .35rem; }
.dropdown-menu.content-dd { min-width: 320px; }
.dropdown-item { border-radius: 8px; }
.dropdown-item:hover { background: rgba(45, 187, 108, .1); }
.message-body a:hover { background: #f5f8fb; border-radius: 10px; }
.profile-dropdown, .message-body { max-height: 340px; overflow-y: auto; }

/* ===========================================================================
   11. PCODED CONTENT WRAPPER (Datta-Able-style content region)
   =========================================================================== */
.pcoded-main-container { width: 100%; }
.pcoded-content { padding: 0; }
.pcoded-content .row { margin-bottom: 0; }

/* ===========================================================================
   12. ALT SIDEBAR — AdminKit (#sidebar.sidebar / .sidebar-user) [legacy view]
   =========================================================================== */
nav#sidebar.sidebar, .sidebar:not(.left-sidebar):not(.sidebar-nav):not(.sidebar-item):not(.sidebar-link) {
  position: fixed; top: 0; left: 0; z-index: 1035;
  width: var(--sidebar-w); height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
}
.sidebar-brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.15rem 1.25rem; min-height: var(--topbar-h);
  color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .3px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sidebar-brand svg { width: 22px; height: 22px; fill: var(--brand-500); }
.sidebar-content { flex: 1 1 auto; overflow-y: auto; padding: .5rem .75rem; }
.sidebar-user {
  text-align: center; padding: 1.25rem .75rem; margin-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--sidebar-text);
}
.sidebar-user img { width: 64px; height: 64px; object-fit: cover; border: 3px solid rgba(255, 255, 255, .1); }
.sidebar-user .fw-bold { color: #fff; margin-top: .35rem; }
.sidebar-user small { color: var(--sidebar-muted); font-size: .74rem; }
/* AdminKit nav rows (share .sidebar-link with Modernize; scope by ancestry) */
.sidebar-content .sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-content .sidebar-item { margin-bottom: 2px; }
.sidebar-content .sidebar-link {
  display: flex; align-items: center;
  padding: .62rem .8rem; border-radius: 9px;
  color: var(--sidebar-text); font-size: .9rem; font-weight: 500;
  transition: background .16s ease, color .16s ease;
}
.sidebar-content .sidebar-link i { width: 22px; text-align: center; color: #8894a1; }
.sidebar-content .sidebar-link:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-content .sidebar-link:hover i { color: var(--brand-400); }
.sidebar-content .sidebar-link.active { background: var(--sidebar-active-bg); color: #fff; box-shadow: inset 3px 0 0 var(--brand-500); }
.sidebar-content .sidebar-link.active i { color: var(--brand-400); }

/* ===========================================================================
   13. ADMIN (Tailwind panel) FALLBACK — .admin-sidebar / .sidebar-collapsed
       The admin pages load their own admin-tailwind.css; these rules are a
       defensive fallback so the shell still positions if this file is present.
   =========================================================================== */
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 1040;
  width: 16rem; height: 100vh; display: flex; flex-direction: column;
  background: #0f172a; color: #e2e8f0;
  border-right: 1px solid rgba(148, 163, 184, .12);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-collapsed .admin-sidebar { transform: translateX(-100%); }
.nav-link-admin { transition: all .2s ease; border-radius: 10px; }
.nav-link-admin:hover, .nav-link-admin.active { background: rgba(45, 187, 108, .12); color: var(--brand-400); }
.admin-card { transition: all .3s cubic-bezier(.4, 0, .2, 1); border: 1px solid rgba(148, 163, 184, .1); }
.admin-card:hover { border-color: rgba(45, 187, 108, .3); box-shadow: 0 0 30px rgba(45, 187, 108, .06); }
.stat-card { background: rgba(30, 41, 59, .6); border: 1px solid rgba(148, 163, 184, .1); transition: all .3s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: rgba(45, 187, 108, .3); box-shadow: 0 8px 32px rgba(45, 187, 108, .1); }

/* ===========================================================================
   14. AUTH / LOGIN (standalone, no sidebar) — .auth-login
   =========================================================================== */
.auth-login {
  min-height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(45, 187, 108, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(27, 115, 35, .12), transparent 55%),
    var(--content-bg);
}
.auth-login-shape { max-width: 1040px; margin: 0 auto; }
.auth-login-wrapper.card {
  border: 0; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(16, 30, 54, .16);
  overflow: hidden;
}
.auth-login-wrapper .card-body { padding: 2.25rem; }
.auth-login .dark-logo { display: none; }
.auth-login .light-logo { display: inline-block; }
.auth-login h2 { font-weight: 800; letter-spacing: -.3px; }
.auth-login .btn-primary { padding-top: .65rem; padding-bottom: .65rem; }
#main-wrapper:has(.auth-login) { max-width: 100%; }

/* ===========================================================================
   15. CUSTOMIZER OFFCANVAS + overlay (footer.php)
   =========================================================================== */
.customizer { width: 320px; }
.customizer-box .btn { border-radius: 10px; }
.customizer-box .color-box { width: 22px; height: 22px; }
.skin-1 { background: #0d6efd; } .skin-2 { background: #16b1c7; } .skin-3 { background: #7c3aed; }
.skin-4 { background: var(--brand-500); } .skin-5 { background: #06b6d4; } .skin-6 { background: #f59e0b; }
.customizer-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 1050;
  width: 52px; height: 52px; box-shadow: var(--shadow-pop);
}
.dark-transparent {
  position: fixed; inset: 0; z-index: 1034;
  background: rgba(15, 23, 34, .5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}

/* ===========================================================================
   16. PRELOADER — full-screen white overlay w/ brand spinner.
       Hidden after load via `body.loaded .preloader` (JS toggles .loaded).
   =========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}
.preloader img.lds-ripple { display: none; }   /* loader.svg asset is absent -> use CSS spinner */
.preloader::after {
  content: ""; width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid rgba(45, 187, 108, .18);
  border-top-color: var(--brand-500);
  animation: preloader-spin .8s linear infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }
body.loaded .preloader { opacity: 0; visibility: hidden; }

/* ===========================================================================
   17. MODAL polish (BS supplies base)
   =========================================================================== */
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-pop); }
.modal-header { border-bottom: 1px solid #eef1f5; padding: 1.1rem 1.35rem; }
.modal-title { font-size: 1.05rem; font-weight: 600; }
.modal-body { padding: 1.35rem; }
.modal-footer { border-top: 1px solid #eef1f5; }

/* ===========================================================================
   18. SCROLLBARS
   =========================================================================== */
* { scrollbar-width: thin; scrollbar-color: #c6cfda transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c6cfda; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aab6c5; }
.left-sidebar ::-webkit-scrollbar-thumb, .sidebar-content::-webkit-scrollbar-thumb { background: #33414f; }

/* ===========================================================================
   19. RESPONSIVE — sidebar becomes an off-canvas drawer under 992px.
       Theme JS is absent; wire the topbar toggler (#headerCollapse /
       .sidebartoggler) to toggle `.show-sidebar` on #main-wrapper (client)
       or `.sidebar-collapsed` on <body> (admin) to open/close it.
   =========================================================================== */
@media (max-width: 991.98px) {
  .left-sidebar { transform: translateX(-100%); }
  .page-wrapper { margin-left: 0; }
  .body-wrapper > .container-fluid { padding: 1rem; }

  #main-wrapper.show-sidebar .left-sidebar,
  body.show-sidebar .left-sidebar { transform: translateX(0); }
  #main-wrapper.show-sidebar .dark-transparent,
  body.show-sidebar .dark-transparent { opacity: 1; visibility: visible; }

  nav#sidebar.sidebar { transform: translateX(-100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
  body.show-sidebar nav#sidebar.sidebar { transform: translateX(0); }

  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open, body:not(.sidebar-collapsed) .admin-sidebar.show { transform: translateX(0); }

  .topbar { border-radius: 12px; }
  .dropdown-menu.content-dd { min-width: 280px; }
}

@media (min-width: 992px) {
  /* Toggler icons that only make sense on mobile stay clickable but the
     drawer is always open on desktop. */
  .dark-transparent { display: none; }
}

/* Small phones */
@media (max-width: 575.98px) {
  .auth-login-wrapper .card-body { padding: 1.35rem; }
  .card-body { padding: 1.1rem; }
  .info-card h5 { font-size: .95rem; }
}

/* ===========================================================================
   20. MOTION PREFERENCES
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .preloader::after { animation: none; border-top-color: var(--brand-500); }
}
