/* Naaraa AI Search CSS */

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f7f7fa 0%, #e3eafc 100%);
  margin: 0;
  color: #222;
}
header {
  background: linear-gradient(90deg, #e3eafc 0%, #cfd8fd 100%);
  color: #222;
  padding: 1.5em 1em 1em 1em;
  text-align: center;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
  border-bottom: 1px solid #dbeafe;
}
#searchForm {
  margin-top: 1em;
}
.search-form-flex {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #e94e7733;
  padding: 0.5em 1em;
  margin-top: 1.2em;
}
#searchInput {
  padding-left: 16px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5em;
  width: 60%;
  font-size: 1em;
}
button {
  padding: 0.5em 1em;
  font-size: 1em;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #e94e77;
}
.search-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
}

/* Chat input row and enhancements */
.chat-input-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 4px;
}
.chat-input-row input[type="text"] {
  min-height: 38px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  background: #f7f7fa;
  padding: 8px;
  box-sizing: border-box;
}
.chat-input-row .chat-btn-group {
  display: flex;
  gap: 8px;
}
#chatInput {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  background: #f7f7fa;
  min-height: 36px;
  box-sizing: border-box;
}
#chatSend {
  background: linear-gradient(90deg, #4a90e2 0%, #00b3b3 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(74,144,226,0.10);
  transition: background 0.2s;
  margin-left: 14px;
  min-width: 70px;
}
#chatSend:hover {
  background: linear-gradient(90deg, #00b3b3 0%, #4a90e2 100%);
}
#chatAttach {
  background: #f7f7fa;
  color: #346eeb;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  min-width: 44px;
  padding: 0.5em 0.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}
#chatAttach:hover, #chatAttach:focus {
  background: #e3eafc;
  color: #e94e77;
  border-color: #e94e77;
}
.chat-messages {
  background: #f7f7fa;
  border-radius: 12px;
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 8px;
  padding: 0.5em 0.5em 0.5em 0.5em;
}
.msg-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 12px;
  animation: fadeIn 0.4s;
}
.msg-row.ai {
  flex-direction: row;
  justify-content: flex-start;
}
.msg-row.user {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: 700;
  color: #7f53ac;
  margin: 0 8px;
  box-shadow: 0 2px 8px rgba(127,83,172,0.10);
}
.msg-row.ai .msg-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  color: #222;
  font-size: 1em;
  box-shadow: 0 2px 8px rgba(127,83,172,0.08);
  position: relative;
  word-break: break-word;
  transition: background 0.2s;
}
.msg-row.ai .msg-bubble {
  background: linear-gradient(90deg, #e0e7ff 0%, #fff 100%);
  color: #222;
}
.msg-row.user .msg-bubble {
  background: linear-gradient(90deg, #7f53ac 0%, #00b3b3 100%);
  color: #fff;
}
.msg-timestamp {
  font-size: 0.92em;
  color: #333;
  font-weight: 500;
  margin-top: 4px;
  text-align: right;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 12px 8px;
  height: 32px;
  background: #f3f0ff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(127,83,172,0.10);
  padding: 0 12px;
  z-index: 2;
}
.typing-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4a90e2;
  opacity: 0.7;
  animation: typingBlink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBlink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.main-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  max-width: 1200px;
  margin: 32px auto 0 auto;
  padding: 0 16px;
}
#sidebar {
  flex: 0 0 340px;
  min-width: 280px;
  max-width: 360px;
}
#results {
  flex: 1 1 0;
  min-width: 0;
}

/* --- Instant Search Suggestions --- */
.suggestions-label {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 2px auto;
  font-size: 1.08em;
  color: #346eeb;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.suggestion-box {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 24px #4a90e233;
  border: 1px solid #dbeafe;
  z-index: 10;
  font-size: 1.04em;
  margin-top: 2px;
  display: none;
  text-align: left;
  padding: 4px 0;
}
.suggestion-item {
  padding: 12px 22px 12px 18px;
  cursor: pointer;
  color: #346eeb;
  border-bottom: 1px solid #e3eafc;
  transition: background 0.18s, color 0.18s;
  text-align: left;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.07em;
  letter-spacing: 0.1px;
  background: #fff;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item.selected, .suggestion-item:hover {
  background: #e3eafc;
  color: #e94e77;
}

