body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 24px;
}

.container {
    width: 80%;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #333;
    color: #000000;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.chat-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.message {
  max-width: 49%; 
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 1rem;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal; 
}

.message.left {
  align-self: flex-start;
  background-color: #f1f1f1;
  border-top-left-radius: 0;
}

.message.right {
  align-self: flex-end;
  background-color: #cfe2ff;
  border-top-right-radius: 0;
}

@media (max-width: 768px) {
  .message {
    max-width: 90%;
  }
  
}


.collapse {
  display: none;
}

.collapse.show {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toggle-btn {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.toggle-btn:hover {
  background-color: #e2e6ea;
  cursor: pointer;
}

.toggle-btn .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.toggle-btn.open .arrow {
  transform: rotate(180deg);
}

.positive { background-color: #d4edda; color: #155724; }
.negative { background-color: #f8d7da; color: #721c24; }
.neutral { background-color: #f1f1f1; color: #333; }



    .highlight {
      background-color: #eaf4fc;
      border-left: 5px solid #0d6efd;
      padding: 1rem;
      border-radius: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .equation-box {
      background: linear-gradient(to right, #fff9e6, #fff3cd);
      border-left: 5px solid #ffc107;
      font-family: 'Courier New', Courier, monospace;
      padding: 1.25rem;
      border-radius: 0.5rem;
      margin: 1rem 0;
      text-align: center;
      font-size: 1.2rem;
    }

    .factors-list li::before {
      content: "✔️ ";
    }

    .section-title {
      border-bottom: 3px solid #0d6efd;
      display: inline-block;
      padding-bottom: 0.3rem;
      margin-bottom: 1rem;
    }


.profile-img-container {
  width: 200px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid #dee2e6;
  background-color: #f8f9fa;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.navbar-nav {
  display: flex !important;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: stretch; 
  width: 100%;
}

.navbar-nav .nav-item {
  flex: 1;
  display: flex;
  justify-content: center; 
  align-items: center;    
}

.navbar-nav .nav-link {
  white-space: normal;
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  display: inline-block;
}