body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
}

.topbar {
  background: #ff6a00;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.login-card {
  max-width: 400px;
  margin: 5rem auto;
  background: white;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 12px;
  text-align: center;
}

.login-card input {
  width: 100%;
  padding: 0.75rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-card button {
  padding: 0.75rem 1.5rem;
  background-color: #ff6a00;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.chat-container {
  display: flex;
  height: 90vh;
}

.sidebar {
  width: 25%;
  background: #fff;
  padding: 1rem;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}

.chat-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #eaeff2;
}

#messages {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.ai-message, .user-message {
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  max-width: 80%;
}

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

.user-message {
  background: #ff6a00;
  color: white;
  align-self: flex-end;
}

#chat-form {
  display: flex;
}

#chat-form input {
  flex-grow: 1;
  padding: 0.75rem;
  border-radius: 8px 0 0 8px;
  border: 1px solid #ccc;
}

#chat-form button {
  padding: 0.75rem 1rem;
  background: #ff6a00;
  border: none;
  border-radius: 0 8px 8px 0;
  color: white;
}

/* same base as before... */

#suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  position: absolute;
  width: 100%;
  z-index: 100;
}

#suggestions li {
  padding: 0.5rem;
  cursor: pointer;
}

#suggestions li:hover {
  background-color: #f0f0f0;
}

/* Chat bubble alignment */
.ai-message {
  background: #ffffff;
  align-self: flex-start;
  margin-left: 0;
}

.user-message {
  background: #ff6a00;
  color: white;
  align-self: flex-end;
  margin-right: 0;
  text-align: right;
}

/* Profile popup */
.user-popup {
  position: fixed;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.popup-menu {
  display: none;
  position: absolute;
  top: 2rem;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 0.5rem 1rem;
  z-index: 999;
}

.user-popup:hover .popup-menu {
  display: block;
}
