/* style.css */

/* Overall Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: #f5f5f5;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 10px;
  color: #000000;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 1000;
}
.sidebar .header {
  font-weight: 600;
  font-size: 1.2em;
  margin: 20px 10px;
  color: #000000;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar ul li {
  margin: 8px 10px;
  padding: 12px 15px;
  cursor: pointer;
  color: #000000;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.sidebar ul li:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Hamburger Menu (mobile) */
.hamburger-menu {
  display: none;
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 1001;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #000000;
  padding: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* Main Chat Layout */
.main {
  margin-left: 260px;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  margin-bottom: 100px;
}
.chat-header {
  font-size: 2em;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin: 20vh 0 30px;
}

/* Chat Input (bottom) */
.chat-box {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  padding: 20px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}
.input-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}
.chat-box textarea {
  width: 100%;
  padding: 12px 45px 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f5f5f5;
  color: #000000;
  font-size: 1em;
  resize: none;
  outline: none;
  height: 48px;
  max-height: 200px;
  line-height: 1.5;
  font-family: inherit;
}
.send-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #e0e0e0;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.send-button:hover {
  background-color: #d0d0d0;
}

/* Messages */
.message {
  max-width: 800px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 8px;
  color: #000000;
}
.user-message {
  background-color: #f5f5f5;
}
.bot-message {
  background-color: #e8e8e8;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  padding: 15px;
  background-color: #e8e8e8;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
}
.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #666;
  border-radius: 50%;
  margin-right: 5px;
  animation: typing 1s infinite;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Mobile/Responsive */
@media (max-width: 768px) {
  .sidebar {
    left: -260px;
    transition: left 0.3s ease;
  }
  .sidebar.active {
    left: 0;
  }
  .hamburger-menu {
    display: flex;
  }
  .main {
    margin-left: 0;
    padding-top: 60px;
  }
  .chat-box {
    left: 0;
    padding: 10px;
  }
  .chat-container {
    padding: 10px;
  }
  .message {
    margin: 10px;
  }
  .chat-header {
    font-size: 1.5em;
    margin: 10vh 0 20px;
  }
  .input-container {
    margin: 0 10px;
  }
}

/* Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.overlay.active {
  display: block;
}

@media (min-width: 769px) {
  .overlay {
    display: none !important;
  }
}
