@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

html,
body {
  height: 100%;
}

html {
  margin: 0;
  padding: 0;
}

:root {
  --bs-primary: var(--gf-primary-600);
  --bs-secondary: var(--gf-primary-400);
  --bs-body-color: var(--gf-text);
  --bs-body-bg: var(--gf-bg);
  --bs-border-color: var(--gf-border);
}

body.gf-premium {
  font-family: var(--gf-font-body);
  background: var(--gf-bg);
  color: var(--gf-text);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.gf-premium .main-wrapper.gf-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body.gf-premium .main-wrapper.gf-layout::before,
body.gf-premium .main-wrapper.gf-layout::after {
  content: none !important;
}

body.gf-premium .gf-body {
  display: flex;
  flex: 1 1 auto;
  height: calc(100vh - var(--gf-topbar-height));
  min-height: 0;
  min-width: 0;
}

body.gf-premium .gf-sidebar {
  flex: 0 0 var(--gf-sidebar-width);
  width: var(--gf-sidebar-width);
  height: 100%;
  max-height: calc(100vh - var(--gf-topbar-height));
  position: sticky;
  top: 0;
  left: 0;
  align-self: stretch;
  overflow: hidden;
}

body.gf-premium .gf-sidebar .sidebar-inner {
  height: 100%;
  overflow-y: auto;
}

body.gf-premium.mini-sidebar .gf-sidebar {
  width: var(--gf-sidebar-mini-width);
  flex-basis: var(--gf-sidebar-mini-width);
}

body.gf-premium .gf-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.gf-premium .gf-topbar {
  flex: 0 0 var(--gf-topbar-height);
  position: sticky !important;
  top: 0;
  z-index: 1030;
  width: 100%;
}

body.gf-premium .gf-topbar-main {
  min-width: 0;
}

body.gf-premium .gf-topbar .main-header {
  height: var(--gf-topbar-height);
  width: 100%;
}

body.gf-premium .gf-topbar .header-left {
  width: auto;
  padding: 0 0.75rem 0 0;
  height: var(--gf-topbar-height);
}

body.gf-premium .gf-topbar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
}

body.gf-premium .gf-topbar-search {
  flex: 1 1 220px;
  max-width: 420px;
  min-width: 160px;
}

body.gf-premium .gf-topbar-actions {
  flex: 0 0 auto;
}

body.gf-premium .gf-user-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

body.gf-premium .gf-user-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.gf-premium .gf-topbar-avatar {
  flex-shrink: 0;
}

body.gf-premium .page-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
}

body.gf-premium .content.gf-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px var(--gf-page-padding-x) 24px !important;
  margin-top: 0 !important;
}

body.gf-premium .content.gf-content > .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 1200px) {
  body.gf-premium .gf-user-name {
    max-width: 140px;
  }
}

@media (max-width: 991.98px) {
  body.gf-premium {
    overflow: auto;
  }

  body.gf-premium .main-wrapper.gf-layout {
    flex-direction: column;
  }

  body.gf-premium .gf-sidebar {
    position: fixed;
    top: var(--gf-topbar-height);
    left: -100%;
    height: calc(100vh - var(--gf-topbar-height));
    z-index: 1040;
    transition: left 0.25s ease;
  }

  body.gf-premium.sidebar-open .gf-sidebar {
    left: 0;
  }

  body.gf-premium .gf-main {
    min-height: 100vh;
  }

  body.gf-premium .gf-topbar-search {
    max-width: 100%;
  }
}

@media (max-height: 700px) {
  :root {
    --gf-topbar-height: 60px;
    --gf-page-padding-y: 16px;
  }

  body.gf-premium .content.gf-content {
    padding: 0.75rem 1rem 1rem !important;
  }
}

