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

/* Fonts and colors */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Header */
header {
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px; /* Adjust this value as needed */
  display: flex;
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Centers content vertically */
  padding: 20px;
  position: relative;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #191970;
  font-weight: 600;
  font-size: 3.2rem;
  /* Adjustments for centering the logo if it is the title */
  position: absolute;
  top: 3px; /* Move up to your preference */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

/* Main content */
main {
  padding: 40px;
}

section {
  margin-bottom: 60px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

p {
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Buttons */
.primary-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.primary-btn:hover {
  background-color: #0056b3;
}

.secondary-btn {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background-color: #007bff;
  color: #fff;
}

/* Forms */
.user-inputs {
  margin-bottom: 20px;
}
.loading-animation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  margin: 0 3px;
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.loading-dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.5; }
}
.user-inputs input,
.user-inputs textarea {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
}

textarea:focus {
  outline: none;
  border-color: #007bff;
}

/* Chat window styles */
.user-message {
  color: #0066CC;
}

.bot-message {
  color: #333;
}

/* Prefix styles */
.message-prefix {
  font-weight: bold;
}

/* Chat window */
.chat-window {
  height: 600px; /* Adjust height as needed */
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  overflow-y: scroll;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.chat-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px; /* Space between dropdown and chat window */
}

.scenario-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px; /* Space between label and dropdown */
}

.scenario-select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 10px;
}

#user-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 10px;
}

.button-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    margin-top: 20px;
    flex-direction: column;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  main {
    padding: 20px;
  }
}
.bot-message h1, .bot-message h2, .bot-message h3 {
  margin-top: 10px;
  margin-bottom: 5px;
}

.bot-message code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
}

.bot-message pre {
  background-color: #f4f4f4;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonts and colors */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Header */
header {
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px; /* Adjust this value as needed */
  display: flex;
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Centers content vertically */
  padding: 20px;
  position: relative;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #191970;
  font-weight: 600;
  font-size: 3.2rem;
  /* Adjustments for centering the logo if it is the title */
  position: absolute;
  top: 3px; /* Move up to your preference */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

/* Main content */
main {
  padding: 40px;
}

section {
  margin-bottom: 60px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

p {
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Buttons */
.primary-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.primary-btn:hover {
  background-color: #0056b3;
}

.secondary-btn {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background-color: #007bff;
  color: #fff;
}

/* Forms */
.user-inputs {
  margin-bottom: 20px;
}
.loading-animation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  margin: 0 3px;
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.loading-dot:nth-child(3) {
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.5; }
}
.user-inputs input,
.user-inputs textarea {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
}

textarea:focus {
  outline: none;
  border-color: #007bff;
}

/* Chat window styles */
.user-message {
  color: #0066CC;
}

.bot-message {
  color: #333;
}

/* Prefix styles */
.message-prefix {
  font-weight: bold;
}

/* Chat window */
.chat-window {
  height: 600px; /* Adjust height as needed */
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  overflow-y: scroll;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.chat-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px; /* Space between dropdown and chat window */
}

.scenario-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px; /* Space between label and dropdown */
}

.scenario-select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 10px;
}

#user-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 10px;
}

.button-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    margin-top: 20px;
    flex-direction: column;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  main {
    padding: 20px;
  }
}
.user-message, .bot-message {
  margin-bottom: 15px;
}

#cs-chat-window br {
  content: "";
  display: block;
  margin-top: 10px;
}