:root {
  --primary-color: #3df4f4;
  --secondary-color: #283939;
  --background-color: #121826; /* Updated */
  --surface-color: #1E293B; /* Control background from image */
  --text-color: #E2E8F0; /* Lighter text */
  --text-muted-color: #94A3B8; /* Muted text from image */
  --accent-color: #3df4f4;
  --border-color: rgba(255, 255, 255, 0.1);
  --success-color: #4CAF50;
  --error-color: #ff4444;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Manrope', 'Inter', sans-serif;
  background-color: #121826; /* Darker background from image */
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

@keyframes suggestionsAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.container {
  width: 100%;
  padding: 30px;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 0;
  animation: fadeIn 0.5s ease-out;
  z-index: 100;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  position: relative;
  z-index: 300;
  background: var(--background-color);
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  color: #e0e0e0;
  font-size: 20px;
  margin: 10px 0;
}
#reset_form button,
#settings-button {
  height: 24px;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
  margin-right: 10px;
}

#reset_form button:hover,
#settings-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

#reset_form button svg,
#settings-button svg {
  width: 24px;
  height: 24px;
}

#settings-button {
  background: transparent;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
  margin-right: 10px
}

#settings-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

#settings-button svg {
  width: 24px;
  height: 24px;
}
#assistant-prompt-wrapper {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 350px;
  z-index: 8000 !important;
  border-right: 1px solid var(--border-color);
  padding: 20px;
  background-color: #0A0F1A; /* Panel background from image */
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
}

#assistant-prompt-wrapper[style*="block"] {
    transform: translateX(0);
}

#close-settings-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 8001;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#close-settings-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  color: var(--error-color);
}

#close-settings {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: transform 0.2s ease;
}

#close-settings:hover {
  transform: scale(1.1);
  color: var(--error-color);
}

@media (max-width: 768px) {
  #assistant-prompt-wrapper {
    width: 100%;
  }
}
#assistant_prompt {
  width: 100%;
  padding: 10px;
  background-color: #1E293B; /* Slightly lighter than panel */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  resize: vertical;
  min-height: 150px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.settings-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
}

.settings-header {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 10px;
  padding-left: 5px;
}

.settings-section {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-title {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-description {
    font-size: 0.85rem;
    color: var(--text-muted-color);
    margin-top: 4px;
}


/* Ensure bottom elements are visible */
#assistant-prompt-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-bottom: 0;
}

#assistant-prompt-wrapper > :last-child {
  margin-bottom: 20px;
}

#model_select {
  width: 15%;
  padding: 5px;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: right;
}

#model_select option {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 5px;
}

#tts_language {
  width: 100%;
  padding: 12px;
  background-color: #1E293B;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
}

#model_select {
  width: 15%;
  padding: 5px;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: right;
}

#tts_language option, #model_select option {
  background-color: var(--surface-color);
  color: var(--text-color);
  padding: 5px;
}

.reset-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-start; /* Align button to the left */
}

.reset-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.reset-button svg {
  width: 16px;
  height: 16px;
}

label {
  color: var(--text-color);
  margin-bottom: 5px;
}
.chat-area {
  flex-grow: 1; /* Ensure it grows within the form */
  overflow-y: auto;
  padding: 20px;
  border-radius: 5px;
  overflow-anchor: none;
  min-height: 0; /* Keep min-height */
}
.message {
  margin-bottom: 20px;
  padding: 10px 15px;
  border-radius: 11px;
  line-height: 1.6;
  clear: both;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message {
  color: #fff;
  background: #302f2f;
  float: right;
  max-width: 80%;
  border: none;
}
.assistant-message {
  background: none;
  color: #e0e0e0;
  float: left;
  max-width: 85%;
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.assistant-message-content {
  background: var(--surface-color);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.input-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px; /* Increased bottom padding to 20px */
  z-index: 2000; /* Middle layer */
  transition: all 0.3s ease-in-out;
  opacity: 1 !important;
  visibility: visible !important;
}

.input-container {
  margin-bottom: 10px;
}

.input-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 7px;
  border-radius: 8px;
}

.model-select-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.model-select-container select {
  width: auto;
  padding: 5px;
  background: #333;
  border: 1px solid #555;
  border-radius: 5px;
  color: #e0e0e0;
  min-width: 150px;
  margin-left: 10px;
}

.web-search-toggle {
  margin-right: 10px;
}

.web-search-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.83em;
}