/* --- Enhanced Result Cards with Site Icons --- */
.social-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px #e3eafc55;
  background: #fff;
  margin-bottom: 24px;
  padding: 18px 22px 14px 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1em;
  font-weight: 600;
  color: #222;
}
.result-favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-right: 6px;
  box-shadow: 0 1px 4px #e3eafc55;
}
.result-title {
  flex: 1 1 auto;
  font-size: 1.1em;
  font-weight: 600;
  color: #346eeb;
  margin-right: 8px;
}
.result-url {
  font-size: 0.98em;
  color: #888;
  font-weight: 400;
}
.result-snippet {
  font-size: 1em;
  color: #333;
  margin: 6px 0 0 0;
}
.result-link {
  font-size: 0.98em;
  color: #e94e77;
  text-decoration: underline;
  margin-top: 4px;
  word-break: break-all;
}
.result-link:hover {
  color: #4a90e2;
}

/* Minimalistic and professional tweaks */
body, .main-flex, #sidebar, #results {
  background: #f7f7fa;
}
#results {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(233,78,119,0.10);
  border: 1px solid #e0e0e0;
  padding: 32px 32px 32px 32px;
}
@media (max-width: 600px) {
  .suggestion-box { font-size: 0.98em; }
  .social-card { padding: 10px 6px; }
}

/* Microphone button styles */
.mic-btn {
  background: none;
  border: none;
  padding: 0.3em 0.3em;
  margin-left: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(74,144,226,0.10);
}
.mic-btn:hover, .mic-btn.active {
  background: #e3eafc;
  box-shadow: 0 2px 8px #4a90e233;
}
.mic-btn svg {
  display: block;
}

/* --- Modern Filters --- */
#filters {
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
  padding-right: 4px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-size: 1.04em;
  flex-wrap: wrap;
  max-width: 100%;
}
.filter-group strong {
  color: #4a90e2;
  min-width: 60px;
}
.filter-item {
  display: inline-block;
  background: #e3eafc;
  color: #346eeb;
  border-radius: 16px;
  padding: 4px 14px;
  margin-right: 6px;
  font-size: 0.98em;
  cursor: pointer;
  border: 1px solid #dbeafe;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.filter-item:hover {
  background: #4a90e2;
  color: #fff;
  border: 1px solid #4a90e2;
}

/* --- Modern Trending Topics --- */
#trending {
  margin-bottom: 28px;
}
#trendingList {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Enhanced Trending Topic Styles */
.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #e3eafc 0%, #f7f7fa 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px #e3eafc55;
  margin-bottom: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
  font-size: 1.08em;
  font-weight: 600;
  border: 1.5px solid #dbeafe;
  animation: fadeIn 0.5s;
  position: relative;
}
.trending-item:hover {
  background: linear-gradient(90deg, #e94e77 0%, #4a90e2 100%);
  color: #fff;
  box-shadow: 0 4px 18px #e94e7733;
  transform: translateY(-2px) scale(1.03);
}
.trending-item .trending-icon {
  font-size: 1.3em;
  color: #e94e77;
  margin-right: 4px;
  flex-shrink: 0;
}
.trending-item:hover .trending-icon {
  color: #fff;
}
.trending-title {
  color: #222;
  font-weight: 700;
  font-size: 1.09em;
  letter-spacing: 0.2px;
  transition: color 0.18s;
}
.trending-item:hover .trending-title {
  color: #fff;
}
.trending-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: #e3eafc;
}
.trending-title {
  color: #222;
  font-weight: 500;
  font-size: 1.05em;
}

/* --- Weather Widget Styles --- */
.weather-widget {
  background: #e3eafc;
  border-radius: 14px;
  box-shadow: 0 2px 8px #4a90e222;
  padding: 16px 18px 12px 18px;
  margin-bottom: 18px;
  text-align: center;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  color: #346eeb;
  margin-bottom: 4px;
}
.weather-city {
  flex: 1;
  text-align: left;
}
.weather-temp {
  flex: 0 0 auto;
  font-size: 1.3em;
  color: #e94e77;
  margin-left: 8px;
}
.weather-desc {
  font-size: 0.98em;
  color: #555;
  margin-top: 2px;
}
footer, .footer {
  background: linear-gradient(90deg, #e94e77 0%, #4a90e2 100%);
  color: #fff;
  border-top: 2px solid #4a90e2;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  margin-top: 48px;
  padding: 2em 0 1.5em 0;
  text-align: center;
  border-radius: 0 0 18px 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.footer .container {
  padding: 0 24px;
}
@media (max-width: 900px) {
  footer, .footer {
    max-width: 98vw;
    border-radius: 0 0 12px 12px;
    padding: 1.2em 0 1em 0;
  }
}
#chatFilePreview {
  background: #f7f7fa;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px #4a90e222;
  margin-bottom: 2px;
  font-size: 1.04em;
  color: #346eeb;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px dashed #dbeafe;
  transition: border-color 0.2s;
}
#chatFilePreview.dragover {
  border-color: #4a90e2;
}
#chatFilePreview img, #chatFilePreview video {
  max-width: 80px;
  max-height: 80px;
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 1px 4px #4a90e222;
}