body.dashboard-page {
  background: radial-gradient(circle at 20% 10%, #e6ecf7 0%, #d9e1ef 35%, #cfd7e6 55%, #c7cedf 100%);
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.dashboard-page .main-wrapper.gf-layout {
  margin: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: var(--gf-bg);
  padding-top: 0 !important;
  margin-top: 0 !important;
  top: 0 !important;
  position: relative !important;
  transform: none !important;
}

body.dashboard-page .header.gf-topbar,
body.dashboard-page .header.gf-topbar .main-header {
  margin-top: 0 !important;
  top: 0 !important;
}

body.dashboard-page .main-wrapper.gf-layout::before,
body.dashboard-page .main-wrapper.gf-layout::after {
  content: none !important;
}

@media (max-width: 991.98px) {
  body.dashboard-page .main-wrapper.gf-layout {
    margin: 0;
    border-radius: 0;
  }
}

.gf-premium .page-wrapper,
.gf-premium .content {
  background: var(--gf-bg);
}

.gf-premium .header.gf-topbar,
.gf-premium .header.gf-topbar .main-header {
  background: var(--gf-surface);
}

body.gf-premium .header {
  position: sticky !important;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--gf-topbar-height) !important;
  z-index: 1030;
}

body.dashboard-page .header {
  box-shadow: none;
  border-bottom: 1px solid var(--gf-border);
}

body.gf-premium .header .main-header {
  height: var(--gf-topbar-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gf-font-title);
  color: var(--gf-text);
  letter-spacing: -0.01em;
}

::selection {
  background: var(--gf-primary-600);
  color: #ffffff;
}

a,
a:hover,
a:focus {
  color: var(--gf-primary-600);
}

.text-muted {
  color: var(--gf-muted) !important;
}

.gf-premium .main-wrapper {
  background: var(--gf-bg);
}

@media (min-width: 992px) {
  body.gf-premium .main-wrapper:not(.gf-layout) {
    display: grid;
    grid-template-columns: var(--gf-sidebar-width) 1fr;
    grid-template-rows: var(--gf-topbar-height) 1fr;
    min-height: 100vh;
  }

  body.gf-premium.mini-sidebar .main-wrapper:not(.gf-layout) {
    grid-template-columns: var(--gf-sidebar-mini-width) 1fr;
  }

  body.gf-premium .main-wrapper:not(.gf-layout) .header {
    position: sticky !important;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--gf-topbar-height) !important;
    grid-column: 1 / -1;
    grid-row: 1;
    background: var(--gf-surface) !important;
    border-bottom: 1px solid var(--gf-border);
    z-index: 1030;
  }

  body.gf-premium .main-wrapper:not(.gf-layout) .header .main-header {
    height: var(--gf-topbar-height);
  }

  body.gf-premium .main-wrapper:not(.gf-layout) .header .header-left {
    width: auto;
    padding: 0 0.75rem;
  }

  body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  body.gf-premium .main-wrapper:not(.gf-layout) .sidebar {
    grid-column: 1;
    grid-row: 2;
    position: sticky !important;
    top: var(--gf-topbar-height);
    height: calc(100vh - var(--gf-topbar-height));
    width: var(--gf-sidebar-width);
    margin: 0 !important;
  }

  body.gf-premium.mini-sidebar .main-wrapper:not(.gf-layout) .sidebar {
    width: var(--gf-sidebar-mini-width);
  }
}

body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper .content {
  padding: var(--gf-page-padding-y) var(--gf-page-padding-x) !important;
  padding-top: var(--gf-page-padding-y) !important;
  padding-bottom: var(--gf-page-padding-y) !important;
  min-height: calc(100vh - var(--gf-topbar-height));
  margin-top: 0 !important;
  display: block !important;
}

body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper::before,
body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper::after {
  content: none !important;
}

body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper .content.container-fluid {
  margin-top: 0 !important;
  padding-top: var(--gf-page-padding-y) !important;
  padding-bottom: calc(var(--gf-page-padding-y) + 8px) !important;
}

body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper .content .container-fluid {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.gf-premium .main-wrapper:not(.gf-layout) .page-wrapper .content {
    padding: 0.9rem 1rem 1.2rem;
    min-height: auto;
  }
}