/* Keep input and suggestions visible when settings are open */
#assistant-prompt-wrapper[style*='block'] ~ #suggestions-container {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999 !important; /* Ensure it stays behind input (2000) and panel (3000) */
}
/* File info styles */
.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.file-info span {
  color: #e0e0e0;
  margin-right: 10px;
}

.remove-file-button {
  background: transparent;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.remove-file-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--error-color);
}

/* Style existing pdf-info to match new file-info class */
#pdf-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

#pdf-info span {
  color: #e0e0e0;
  margin-right: 10px;
}

#remove-pdf {
  background: transparent;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#remove-pdf:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--error-color);
}

.input-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 2001; /* Higher than assistant-prompt-wrapper */
  position: relative;
}

.input-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.input-row {
  display: flex;
  align-items: center;
}
#user_input {
  flex-grow: 1;
  background-color: transparent;
  border: none;
  color: #e0e0e0;
  resize: none;
  max-height: 100px;
  padding: 7px;
  outline: none;
}

#attach-button, #send-button, #start-recording, #stop-recording {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
}

#attach-button svg, #send-button svg {
  width: 24px;
  height: 24px;
  fill: #e0e0e0;
}
@media (max-width: 600px) {
  .container {
    padding: 10px 10px 70px;
  }
  .message {
    max-width: 95%;
  }
  
  .chat-header {
    padding: 0;
  }
  
  #close-settings-button {
    top: 5px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}
.thinking-animation::after {
  content: 'Thinking';
  animation: ellipsis-animation 1.5s infinite;
}

.searching-animation::after {
  content: 'Searching';
  display: inline-block;
  animation: searching-text 2s infinite;
}

@keyframes ellipsis-animation {
  0% { content: 'Thinking'; opacity: 1; }
  25% { content: 'Thinking.'; opacity: 0.6; }
  50% { content: 'Thinking..'; opacity: 0.8; }
  75% { content: 'Thinking...'; opacity: 1; }
}

@keyframes searching-text {
  0% { content: 'Searching'; opacity: 0.4; }
  25% { content: 'Searching.'; opacity: 0.6; }
  50% { content: 'Searching..'; opacity: 0.75; }
  75% { content: 'Searching...'; opacity: 1; }
}

.message ul, .message ol {
  margin-left: 20px;
  margin-bottom: 10px;
}
.message pre {
  background-color: #282c34;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 10px 0;
  position: relative;
  width: 100%;
  padding-top: 45px;
}

.message pre .copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  z-index: 2;
}

.message pre .copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.message code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #e06c75;
  overflow-x: auto;
  max-width: 100%;
}
.message pre code {
  color: inherit;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  white-space: pre-wrap;
}
.message-content {
  white-space: normal;
  word-wrap: normal;
}
.message-content img {
  max-width: 100%;
  height: auto;
}

/* Styles for uploaded images in chat */
.uploaded-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.uploaded-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.message-content pre {
  background-color: #282c34;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}
.message-content code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}
.message table {
  border-collapse: collapse;
  margin: 10px 0;
  border: 1px solid #e0e0e0;
}
.message th, .message td {
  border: 1px solid #e0e0e0;
  padding: 5px;
}
.assistant-message strong {
  color: #e0e0e0;
  font-size: 1em;
}
.message-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.assistant-message {
    position: relative;
    margin-bottom: 20px;
}

.message-buttons {
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
    line-height: 1;
}

.tts-button,
.copy-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    vertical-align: middle;
    line-height: 1;
    margin: 0;
}

.tts-button:hover,
.copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tts-button:active,
.copy-button:active {
    transform: scale(0.9);
}
.flash-message {
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  background-color: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--text-color);
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#pdf-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 5px;
}
#pdf-filename {
  margin-right: 5px;
  word-break: break-all;
  flex-grow: 1;
}
#remove-pdf {
  background: none;
  border: none;
  color: #ff0000;
  cursor: pointer;
  font-weight: bold;
}

#loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
}
.tts-button[data-speaking='true'] {
    background-color: var(--error-color);
}

.tts-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auto-tts-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  width: 100%;
}

