.overlay_search {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  background: rgba(243, 246, 252, 0.78);
  backdrop-filter: blur(14px);
  padding: 0;
  overflow: auto;
}

.search-v3-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(120, 136, 252, 0.14), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: none;
  overflow: hidden;
}

.search-v3-header {
  padding: 26px 28px 18px;
  border-bottom: 1px solid #edf1f7;
}

.search-v3-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-v3-topbar h5 {
  margin: 0;
  color: #25304d;
  font-size: 22px;
  font-weight: 700;
}

.search-v3-topbar p {
  margin: 4px 0 0;
  color: #667085;
}

.search-v3-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f2f5fc;
  color: #5b6886;
}

.search-v3-form {
  position: relative;
}

.search-v3-inputwrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #dde5f3;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
}

.search-v3-inputwrap i {
  color: #5c69da;
  font-size: 20px;
}

.search-v3-inputwrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #25304d;
  font-size: 28px;
  font-weight: 600;
}

.search-v3-inputwrap input:focus {
  outline: none;
}

.search-v3-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #778399;
  font-size: 13px;
}

.search-v3-body {
  padding: 24px 28px 28px;
}

.search-v3-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.search-v3-summary {
  color: #526079;
  font-size: 14px;
}

.search-v3-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.search-v3-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #dde5f3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #51607b;
  font-size: 13px;
  font-weight: 600;
  transition: .16s ease;
}

.search-v3-filter i {
  color: #5c69da;
}

.search-v3-filter strong {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf2ff;
  color: #4252d6;
  font-size: 11px;
  text-align: center;
}

.search-v3-filter:hover,
.search-v3-filter.is-active {
  border-color: #cfd9f0;
  background: #f6f8ff;
  color: #25304d;
}

.search-v3-results {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.search-v3-group {
  grid-column: span 6;
  border: 1px solid #e8edf7;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
}

.search-v3-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f7;
}

.search-v3-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #25304d;
}

.search-v3-group-title i {
  color: #5c69da;
}

.search-v3-group-title strong {
  display: block;
  font-size: 16px;
}

.search-v3-group-title span {
  display: block;
  color: #7b8699;
  font-size: 12px;
}

.search-v3-group-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f6ff;
  color: #5c69da;
  font-size: 12px;
  font-weight: 600;
}

.search-v3-list {
  padding: 10px;
}

.search-v3-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  color: inherit;
  transition: .16s ease;
}

.search-v3-item:hover {
  background: #f7f9ff;
  color: inherit;
}

.search-v3-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: #eef2ff;
  color: #5c69da;
}

.search-v3-item-body {
  min-width: 0;
  flex: 1 1 auto;
}

.search-v3-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.search-v3-item-title {
  color: #25304d;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-v3-item-subtitle,
.search-v3-item-meta {
  color: #778399;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-v3-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.search-v3-badge.is-secondary { background: #edf1f7; color: #667085; }
.search-v3-badge.is-warning { background: #fff3d6; color: #b7791f; }
.search-v3-badge.is-info { background: #dbf4ff; color: #1178a0; }
.search-v3-badge.is-primary { background: #e6ebff; color: #4252d6; }
.search-v3-badge.is-success { background: #def7ec; color: #1f8f5f; }
.search-v3-badge.is-danger { background: #fee2e2; color: #cf314a; }
.search-v3-badge.is-dark { background: #e5e7eb; color: #374151; }

.search-v3-empty,
.search-v3-loading {
  grid-column: 1 / -1;
  padding: 38px 24px;
  border: 1px dashed #d7dfef;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  color: #6f7c93;
}

@media (max-width: 991.98px) {
  .overlay_search {
    padding: 0;
  }

  .search-v3-header,
  .search-v3-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-v3-inputwrap input {
    font-size: 22px;
  }

  .search-v3-group {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .search-v3-topbar,
  .search-v3-hint,
  .search-v3-item-top,
  .search-v3-group-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-v3-inputwrap {
    padding: 14px 16px;
  }

  .search-v3-inputwrap input {
    font-size: 18px;
  }
}

.search-v3-empty i,
.search-v3-loading i {
  display: block;
  margin-bottom: 12px;
  color: #8b96a9;
  font-size: 28px;
}

@media (max-width: 991.98px) {
  .overlay_search {
    padding: 12px;
  }

  .search-v3-header,
  .search-v3-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .search-v3-inputwrap input {
    font-size: 20px;
  }

  .search-v3-hint {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-v3-group {
    grid-column: 1 / -1;
  }
}

html[data-bs-theme="dark"] .overlay_search {
  background: rgba(2, 6, 23, 0.82);
}

html[data-bs-theme="dark"] .search-v3-shell,
html[data-bs-theme="dark"] .search-v3-inputwrap,
html[data-bs-theme="dark"] .search-v3-group,
html[data-bs-theme="dark"] .search-v3-item,
html[data-bs-theme="dark"] .search-v3-empty,
html[data-bs-theme="dark"] .search-v3-loading {
  background: #111827;
  color: #edf2ff;
  border-color: rgba(146, 163, 194, 0.14);
}

html[data-bs-theme="dark"] .search-v3-title,
html[data-bs-theme="dark"] .search-v3-group-title,
html[data-bs-theme="dark"] .search-v3-item-title,
html[data-bs-theme="dark"] .search-v3-item-top strong {
  color: #edf2ff;
}

html[data-bs-theme="dark"] .search-v3-subtitle,
html[data-bs-theme="dark"] .search-v3-hint,
html[data-bs-theme="dark"] .search-v3-group-meta,
html[data-bs-theme="dark"] .search-v3-item-top span,
html[data-bs-theme="dark"] .search-v3-item-bottom,
html[data-bs-theme="dark"] .search-v3-empty,
html[data-bs-theme="dark"] .search-v3-loading {
  color: #97a3bc;
}

html[data-bs-theme="dark"] .search-v3-inputwrap input {
  color: #edf2ff;
}
