/* Predictive Search Dropdown Styles */
.ai-search-wrapper {
    position: relative;
}

.predictive-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.predictive-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
border-bottom: none;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.predictive-result-item:last-child {
    border-bottom: none;
}

.predictive-result-item:hover {
    background-color: #f5f5f5;
}

.predictive-item-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 4px;
}

.predictive-item-content {
    display: flex;
    flex-direction: column;
}

.predictive-item-title {
    font-weight: bold;
    font-size: 1em;
}

.predictive-item-excerpt {
    font-size: 0.85em;
    color: #666;
}
.predictive-item-label {
    font-size: 0.75em;
    color: #999;
    margin-top: 4px;
}
.predictive-item-label a {
    color: #0073aa;
    text-decoration: none;
}

.ai-fallback-message {
    padding: 15px;
    color: #555;
    background-color: #f9f9f9;
}
.ai-fallback-message a {
    color: #0073aa;
    font-weight: bold;
}


/* Voice Listening Overlay Styles */
#voice-listening-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.voice-listening-ui {
  background: #181818;
  border-radius: 20px;
  padding: 40px 30px;
  width: 90%;
  max-width: 400px;
  color: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mic-icon {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: #e63946;
  font-size: 30px;
  border-radius: 50%;
  z-index: 2;
}
.mic-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #e63946;
  z-index: 1;
  animation: pulse-circle 1.3s infinite;
}
@keyframes pulse-circle {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

#stop-voice-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 48px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  line-height: 1;
}
#stop-voice-btn:hover {
  color: #fff;
}

.mic-text {
    font-size: 24px;
}
.load-6 .letter {
  display: inline-block;
  font-size: 24px;
  color: #fff;
  animation: loadingF 1.6s infinite normal;
}
.l-1 { animation-delay: 0.48s; }
.l-2 { animation-delay: 0.6s; }
.l-3 { animation-delay: 0.72s; }
.l-4 { animation-delay: 0.84s; }
.l-5 { animation-delay: 0.96s; }
.l-6 { animation-delay: 1.08s; }
.l-7 { animation-delay: 1.2s; }
.l-8 { animation-delay: 1.32s; }
.l-9 { animation-delay: 1.44s; }
.l-10, .l-11, .l-12 { animation-delay: 1.56s; }

@keyframes loadingF {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.3; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .voice-listening-ui {
    flex-direction: column;
    text-align: center;
  }
}