.spacer {
  flex-grow: 1;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;  
  height: 22px; 
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.slider.round {
  border-radius: 22px; 
}

.slider.round:before {
  border-radius: 50%;
}

/* Modern Dynamic Tooltip Styling */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--surface-color);
  color: var(--text-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 120px;
  max-width: min(300px, 90vw);
  text-align: center;
}

/* Fix for new chat button tooltip positioned on the right */
#new-chat-button[data-tooltip-position="bottom"]::before {
  left: auto;
  right: 0;
  transform: translateX(0);
  z-index: 15000 !important;
}

#new-chat-button[data-tooltip-position="bottom"]::after {
  left: auto;
  right: 15px;
  margin-left: 0;
  z-index: 15000 !important;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

/* Top position styling */
[data-tooltip-position="top"]::before {
  bottom: calc(100% + 8px);
  transform-origin: center bottom;
}

[data-tooltip-position="top"]::after {
  bottom: calc(100% + 3px);
  border-color: var(--surface-color) transparent transparent transparent;
}

/* Bottom position styling */
[data-tooltip-position="bottom"]::before {
  top: calc(100% + 8px);
  transform-origin: center top;
}

[data-tooltip-position="bottom"]::after {
  top: calc(100% + 3px);
  border-color: transparent transparent var(--surface-color) transparent;
}

/* Active states */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

[data-tooltip-position="top"]:hover::before {
  transform: translateX(-50%) scale(1) translateY(-8px);
}

[data-tooltip-position="bottom"]:hover::before {
  transform: translateX(-50%) scale(1) translateY(8px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  [data-tooltip]::before {
    font-size: 12px;
    padding: 6px 10px;
    max-width: 80vw;
  }
}

#suggestions-container {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background-color);
  z-index: 1500 !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden;
  pointer-events: auto;
}

.welcome-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  padding-top: 4rem;
  text-align: center;
  height: calc(100vh - 140px);
  gap: 2rem;
  overflow-y: auto;
}

.welcome-content {
  margin-bottom: 2rem;
}

.jarvis-logo {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 10px var(--primary-color));
  border-radius: 50%;
}

.welcome-title {
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Manrope', sans-serif;
}

.welcome-subtitle {
  color: var(--text-muted-color);
  font-size: 1.125rem;
  font-weight: 400;
}

.suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .welcome-main {
    padding: 1.5rem;
    padding-top: 3rem;
    gap: 1.5rem;
  }
  
  .jarvis-logo {
    width: 6rem;
    height: 6rem;
  }
  
  .welcome-title {
    font-size: 1.75rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
  }
  
  .suggestions-grid {
    max-width: 600px;
  }
  
  #suggestions-list li {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
}

@media (max-width: 600px) {
  .welcome-main {
    padding: 1rem;
    padding-top: 2rem;
    gap: 0.75rem;
    height: calc(100vh - 200px);
  }
  
  .jarvis-logo {
    width: 4.5rem;
    height: 4.5rem;
  }
  
  .welcome-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .welcome-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .suggestions-grid {
    max-width: 350px;
    gap: 0.4rem;
    max-height: 60vh;
    overflow-y: auto;
  }

  #suggestions-list li {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    line-height: 1.3;
  }
}

@media (max-width: 400px) {
  .welcome-main {
    padding: 0.5rem;
    padding-top: 1.5rem;
    gap: 0.5rem;
    height: calc(100vh - 180px);
  }
  
  .jarvis-logo {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .welcome-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  
  .welcome-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .suggestions-grid {
    max-width: 300px;
    gap: 0.3rem;
    max-height: 50vh;
    overflow-y: auto;
  }

  #suggestions-list li {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
    line-height: 1.2;
  }
}

#suggestions-container h3 {
  color: var(--text-color);
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-weight: 500;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
}

#suggestions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 800px;
}

#suggestions-list li {
  background: var(--secondary-color);
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  display: inline-block;
  pointer-events: auto;
  position: relative;
  z-index: 1501;
}

#suggestions-list li:hover {
  background: rgba(40, 57, 57, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#suggestions-list li:last-child {
  margin-bottom: 0;
}

/* Styles for the main form to enable flex layout */
#query-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden; /* Prevent form overflow */
  position: relative; /* Establish stacking context */
  min-height: 0; /* Add min-height */
}
