body {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(to right, #f0f4f8, #dfe9f3);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
}

/* Logo container above the navbar */
.logo-container {
  text-align: center;
  margin-bottom: 10px;
}

.logo-container img {
  height: 80px; /* Adjust as needed for the logo size */
  width: auto;
}

/* Navbar styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ca8037; /* Background color */
  padding: 10px 20px;
  border-radius: 10px; /* Slight rounding for design consistency */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-title {
  color: white; /* Font color for the title */
  font-size: 20px;
  font-weight: bold;
  margin: 0; /* Remove default margin */
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white; /* Font color for navbar links */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.nav-links a:hover {
  text-decoration: underline; /* Hover effect for better user feedback */
}

/* header {
  width: 100%;
  background-color: #007bff;
  padding: 20px 0;
  text-align: center;
  color: white;
} */

header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: bold;
}

nav a {
  color: white;
  text-decoration: none;
  margin-top: 10px;
  display: block;
}

#chatbox {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

#query {
  width: 100%; /* Ensure the input fills the available space */
  padding: 12px;
  margin-right: 40px; /* Space for the icon */
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #ca8037;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #975b1e;
}

#loading {
  z-index: 2000;
  text-align: center;
  font-style: italic;
  color: #ca8037;
  font-size: 18px;
  display: none; /* Hidden by default */
  margin-bottom: 20px; /* Add space between the spinner and the response */
}

#response {
  margin-top: 20px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Courier", monospace;
  white-space: pre-wrap; /* Ensures text wraps properly */
  border: 1px solid #ddd;
  max-height: 300px; /* Set a maximum height for the box */
  overflow-y: auto; /* Add a vertical scrollbar if content exceeds the height */
  word-break: break-word; /* Break long words to avoid horizontal overflow */
}

/* Simple spinning loader */
.loader {
  border: 4px solid #f3f3f3; /* Light gray border */
  border-top: 4px solid #ca8037; /* Blue color for spinner */
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite; /* Rotate animation */
  margin: 10px auto; /* Center the loader */
}

.chat-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.chat-message.user {
  background-color: #e7f3ff;
  text-align: left;
  border: 1px solid #b3681e;
}

.chat-message.bot {
  background-color: #f0f9e7;
  text-align: left;
  border: 1px solid #ac6218;
}

.chat-message.error {
  background-color: #ffe7e7;
  text-align: left;
  border: 1px solid #dc3545;
}
.timestamp {
  font-size: 12px;
  color: #888;
  margin-left: 5px;
  font-style: italic;
}
/* Tooltip Container */
.tooltip-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
}

#query {
  flex: 1;
  padding: 12px;
  border: 2px solid #ca8037;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.tooltip-icon {
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #ca8037;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tooltip-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

/* .tooltip-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
} */

.close-tooltip {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: bold;
  color: #ca8037;
  cursor: pointer;
  padding: 2px 5px;
}

.close-tooltip:hover {
  color: #c2bbb3;
}

.tooltip-container {
  position: relative;
}
.tooltip-content {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ffffff;
  color: #333333;
  text-align: left;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #dddddd;
  z-index: 1000;
  max-width: 400px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.tooltip-content ul {
  list-style-type: disc;
  margin-left: 20px;
}

.tooltip-content li {
  margin-bottom: 10px;
}

.tooltip-content strong {
  color: #ca8037;
}

/* Optional: Customize the scrollbar for better appearance */
.tooltip-content::-webkit-scrollbar {
  width: 8px;
}

.tooltip-content::-webkit-scrollbar-thumb {
  background: #ca8037;
  border-radius: 4px;
}

.tooltip-content::-webkit-scrollbar-thumb:hover {
  background: #975b1e;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