.gf-topbar-main {
  padding: 0 var(--gf-page-padding-x);
}

.gf-topbar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.gf-topbar-logo {
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
}

.gf-topbar-logo img {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.gf-topbar-content .gf-topbar-search {
  margin-left: auto;
}

.gf-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gf-topbar-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gf-text);
  margin-bottom: 0.1rem;
}

.gf-topbar-subtitle {
  font-size: 0.95rem;
  color: var(--gf-muted);
  margin: 0;
}

.gf-topbar-subtitle:empty,
.gf-topbar-actions:empty {
  display: none;
}

.gf-topbar-search {
  position: relative;
  min-width: 240px;
  max-width: 360px;
  width: 100%;
}

.gf-topbar-search input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.35rem;
  border: 1px solid var(--gf-border);
  border-radius: 999px;
  background: var(--gf-surface-2);
  color: var(--gf-text);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gf-topbar-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gf-muted);
}

body.dashboard-page .gf-topbar-search input {
  padding: 0.55rem 2.35rem 0.55rem 0.95rem;
}

body.dashboard-page .gf-topbar-search i {
  left: auto;
  right: 0.85rem;
}


.gf-topbar-avatar {
  border: 2px solid var(--gf-primary-400);
  box-shadow: 0 0 0 2px var(--gf-surface);
}

.gf-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2a44;
}

.gf-breadcrumb-current {
  font-weight: 700;
}

.gf-breadcrumb-sep {
  color: #94a3b8;
}

.gf-breadcrumb-muted {
  font-weight: 500;
  color: #94a3b8;
}

.gf-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gf-sidebar,
.gf-premium #sidebar {
  background: var(--gf-sidebar-bg) !important;
  color: var(--gf-sidebar-text) !important;
  background-image: linear-gradient(180deg, var(--gf-sidebar-grad-start), var(--gf-sidebar-grad-end)) !important;
  border-right: 1px solid var(--gf-sidebar-border);
  position: relative;
  overflow: hidden;
}

body.dashboard-page .gf-sidebar,
body.dashboard-page #sidebar {
  background: #2b3f60 !important;
  background-image: linear-gradient(180deg, #355074 0%, #223552 55%, #1b2a44 100%) !important;
}

