:root {
  --primary-color: #5a67d8;
  --secondary-color: #4c51bf;
  --text-color: #333;
  --light-text: #718096;
  --very-light-gray: #f7fafc;
  --light-gray: #edf2f7;
  --medium-gray: #e2e8f0;
  --border-color: #e2e8f0;
  --sidebar-width: 280px;
  --header-height: 64px;
  --footer-height: 84px;
  --border-radius: 8px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: white;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

.chat-container {
  display: flex;
  height: 100vh;
  position: relative;
}

/* Chatbot container styles */
.chatbot-container {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Sidebar styles */
.sidebar {
  width: var(--sidebar-width);
  background-color: #111827;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  color: #e0e0e0;
  flex-shrink: 0;
  z-index: 200;
}

.logo {
  padding: 16px;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.logo i {
  color: #8282f5;
}

.new-chat-btn {
  margin: 0 16px 20px;
  padding: 10px;
  background-color: #4a4ab0;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.new-chat-btn:hover {
  background-color: #5a5ac5;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0 16px;
}

.sidebar-nav ul li {
  margin-bottom: 8px;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #d0d0f0;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sidebar-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.recent-chats {
  margin-top: 24px;
  padding: 0 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.recent-chats h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: #a0a0c0;
  margin-bottom: 16px;
  padding-left: 10px;
}

.recent-chats ul {
  list-style: none;
  padding: 0;
  flex-grow: 1;
}

.more-btn {
  margin-top: 16px;
  color: #a0a0c0;
  background: none;
  border: none;
  text-align: left;
  padding: 10px;
  cursor: pointer;
}

/* Chat area styles */
.chat-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #111827;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #1e293b;
  background-color: #111827;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.upgrade-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upgrade-section span {
  color: #a0a0c0;
  font-size: 14px;
}

.upgrade-btn {
  padding: 6px 12px;
  background: none;
  border: 1px solid #4a4ab0;
  color: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-btn {
  background-color: #4a4ab0;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-message {
  text-align: center;
  margin: auto;
  max-width: 600px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-out;
  opacity: 1;
  transform: translateY(0);
}

.welcome-message.hidden {
  opacity: 0;
  transform: translateY(-20px);
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.welcome-message .bot-icon {
  font-size: 32px;
  color: #8282f5;
  margin-bottom: 16px;
}

.welcome-message h1 {
  font-size: 28px;
  color: white;
  margin-bottom: 16px;
}

.welcome-message p {
  color: #a0a0c0;
  font-size: 16px;
}

.messages-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  max-width: 90%;
}

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

.ai-message {
  align-self: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f2937;
  margin: 0 8px;
  flex-shrink: 0;
}

.message-content {
  background-color: #1f2937;
  padding: 12px 16px;
  border-radius: 12px;
  color: #e0e0e0;
}

.user-message .message-content {
  background-color: #4a4ab0;
}

.chat-input-area {
  padding: 16px;
  border-top: 1px solid #1e293b;
  background-color: #111827;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background-color: #1f2937;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.input-wrapper input[type="text"] {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-size: 14px;
  padding: 8px;
}

.input-wrapper button {
  background: none;
  border: none;
  color: #a0a0c0;
  font-size: 16px;
  padding: 8px;
  cursor: pointer;
}

.send-btn {
  background-color: #4a4ab0 !important;
  color: white !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:disabled {
  background-color: #3a3a80 !important;
  opacity: 0.6;
  cursor: not-allowed;
}

.input-options {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.input-options button {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #a0a0c0;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.suggestion-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 20px;
  max-width: 100%;
  width: 100%;
  transition: all 0.3s ease-out;
  opacity: 1;
  transform: translateY(0);
}

.suggestion-buttons button {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #a0a0c0;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  height: auto;
  min-height: 44px;
  width: 100%;
  transition: all 0.2s ease;
}

.suggestion-buttons button:hover {
  background-color: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
  transform: translateY(-1px);
}

.chat-footer {
  text-align: center;
  color: #a0a0c0;
  font-size: 12px;
  padding: 16px 0;
  border-top: 1px solid #1e293b;
}

.chat-footer a {
  color: #8282f5;
  text-decoration: none;
}

.permanent-disclaimer {
  text-align: center;
  color: #ff9494;
  font-size: 13px;
  padding: 8px 16px;
  margin: 12px auto;
  background-color: rgba(255, 148, 148, 0.1);
  border-radius: 6px;
  max-width: 450px;
  line-height: 1.4;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background-color: #1f2937;
  border-radius: 12px;
  width: fit-content;
  margin-left: 52px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: #8282f5;
  border-radius: 50%;
  animation: typing-dot 1.4s infinite both;
}

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

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

@keyframes typing-dot {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .chatbot-container {
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    display: flex;
    margin-right: 12px;
    z-index: 10;
  }
  
  .chat-area {
    width: 100%;
    margin-left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .upgrade-section span {
    display: none;
  }
  
  .chat-header {
    padding: 12px;
  }
  
  .header-actions {
    gap: 12px;
  }
  
  .chat-input-area {
    padding: 12px;
    position: relative;
    bottom: 0;
  }
  
  .suggestion-buttons {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .suggestion-buttons button:nth-child(n+5) {
    display: none; /* Hide all buttons after the 4th one on tablets */
  }
  
  .input-options {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .welcome-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 90%;
    padding: 16px;
    margin: 0;
  }
  
  .welcome-message .bot-icon {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .permanent-disclaimer {
    font-size: 12px;
    padding: 6px 12px;
    margin: 8px auto;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .suggestion-buttons {
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
    gap: 6px;
    margin-bottom: 8px;
  }
  
  .suggestion-buttons button {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  .suggestion-buttons button:nth-child(n+4) {
    display: none; /* Hide all buttons after the 3rd one on mobile */
  }
  
  .chat-header {
    padding: 8px;
  }
  
  .welcome-message h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .welcome-message p {
    font-size: 14px;
  }
  
  .permanent-disclaimer {
    font-size: 11px;
    padding: 6px 10px;
    margin: 6px auto;
    max-width: 100%;
  }
  
  .message {
    max-width: 95%;
  }
  
  .chat-footer {
    font-size: 10px;
    padding: 8px 0;
  }
} 