.chat-container {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(25, 25, 112, 0.08);
  min-height: 400px;
  max-height: calc(100vh - 350px);
  overflow-y: auto;
  border-radius: 12px;
  padding: 24px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.message {
  display: flex;
  gap: 12px;
  animation: messageFadeIn 0.3s ease-out;
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.message.user .message-avatar {
  background: rgba(25, 25, 112, 0.1);
  color: #191970;
}

.message.assistant .message-avatar {
  background: rgba(25, 25, 112, 0.15);
  color: #191970;
}

.message-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(25, 25, 112, 0.08);
  padding: 16px;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.6;
  color: #1f2937;
  font-size: 14px;
}

.message.user .message-content {
  background: rgba(25, 25, 112, 0.1);
  color: #191970;
  font-weight: 500;
}

.message-content pre {
  background: rgba(25, 25, 112, 0.05);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
  font-size: 13px;
}

.message-content code {
  background: rgba(25, 25, 112, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.message-content ul,
.message-content ol {
  margin: 8px 0;
  padding-left: 24px;
}

.message-content li {
  margin: 4px 0;
}

.typing-indicator {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.typing-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(25, 25, 112, 0.08);
  border-radius: 12px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #191970;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.chat-input-container {
  position: sticky;
  bottom: 0;
  background: rgba(249, 250, 251, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(25, 25, 112, 0.08);
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(25, 25, 112, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  color: #1f2937;
  max-height: 150px;
  overflow-y: auto;
  line-height: 1.5;
}

.chat-input::placeholder {
  color: #9ca3af;
}

.send-button {
  width: 40px;
  height: 40px;
  border: none;
  background: #191970;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
  background: rgba(25, 25, 112, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 25, 112, 0.3);
}

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

.suggestion-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(25, 25, 112, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-card:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(25, 25, 112, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 25, 112, 0.1);
}

.suggestion-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 25, 112, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.suggestion-text {
  flex: 1;
}

@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-header {
  animation: fadeInDown 0.6s ease-out;
}

#suggestions-container.hidden {
  display: none;
}

@media (max-width: 768px) {
  .chat-container {
    min-height: 300px;
    max-height: calc(100vh - 300px);
    padding: 16px;
  }
  
  .message-content {
    max-width: 90%;
    font-size: 13px;
    padding: 12px;
  }
  
  .suggestion-card {
    padding: 12px;
  }
  
  .suggestion-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

