.currency-input {
  width: 150px;
  text-align: right;
  background-color: #333333;
  color: #e0e0e0; /* UPDATED from #a9a9a9 to a lighter gray */
  border: 1px solid #444444;
}

.errorlist {
  color: red;
}

.description-input {
  width: 256px;
}

.button-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.form-group {
  margin-bottom: 15px; /* Add spacing between form groups */
}

.form-group label {
  display: block; /* Make labels take up the full width */
  text-align: left; /* Align labels to the left */
  margin-bottom: 5px; /* Add some space below the label */
  color: #a9a9a9;
}

/* Consider removing width: 100% and using Bootstrap grid instead */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px;
  border: 1px solid #444444;
  border-radius: 4px;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  background-color: #333333;
  color: #a9a9a9;
}

/* Styles for the evaluation table */
.evaluation-table.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px; /* Add some space below the table */
  color: #a9a9a9;
}

.evaluation-table.table th,
.evaluation-table.table td {
  border: 1px solid #444444;
  padding: 8px;
  text-align: left;
}

.evaluation-table.table th {
  background-color: #222222; /* Darker grey for better contrast */
  color: #a9a9a9;
  text-align: center;  /* Center column headers */
}

.evaluation-table.table th:first-child, /* First Column header to make it small */
.evaluation-table.table td:first-child {
  width: 15%;  /* Adjust this value to make it smaller */
}

.evaluation-table.table th:last-child, /* Last Column header to make it small */
.evaluation-table.table td:last-child {
  width: 15%;  /* Adjust this value to make it smaller */
  text-align: center; /* center content for the action columns */
}

/* Styles for the scenario table */
.scenario-table.table {
  width: 100%;
  border-collapse: collapse;
  color: #a9a9a9;
}

.scenario-table.table th,
.scenario-table.table td {
  border: 1px solid #444444;
  padding: 8px;
  text-align: right;
}

.scenario-table.table th {
  background-color: #222222;
  text-align: center;
  color: #a9a9a9;
}

/* Style the last column in scenario data table*/
.scenario-table.table td:last-child {
  text-align: center;
}

/* Styles for the discount rate input */
.input-group-text {
    background-color: #333333; /* Optional: Adjust background color */
    border: 1px solid #444444; /* Optional: Match border color */
    color: #a9a9a9;
}

/* Styles for the help tip */
.help-tip {
  cursor: pointer;
  color: #a9a9a9;
  border: 1px solid #444444;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 5px;
}

/* =================================
   Chat Layout & Structure
   ================================= */
.chat-layout {
    display: flex;
    height: 75vh;
    max-height: 800px;
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.chat-sidebar {
    flex: 0 0 220px;
    max-width: 220px;
    background: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
}

.chat-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-log {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px;
}

/* =================================
   Avatars & Sidebar Elements
   ================================= */
#bot-avatar {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 10px;
}

/* =================================
   Message Bubbles & Wrappers
   ================================= */
.message-wrapper {
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
    max-width: 75%;
}

.bot-message-wrapper {
    align-self: flex-start;
}

.user-message-wrapper {
    align-self: flex-end;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background-color: #3a3a3a;
    color: #f1f1f1;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: #007bff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* =================================
   Input Form & Buttons
   ================================= */
#chat-form-container {
    padding: 10px 20px;
}

#chat-form {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #2c3e50;
    border: 1px solid #4a90e2;
    border-radius: 8px;
    padding: 8px 15px;
    margin-top: 5px;
}

#chat-message-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
}

#chat-message-input::placeholder {
    color: #888;
}

#chat-message-submit {
    border: none;
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color .2s;
}

#chat-message-submit:hover {
    background-color: #0056b3;
}

.chat-buttons-container {
    align-self: flex-start;
    margin-left: 50px;
    /* Aligned with message text */
    margin-top: 8px;
}

.chat-button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color .2s;
}

.chat-button:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Add these new rules to the end of your file */

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-caption {
    margin-top: 10px;
    color: #ccc;
    font-size: 0.9em;
    font-weight: bold;
}