.gf-sidebar::before,
.gf-premium #sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 8%, var(--gf-sidebar-glow), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.gf-sidebar .sidebar-inner,
.gf-sidebar .slimScrollDiv {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.gf-sidebar .sidebar-inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gf-sidebar .sidebar-inner::-webkit-scrollbar {
  width: 4px;
}

.gf-sidebar .sidebar-inner::-webkit-scrollbar-track {
  background: transparent;
}

.gf-sidebar .sidebar-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.gf-sidebar .slimScrollBar {
  width: 4px !important;
  right: 2px !important;
  opacity: 0.45 !important;
  border-radius: 999px !important;
}

.gf-sidebar .slimScrollRail {
  width: 4px !important;
  right: 2px !important;
  opacity: 0.12 !important;
}

.gf-sidebar .sidebar-menu .menu-title span,
.gf-sidebar .sidebar-menu h6.menu-section {
  color: var(--gf-sidebar-muted) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.gf-sidebar .sidebar-menu a,
.gf-sidebar .sidebar-menu > ul > li > a,
.gf-sidebar .sidebar-menu ul li a {
  color: var(--gf-sidebar-text) !important;
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  position: relative;
}

.gf-sidebar .sidebar-menu {
  padding: 12px 10px !important;
}

.gf-sidebar .sidebar-menu > ul > li {
  margin-bottom: 6px !important;
}

.gf-sidebar .sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.gf-sidebar .sidebar-menu a.active,
.gf-sidebar .sidebar-menu li.active > a {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.gf-sidebar .sidebar-menu a.active::before,
.gf-sidebar .sidebar-menu li.active > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--gf-accent-500);
  border-radius: 2px;
}

.gf-sidebar .sidebar-menu ul ul a {
  font-size: 0.9rem;
  padding-left: 2.2rem;
}

.gf-sidebar .sidebar-menu i {
  color: var(--gf-sidebar-text) !important;
  opacity: 0.9;
}

/* Sidebar readability tuning */
.gf-sidebar .sidebar-menu > ul > li > a {
  min-height: 42px;
  font-size: 1.04rem;
  font-weight: 550;
  color: #f1f5ff !important;
  justify-content: flex-start !important;
  gap: 0.55rem !important;
  padding: 0.52rem 0.8rem !important;
  padding-right: 0.7rem !important;
}

.gf-sidebar .sidebar-menu a span {
  color: inherit !important;
  opacity: 1 !important;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.gf-sidebar .sidebar-menu > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.gf-sidebar .sidebar-menu > ul > li > a.active,
.gf-sidebar .sidebar-menu > ul > li.active > a {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.gf-sidebar .sidebar-menu > ul > li.submenu ul li a,
.gf-sidebar .sidebar-menu > ul > li.submenu-open ul li a,
.gf-sidebar .sidebar-menu .submenu-open .submenu ul li a {
  color: rgba(241, 245, 255, 0.9) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.gf-sidebar .sidebar-menu > ul > li.submenu ul li a:hover,
.gf-sidebar .sidebar-menu > ul > li.submenu-open ul li a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.13) !important;
}

.gf-sidebar .sidebar-menu > ul > li.submenu-open ul > li.active a {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.gf-sidebar .sidebar-menu .menu-arrow {
  width: 18px !important;
  height: 18px !important;
  top: auto !important;
  right: auto !important;
  position: static !important;
  margin-left: auto !important;
  flex: 0 0 18px !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.gf-sidebar .sidebar-menu .menu-arrow::before {
  border-right-color: rgba(236, 244, 255, 0.92) !important;
  border-bottom-color: rgba(236, 244, 255, 0.92) !important;
}

.gf-sidebar .sidebar-menu > ul > li.submenu ul li a::after {
  background: rgba(241, 245, 255, 0.52) !important;
  border-color: rgba(18, 37, 62, 0.8) !important;
}

.gf-card {
  background: var(--gf-surface);
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-lg);
  box-shadow: var(--gf-shadow-xs);
}

.gf-dashboard .gf-card {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border-color: #e2e7f0;
}

.gf-dashboard .gf-panel {
  border-radius: 16px;
}

.gf-dashboard .gf-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #e7ebf3;
  font-weight: 600;
  color: #334155;
}

.gf-dashboard .gf-panel__actions {
  color: #94a3b8;
}

.gf-dashboard .gf-panel__body {
  padding: 1.1rem;
}

.gf-dashboard .gf-panel__body--empty {
  min-height: 150px;
}

.gf-dashboard .gf-empty-soft {
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed #e2e8f0;
}

.gf-dashboard .gf-kpi-card {
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #f8fafc;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 110px;
}

.gf-dashboard .gf-kpi-card::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -40%;
  width: 70%;
  height: 140%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-12deg);
}

.gf-dashboard .gf-kpi-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
}

