body {
    background: #fafafa;
    color: #333333;
    margin-top: 5rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #444444;
}

ul {
    margin: 0;
}

.bg-steel {
    background-color: #1E2A5E;
}

.site-header .navbar-nav .nav-link {
    color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
    color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
    font-weight: 500;
}

.content-section {
    background: #ffffff;
    padding: 10px 20px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    margin-bottom: 20px;
}

.article-title {
    color: #444444;
}

a.article-title:hover {
    color: #428bca;
    text-decoration: none;
}

.article-content {
    white-space: pre-line;
}

.article-img {
    height: 65px;
    width: 65px;
    margin-right: 16px;
}

.article-metadata {
    padding-bottom: 1px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e3e3e3
}

.article-metadata a:hover {
    color: #333;
    text-decoration: none;
}

.article-svg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.account-img {
    height: 125px;
    width: 125px;
    margin-right: 20px;
    margin-bottom: 16px;
}

.account-heading {
    font-size: 2.5rem;
}

.navbar-nav .nav-item.active .nav-link {
  font-weight: bold;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f0f2f5;
  overflow: hidden; /* Prevent scrolling on the body */
}

.flex-container {
  display: flex;
  height: calc(100vh - 56px); /* Adjust this value based on your navbar height */
  padding-top: 56px; /* Add padding to account for the navbar */
}

.chat-container {
  width: 70%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px;
  flex-grow: 1;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: none;
  border: none; /* Remove the border */
  box-shadow: none; /* Remove any box-shadow */
}

.card:hover {
  transform: none;
  box-shadow: none;
}

.card-header {
  background-color: #4a76a8;
  color: white;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
}

.card-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.messages-list {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.message {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.message-logo-container {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  flex-shrink: 0;
}

.message-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.message-text {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 0.95em;
  line-height: 1.4;
}

.sent {
  flex-direction: row-reverse;
}

.sent .message-logo-container {
  margin-right: 0;
  margin-left: 10px;
}

.sent .message-text {
  background-color: #4a76a8;
  color: white;
  border-bottom-right-radius: 4px;
}

.received .message-text {
  background-color: #e4e6eb;
  color: #050505;
  border-bottom-left-radius: 4px;
}

.message-content {
  margin: 0;
  word-wrap: break-word;
}

.message-content p {
  margin: 0 0 8px 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-form {
  display: flex;
  padding: 15px;
  background-color: #f0f2f5;
  border-top: 1px solid #e4e6eb;
}

.message-input {
  flex-grow: 1;
  border: none;
  background-color: white;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 0.95em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  resize: none;
  max-height: 150px;
  overflow-y: auto;
}

.btn-send {
  background-color: #4a76a8;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.supporting-text-card {
  width: 30%;
  background-color: #ffffff;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 20px 20px 20px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 96px); /* Adjust based on your layout */
}

.model-selector {
  margin-bottom: 20px;
}

.model-selector label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.model-selector select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
}

.typing-indicator {
  display: flex;
  padding: 10px;
  background-color: #e4e6eb;
  border-radius: 18px;
  margin-bottom: 15px;
  width: fit-content;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #93959f;
  border-radius: 50%;
  display: inline-block;
  margin: 0 1px;
  opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
  animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
  animation: typing 1s infinite 0.33s;
}

.typing-indicator span:nth-child(3) {
  animation: typing 1s infinite 0.66s;
}

@keyframes typing {
  0% {
    transform: translateY(0px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0px);
    opacity: 0.4;
  }
}

/* Navbar styles */
.navbar {
  background-color: #1E2A5E !important;
  padding: 0.3rem 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.navbar-dark .navbar-nav .nav-link {
  color: #cbd5db !important;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

/* User profile styles */
.navbar-nav .nav-item .nav-link {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item .nav-link img {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border: 2px solid #FFD700;
  margin-right: 8px;
}

/* Logout icon styles */
.logout-icon {
  width: 24px;
  height: 24px;
  filter: invert(83%) sepia(71%) saturate(401%) hue-rotate(358deg) brightness(107%) contrast(107%);
}

.btn-link {
  color: #cbd5db;
}

.btn-link:hover {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-nav {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .navbar-nav.ml-auto {
      margin-top: 10px;
  }
}
