.ms-ai-search-wrap {
  max-width: 720px;
  position: relative;
  font-family: outfit;
}

.ms-ai-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 16px;
  background: #ffffff; /* white background */
  z-index: 1;
  max-width: 150px;
}

/* Gradient Glow Border */
.ms-ai-search-bar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(
    120deg,
    #ff6b35,
    #f72585,
    #b5179e,
    #7209b7,
    #ff6b35
  );
  background-size: 300% 300%;
  z-index: -1;
  animation: gradientGlow 4s ease infinite;
}

/* White inner background mask effect */
.ms-ai-search-bar::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  background: #ffffff;
  z-index: -1;
}

/* Subtle glow shadow */
.ms-ai-search-wrap:focus-within .ms-ai-search-bar {
  box-shadow: 0 0 20px rgba(247, 37, 133, 0.35);
}


.ms-ai-search-wrap:focus-within .ms-ai-search-bar {
  box-shadow:
    0 0 0 4px rgba(247, 37, 133, 0.15),
    0 12px 40px rgba(247, 37, 133, 0.18);
  transform: translateY(-1px);
  border:1px solid rgba(255, 107, 53, 0.55);
}

.ms-ai-search-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.2;
}

.ms-ai-search-input::placeholder {
  color: #999;
}

/* Suggestions dropdown */
.ms-ai-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(255, 107, 53, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  display: none;
  z-index: 9999;
  min-width:300px;
}

.ms-ai-suggestions.is-open {
  display: block;
}

.ms-ai-suggestion {
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ms-ai-suggestion:first-child {
  border-top: 0;
}

.ms-ai-suggestion:hover,
.ms-ai-suggestion.is-active {
  background: rgba(247, 37, 133, 0.14);
}

.ms-ai-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ms-ai-suggestion .title {
  color: #eaf4ff;
  font-size: 14px;
  font-weight: 700;
}

.ms-ai-suggestion .excerpt {
  color: rgba(234, 244, 255, 0.70);
  font-size: 12.5px;
  line-height: 1.35;
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ms-ai-suggestion .meta {
  color: rgba(234, 244, 255, 0.65);
  font-size: 12px;
  white-space: nowrap;
  margin-top: 2px;
}

.ms-ai-empty {
  padding: 12px 14px;
  color: rgba(234, 244, 255, 0.65);
  font-size: 13px;
}

.ms-ai-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: none; /* default hidden */
}

/* Loading shimmer */
.ms-ai-shimmer-wrap {
  padding: 10px;
}

.ms-ai-shimmer-row {
  padding: 10px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ms-ai-shimmer-row:first-child {
  border-top: 0;
}

.ms-ai-shimmer-line {
  height: 10px;
  border-radius: 999px;
  margin: 8px 0;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.ms-ai-shimmer-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  height: 100%;
  width: 40%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.16) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: msShimmer 1.05s infinite;
}

.ms-ai-shimmer-line.w-70 { width: 70%; }
.ms-ai-shimmer-line.w-95 { width: 95%; }

@keyframes msShimmer {
  0%   { left: -40%; }
  100% { left: 110%; }
}

@keyframes gradientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}