.gf-dashboard .gf-kpi-card__value {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.gf-dashboard .gf-kpi-card__meta {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.35rem;
}

.gf-dashboard .gf-kpi-card__meta-inline {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.gf-dashboard .gf-kpi-card--teal {
  background: linear-gradient(135deg, #1f7e8d 0%, #1a6d86 45%, #1b5f7c 100%);
}

.gf-dashboard .gf-kpi-card--orange {
  background: linear-gradient(135deg, #f0842a 0%, #e66c26 45%, #d85a1f 100%);
}

.gf-dashboard .gf-kpi-card--blue {
  background: linear-gradient(135deg, #2456b2 0%, #1d4f9f 45%, #1a3b82 100%);
}

.gf-dashboard .gf-kpi-card--green {
  background: linear-gradient(135deg, #4f8f46 0%, #3f7c3c 50%, #2f6532 100%);
}

.gf-dashboard .gf-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
  min-height: 220px;
  padding: 1rem 0.4rem 0.35rem;
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.0) 45%);
}

.gf-dashboard .gf-chart::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0.25rem 1.6rem;
  border-radius: 12px;
  background-image: repeating-linear-gradient(
    to top,
    rgba(148, 163, 184, 0.22) 0,
    rgba(148, 163, 184, 0.22) 1px,
    transparent 1px,
    transparent 28px
  );
  pointer-events: none;
}

.gf-dashboard .gf-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  align-self: stretch;
  height: 100%;
  justify-content: flex-end;
}

.gf-dashboard .gf-chart__bar {
  display: block;
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #5aa0e6 0%, #2d6fbe 100%);
  height: 12%;
  box-shadow: 0 8px 18px rgba(45, 111, 190, 0.22);
  transition: height 0.35s ease, transform 0.2s ease;
}

.gf-dashboard .gf-chart__bar:hover {
  transform: translateY(-2px);
}

.gf-dashboard .gf-chart__label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.gf-dashboard .gf-chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.2rem 0.6rem;
}

.gf-dashboard .gf-chart-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gf-dashboard .gf-chart-metric__label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gf-dashboard .gf-chart-metric__value {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.gf-dashboard .gf-chart-metric--muted {
  margin-left: auto;
  text-align: right;
}

.gf-dashboard .gf-activity-list {
  display: grid;
  gap: 0.8rem;
}

.gf-dashboard .gf-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e5eaf3;
}

.gf-dashboard .gf-activity-item:last-child {
  border-bottom: none;
}

.gf-dashboard .gf-activity-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gf-dashboard .gf-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.gf-dashboard .gf-activity-icon--success { background: #38a169; }
.gf-dashboard .gf-activity-icon--info { background: #2b6cb0; }
.gf-dashboard .gf-activity-icon--accent { background: #f6ad55; }
.gf-dashboard .gf-activity-icon--warning { background: #d97706; }

.gf-dashboard .gf-activity-right {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.gf-dashboard .gf-activity-time {
  color: #94a3b8;
}

.gf-dashboard .gf-top-client-list {
  display: grid;
  gap: 0.9rem;
}

.gf-dashboard .gf-top-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e5eaf3;
}

.gf-dashboard .gf-top-client:last-child {
  border-bottom: none;
}

.gf-dashboard .gf-top-client__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gf-dashboard .gf-top-client__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
}

.gf-dashboard .gf-top-client__value {
  font-weight: 700;
  color: #1e293b;
}

.gf-dashboard .gf-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: #1f2937;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: all 0.2s ease;
}

.gf-dashboard .gf-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.gf-dashboard .gf-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.gf-dashboard .gf-tile__icon--orange { background: #f59e0b; }
.gf-dashboard .gf-tile__icon--blue { background: #2563eb; }
.gf-dashboard .gf-tile__icon--slate { background: #475569; }
.gf-dashboard .gf-tile__icon--green { background: #16a34a; }

.gf-dashboard .gf-tile__label {
  font-weight: 600;
}

.gf-card .card-header,
.gf-card-header {
  background: transparent;
  border-bottom: 1px solid var(--gf-border);
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.gf-card .card-body {
  padding: 1.25rem;
}

.gf-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gf-kpi-title {
  color: var(--gf-muted);
  font-size: 0.9rem;
}

.gf-kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gf-text);
}

.gf-kpi-meta {
  font-size: 0.85rem;
  color: var(--gf-muted);
}

.gf-kpi-indicator {
  height: 6px;
  border-radius: 999px;
  background: var(--gf-surface-2);
  overflow: hidden;
}

.gf-kpi-indicator span {
  display: block;
  height: 100%;
  background: var(--gf-primary-400);
}

.gf-progress-35 { width: 35%; }
.gf-progress-50 { width: 50%; }
.gf-progress-65 { width: 65%; }
.gf-progress-80 { width: 80%; }

.gf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.gf-badge--success { background: rgba(22, 163, 74, 0.15); color: var(--gf-success); }
.gf-badge--warning { background: rgba(217, 119, 6, 0.15); color: var(--gf-warning); }
.gf-badge--danger { background: rgba(220, 38, 38, 0.15); color: var(--gf-danger); }
.gf-badge--info { background: rgba(37, 99, 235, 0.15); color: var(--gf-info); }
.gf-badge--accent { background: rgba(201, 162, 39, 0.2); color: var(--gf-accent-500); }
.gf-badge--neutral { background: var(--gf-surface-2); color: var(--gf-muted); border: 1px solid var(--gf-border); }

.gf-session-metric-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-lg);
  box-shadow: var(--gf-shadow-xs);
  padding: 1rem 1.1rem;
}

.gf-session-metric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.gf-session-metric-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gf-muted);
  margin-bottom: 0.25rem;
}

.gf-session-metric-value {
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--gf-text);
}

