@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap");

:root {
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
}

*,
*::before,
*::after {
  font-family: var(--font-body) !important;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
.fa::before,
.fas::before,
.far::before,
.fab::before,
.fa-solid::before,
.fa-regular::before,
.fa-brands::before {
  font-family: "Font Awesome 6 Free" !important;
}

.ti,
.ti::before,
[class^="ti-"],
[class*=" ti-"],
[class^="ti-"]::before,
[class*=" ti-"]::before {
  font-family: "tabler-icons" !important;
}

[class^="icon-"],
[class*=" icon-"],
[class^="icon-"]::before,
[class*=" icon-"]::before {
  font-family: "simple-line-icons" !important;
}

.fa,
.fas,
.fa-solid,
.fa::before,
.fas::before,
.fa-solid::before {
  font-weight: 900 !important;
}

.far,
.fa-regular,
.far::before,
.fa-regular::before {
  font-weight: 400 !important;
}

.fab,
.fa-brands,
.fab::before,
.fa-brands::before {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

h1, h2, h3, h4, h5, h6,
.logo,
.sidebar .nav-section h4,
.sidebar-mini-icon {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
}

.sidebar .nav-item a p,
.sidebar .nav-item a .sub-item {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.navbar .profile-username .fw-bold {
  font-family: var(--font-display) !important;
  font-weight: 700;
}

#global-search-wrapper {
  position: relative;
}

#global-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bs-white, #fff);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  z-index: 9999;
  max-height: 360px;
  overflow-y: auto;
  font-family: var(--font-body) !important;
}

[data-theme="dark"] #global-search-results,
.dark-mode #global-search-results {
  background: #1e2128;
  border-color: #2e3340;
  color: #e0e0e0;
}

.gsr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

[data-theme="dark"] .gsr-item,
.dark-mode .gsr-item {
  border-bottom-color: #2e3340;
  color: #d0d0d0;
}

.gsr-item:last-child {
  border-bottom: none;
}

.gsr-item:hover,
.gsr-item.gsr-active {
  background: #f4f6ff;
  color: #4361ee;
  text-decoration: none;
}

[data-theme="dark"] .gsr-item:hover,
[data-theme="dark"] .gsr-item.gsr-active,
.dark-mode .gsr-item:hover,
.dark-mode .gsr-item.gsr-active {
  background: #2a3050;
  color: #7b9eff;
}

.gsr-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eef0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #4361ee;
  flex-shrink: 0;
}

.gsr-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

[data-theme="dark"] .gsr-icon,
.dark-mode .gsr-icon {
  background: #2a3050;
  color: #7b9eff;
}

.gsr-text {
  flex: 1;
  min-width: 0;
}

.gsr-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsr-section {
  display: block;
  font-size: 0.72rem;
  opacity: 0.55;
  margin-top: 1px;
}

.gsr-highlight {
  background: #fef08a;
  border-radius: 2px;
  padding: 0 1px;
  color: #1a1a1a;
}

[data-theme="dark"] .gsr-highlight,
.dark-mode .gsr-highlight {
  background: #7c6800;
  color: #fff;
}

.gsr-no-results {
  padding: 18px;
  text-align: center;
  opacity: 0.5;
  font-size: 0.85rem;
}

.nav-search .form-control {
  font-family: var(--font-body) !important;
  font-size: 0.875rem;
}

.sidebar .nav-item > a > i,
.sidebar .nav-section i {
  color: inherit;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  margin-right: 6px;
  flex-shrink: 0;
  display: inline-block;
}

.is-hidden {
  display: none !important;
}

.dropdown-search-mobile {
  min-width: 300px;
}

.dropdown-search-body {
  padding: 10px 14px;
}

#global-search-results-mobile {
  position: relative;
  width: 100%;
}

.theme-toggle-btn {
  border: none !important;
}

.online-dot {
  width: 10px;
  height: 10px;
  background-color: green;
  border-radius: 50%;
}

.gsr-no-results-icon {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 5px;
}

.gsr-arrow {
  width: 13px;
  height: 13px;
  opacity: .35;
  flex-shrink: 0;
}
