:root {
  --primary-color: #2d5d7b;
  --secondary-color: #e9f5db;
  --accent-color: #4CAF50;
  --light-color: #f5f5f5;
  --dark-color: #333;
  --border-color: #ddd;
  --highlight-color: #DCF8C6;
  --bot-message-color: #f1f0f0;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

header .container {
  display: flex;
  align-items: center;
}

#logo {
  height: 50px;
  margin-right: 20px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 500;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.chatbot-container {
  display: flex;
  height: calc(100vh - 180px);
  min-height: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: white;
  margin-bottom: 2rem;
}

.products-panel {
  width: 30%;
  background-color: var(--light-color);
  padding: 1.5rem;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
}

.chat-panel {
  width: 70%;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.chat-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}

.chat-input input {
  flex-grow: 1;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  font-size: 1rem;
}

.chat-input input:focus {
  border-color: var(--accent-color);
}

.chat-input button {
  margin-left: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}

.chat-input button:hover {
  background-color: #3d8b40;
}

.message {
  margin-bottom: 1rem;
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-message {
  background-color: var(--highlight-color);
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.bot-message {
  background-color: var(--bot-message-color);
  margin-right: auto;
  border-bottom-left-radius: 0;
}

.category-item, .product-item {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.category-item:hover, .product-item:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

.category-item.active, .product-item.active {
  background-color: rgba(76, 175, 80, 0.2);
  font-weight: 500;
}

.highlighted {
  color: var(--accent-color);
  font-weight: 500;
}

@media (max-width: 768px) {
  .chatbot-container {
    flex-direction: column;
    height: auto;
  }
  
  .products-panel, .chat-panel {
    width: 100%;
  }
  
  .products-panel {
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .chat-messages {
    height: 400px;
  }
}