.gf-session-metric-meta {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--gf-muted);
}

.gf-session-metric-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gf-surface-2);
  border: 1px solid var(--gf-border);
  color: var(--gf-primary-600);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.gf-session-metric-card--entry .gf-session-metric-value {
  color: var(--gf-success);
}

.gf-session-metric-card--entry .gf-session-metric-icon {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.22);
  color: var(--gf-success);
}

.gf-session-metric-card--exit .gf-session-metric-value {
  color: var(--gf-danger);
}

.gf-session-metric-card--exit .gf-session-metric-icon {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.22);
  color: var(--gf-danger);
}

.gf-session-metric-card--balance .gf-session-metric-value {
  color: var(--gf-primary-700);
}

.gf-session-metric-card--balance .gf-session-metric-icon {
  background: rgba(11, 114, 128, 0.12);
  border-color: rgba(11, 114, 128, 0.22);
  color: var(--gf-primary-700);
}

@media (max-width: 767.98px) {
  .gf-session-metric-card {
    padding: 0.95rem 1rem;
  }

  .gf-session-metric-value {
    font-size: 1.2rem;
  }
}

.gf-quick-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gf-quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--gf-radius-md);
  border: 1px solid var(--gf-border);
  background: var(--gf-surface-2);
  color: var(--gf-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.gf-quick-action i {
  font-size: 1.2rem;
  color: var(--gf-primary-500);
}

.gf-quick-action:hover {
  background: var(--gf-surface);
  border-color: rgba(12, 136, 150, 0.35);
  box-shadow: var(--gf-shadow-xs);
}

.gf-list {
  display: grid;
  gap: 0.75rem;
}

.gf-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--gf-border);
}

.gf-list-item:last-child {
  border-bottom: none;
}

.gf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.gf-dot--success { background: var(--gf-success); }
.gf-dot--info { background: var(--gf-info); }
.gf-dot--accent { background: var(--gf-accent-500); }

.gf-chart-placeholder {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.6rem;
  align-items: end;
  height: 180px;
  padding: 0.5rem 0.25rem 0;
}

.gf-chart-placeholder span {
  display: block;
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  background: var(--gf-primary-100);
  height: 12%;
  transition: height 0.3s ease;
}

.gf-chart-bar {
  background: var(--gf-primary-100);
}

.gf-premium .btn-primary {
  background: var(--gf-primary-600);
  border-color: var(--gf-primary-600);
}

.gf-premium .btn-primary:hover,
.gf-premium .btn-primary:focus {
  background: var(--gf-primary-700);
  border-color: var(--gf-primary-700);
}

.gf-premium .btn-outline-secondary {
  border-color: var(--gf-border);
  color: var(--gf-text);
  background: var(--gf-surface);
}

.gf-premium .btn-outline-secondary:hover {
  background: var(--gf-surface-2);
  border-color: var(--gf-border);
}

.gf-premium .dropdown-toggle::after,
.gf-premium .dropup .dropdown-toggle::after,
.gf-premium .dropend .dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: 0.15em;
  width: 0.35rem;
  height: 0.35rem;
  border: 1.5px solid currentColor;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
}

