
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --background-color: #131314;
  --surface-color: #1e1f20;
  --surface-hover: #2d2e30;
  --text-primary: #e3e3e3;
  --text-secondary: #9aa0a6;
  --border-color: #3c4043;
  --gemini-gradient: linear-gradient(135deg, #4285f4, #9b72cb, #d96570);
  --gemini-gradient-soft: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(155, 114, 203, 0.1), rgba(217, 101, 112, 0.1));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Google Sans', 'Roboto', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #5f6368;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #80868b;
}

/* Message styling */
.message {
  animation: fadeIn 0.3s ease-out;
  max-width: 100%;
}

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

.user-message {
  background-color: #3c4043;
  border-radius: 24px 24px 4px 24px;
  padding: 12px 20px;
  color: white;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
}

.bot-message {
  background-color: transparent;
  border-radius: 4px 24px 24px 24px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 90%;
  word-wrap: break-word;
}

.bot-message p {
  margin-bottom: 0.75rem;
}

.bot-message p:last-child {
  margin-bottom: 0;
}

/* Gemini branding gradient text */
.gemini-gradient-text {
  background: var(--gemini-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Suggestion chips */
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.suggestion-chip {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 280px;
  text-align: left;
}

.suggestion-chip:hover {
  background-color: var(--surface-hover);
  border-color: #5f6368;
  color: var(--text-primary);
}

.suggestion-chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Input area styling */
.input-container {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.input-container:focus-within {
  background-color: #2d2e30;
  border-color: #5f6368;
  box-shadow: 0 0 0 1px rgba(138, 43, 226, 0.3);
}

#message-input {
  color: var(--text-primary);
  font-size: 1rem;
}

#message-input::placeholder {
  color: var(--text-secondary);
}

.send-btn {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.send-btn:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

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

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--gemini-gradient);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Welcome screen */
.welcome-container {
  text-align: center;
  padding: 2rem;
}

.welcome-logo {
  width: 64px;
  height: 64px;
  background: var(--gemini-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

/* Sidebar toggle */
.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  background-color: var(--surface-hover);
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-message,
  .bot-message {
    max-width: 95%;
    font-size: 0.9rem;
  }
  
  .suggestion-chip {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
  
  .welcome-logo {
    width: 48px;
    height: 48px;
  }
}