.gf-premium .dropup .dropdown-toggle::after {
  transform: rotate(-135deg);
}

.gf-premium .dropend .dropdown-toggle::after {
  transform: rotate(-45deg);
}

.gf-premium .dropstart .dropdown-toggle::before {
  content: "";
  display: inline-block;
  margin-right: 0.35rem;
  vertical-align: 0.15em;
  width: 0.35rem;
  height: 0.35rem;
  border: 1.5px solid currentColor;
  border-right: 0;
  border-top: 0;
  transform: rotate(135deg);
}

.gf-premium .btn,
.gf-btn {
  border-radius: 999px;
  font-weight: 600;
}

.gf-premium .form-control,
.gf-premium .form-select {
  border-color: var(--gf-border);
  border-radius: var(--gf-radius-md);
  padding: 0.65rem 0.85rem;
}

.gf-premium .form-control:focus,
.gf-premium .form-select:focus {
  border-color: rgba(12, 136, 150, 0.5);
  box-shadow: var(--gf-focus);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

:root {
  --gf-field-icon-size: 1rem;
  --gf-field-icon-offset: 0.85rem;
  --gf-field-padding-left: 2.6rem;
  --gf-field-icon-color: #94a3b8;
}

.form-control.gf-with-icon,
.form-select.gf-with-icon,
textarea.form-control.gf-with-icon {
  padding-left: var(--gf-field-padding-left);
}

.form-select.gf-with-icon {
  padding-right: 2.25rem;
}

.form-select.gf-with-icon[multiple],
.form-select.gf-with-icon[size]:not([size="1"]) {
  padding-right: 0.75rem;
}

.gf-field {
  position: relative;
  width: 100%;
}

.d-flex > .gf-field {
  flex: 1 1 auto;
  min-width: 0;
}

.gf-field .gf-field-icon {
  position: absolute;
  left: var(--gf-field-icon-offset);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gf-field-icon-color);
  font-size: var(--gf-field-icon-size);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.gf-field.gf-field-textarea .gf-field-icon {
  top: 0.85rem;
  transform: none;
}

.form-control:disabled,
.form-select:disabled,
textarea.form-control:disabled {
  background-color: #f1f5f9;
  opacity: 0.9;
}

.invalid-feedback,
.text-danger.small,
.text-danger {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.select2-container .select2-selection--single {
  height: calc(2.25rem + 2px);
  position: relative;
}

.select2-container .select2-selection--single.gf-with-icon {
  padding-left: var(--gf-field-padding-left);
}

.select2-container .select2-selection--single .gf-field-icon {
  position: absolute;
  left: var(--gf-field-icon-offset);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gf-field-icon-color);
  font-size: var(--gf-field-icon-size);
  line-height: 1;
  pointer-events: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0;
}

.select2-container--default .select2-selection--multiple {
  position: relative;
}

.select2-container--default .select2-selection--multiple.gf-with-icon {
  padding-left: var(--gf-field-padding-left);
}

.select2-container--default .select2-selection--multiple .gf-field-icon {
  position: absolute;
  left: var(--gf-field-icon-offset);
  top: 0.85rem;
  color: var(--gf-field-icon-color);
  font-size: var(--gf-field-icon-size);
  line-height: 1;
  pointer-events: none;
}

.input-group .input-group-text .ti {
  font-size: var(--gf-field-icon-size);
  color: var(--gf-field-icon-color);
}

.gf-premium .card,
.gf-premium .modal-content,
.gf-premium .dropdown-menu {
  border-color: var(--gf-border);
  border-radius: var(--gf-radius-lg);
  box-shadow: var(--gf-shadow-xs);
}

.gf-premium .page-header,
.gf-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-lg);
  background: var(--gf-surface);
  box-shadow: var(--gf-shadow-xs);
  margin-bottom: 1.25rem;
}

.gf-premium .page-header .page-title h4,
.gf-premium .page-header .page-title h3 {
  margin: 0;
  color: var(--gf-text);
  font-weight: 700;
  font-size: 1.15rem;
}

.gf-premium .page-header .page-title h6 {
  margin: 0.25rem 0 0;
  color: var(--gf-muted);
  font-size: 0.9rem;
}

.gf-premium .page-header .page-title h6:empty {
  display: none;
}

.gf-premium .table {
  color: var(--gf-text);
}

.gf-table {
  width: 100%;
  color: var(--gf-text);
}

.gf-premium .page-wrapper-new {
  background: var(--gf-surface);
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-lg);
  box-shadow: var(--gf-shadow-xs);
  padding: 1.25rem;
}

.gf-premium .table thead th {
  background: var(--gf-surface-2);
  color: var(--gf-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--gf-border);
}

.gf-premium .table tbody tr:hover {
  background: rgba(12, 136, 150, 0.05);
}

.gf-premium .badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
}

.gf-premium .modal-header {
  border-bottom: 1px solid var(--gf-border);
}

.gf-premium .modal-footer {
  border-top: 1px solid var(--gf-border);
}

.gf-premium .alert {
  border-radius: var(--gf-radius-md);
  border-color: var(--gf-border);
}

.gf-premium .table-responsive {
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-lg);
  background: var(--gf-surface);
  padding: 0.5rem;
}

.gf-premium .pagination .page-link {
  border-radius: 999px;
  border-color: var(--gf-border);
  color: var(--gf-text);
}

.gf-premium .pagination .page-link:hover {
  background: var(--gf-surface-2);
}

.gf-swal-popup {
  border-radius: 1rem;
  font-size: 0.95rem;
}

.swal2-container {
  z-index: 2000;
}

.bo-shell {
  display: flex;
  min-height: 100vh;
  background: var(--gf-bg);
}

.bo-sidebar {
  width: var(--gf-sidebar-width);
  background: var(--gf-sidebar-bg);
  color: var(--gf-sidebar-text);
  border-right: 1px solid var(--gf-sidebar-border);
  background-image: linear-gradient(180deg, var(--gf-sidebar-grad-start), var(--gf-sidebar-grad-end));
}

.bo-sidebar .brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gf-sidebar-border);
}

.bo-sidebar .brand img {
  max-width: 140px;
  height: auto;
}

.bo-sidebar .nav-link {
  color: var(--gf-sidebar-text);
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
}

.bo-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.bo-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
}

.bo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bo-header {
  background: var(--gf-surface);
  border-bottom: 1px solid var(--gf-border);
  padding: 0.85rem 1.5rem;
}

.bo-content {
  padding: var(--gf-page-padding-y) var(--gf-page-padding-x);
}

.bo-card {
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius-lg);
  background: var(--gf-surface);
  box-shadow: var(--gf-shadow-xs);
}

.bo-table thead {
  background: var(--gf-surface-2);
}

.bo-badge {
  font-size: 0.75rem;
}

@media (max-width: 991.98px) {
  .gf-topbar-main {
    padding: 0 0.75rem;
  }

  .gf-topbar-search {
    max-width: 100%;
  }

  .gf-topbar-logo img {
    height: 28px;
    max-width: 120px;
  }

  .bo-shell {
    flex-direction: column;
  }

  .bo-sidebar {
    width: 100%;
  }
}

body.dashboard-page .header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  border-top: 0 !important;
}

@media (min-width: 992px) {
  body.dashboard-page .main-wrapper:not(.gf-layout) {
    grid-template-rows: 1fr;
  }

  body.dashboard-page .main-wrapper:not(.gf-layout) .page-wrapper {
    grid-row: 1;
  }

  body.dashboard-page .main-wrapper:not(.gf-layout) .sidebar {
    grid-row: 1;
  }
}

body.dashboard-page .main-wrapper:not(.gf-layout) .page-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.dashboard-page .main-wrapper:not(.gf-layout) .page-wrapper .content.container-fluid {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
