body {
  font-family: Arial, sans-serif;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  /* height: 100vh; */
  margin: 0;
  background-color: #f4f4f9;
}

#analysis-title {
  font-size: 36px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-left: 20px;
  margin-right: 20px;
}

#section-title {
  font-size: 32px;
  color: #333333da;
  padding-left: 20px;
}

#analysis-section {
  margin: 20px auto;
  padding: 10px;
  width: 95%;
  border-radius: 25px;
  background-color: #f6f6f8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#analysis-section-title {
  font-size: 26px;
  font-weight: bold;
  color: #333333da;
  padding-left: 10px;
  padding-bottom: 5px;
}

#analysis-section-text {
  font-size: 15px;
  line-height: 1.5;
  color: #0000009a;
  padding-left: 20px;
  padding-top: 15px;
  padding-bottom: 10px;
  /* border-bottom: 1px solid #eee; */
}

/* #infoContainer {
  margin: 20px auto;
  width: 95%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 20px;
  overflow: hidden;
} */

#performanceTable {
  width: 95%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 14px;
  background-color: white;
}

#performanceTable th, #performanceTable td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid #eee;
}

#performanceTable th:first-child, #performanceTable td:first-child {
  text-align: left;
  padding-left: 20px;
}

#performanceTable th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
}

#performanceTable tbody tr:hover {
  background-color: #f8f9fa;
}

#performanceTable td {
  color: #444;
}

/* Color coding for positive/negative returns */
#performanceTable td:not(:first-child) {
  font-family: monospace;
}

#performanceTable td[data-value^="-"] {
  color: #dc3545;
}

#performanceTable td[data-value="N/A"] {
  color: #6c757d;
}

#performanceTable td:not([data-value^="-"]):not([data-value="N/A"]):not(:first-child) {
  color: #28a745;
}

#performanceTable td:not([data-value^="-"]):not([data-value="N/A"]):not(:first-child)::before {
  content: "+";
}

.asset-selector-container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.asset-selector-container p {
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Choices.js custom styles */
.choices {
  margin-bottom: 0;
}

.choices__inner {
  background-color: #fff;
  border: 1px solid #dee2e6;
  min-height: 44px;
  padding: 6px 7.5px 3px;
}

.choices__list--multiple .choices__item {
  background-color: #2c3e50;
  border: 1px solid #2c3e50;
  border-radius: 4px;
  color: #fff;
  margin-bottom: 3px;
  margin-right: 3px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
}

.choices__list--dropdown {
  border: 1px solid #dee2e6;
}

.choices__list--dropdown .choices__item--selectable {
  padding-right: 10px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #f8f9fa;
  color: #2c3e50;
}

.choices__input {
  background-color: transparent;
}

.choices[data-type*="select-multiple"] .choices__button {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0 -4px 0 8px;
  padding-left: 8px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.choices[data-type*="select-multiple"] .choices__button:hover {
  opacity: 1;
  background-color: transparent;
}

/* Add styles for the analyze button */
#analyzeButton {
    width: auto;
    min-width: 200px;
    margin-top: 10px;
    margin-bottom: -15px;
    padding: 8px 8px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.2s;
}

#analyzeButton:hover {
    background-color: #0056b3;
}

#analyzeButton:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Update the class name to match */
.choices-multiple {
  margin-bottom: 0;
  width: 100%;
  position: relative;
}

.choices__list--dropdown {
    position: absolute !important;
    width: 100%;
    z-index: 1000;
    top: 100%;
    margin-top: 1px;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    word-break: break-all;
    will-change: visibility;
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure the input group doesn't interfere with dropdown */
.input-group {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 15px; */
}

.input-group-append {
    position: relative;
    z-index: 0;
    width: auto;
    display: flex;
    justify-content: center;
}

/* Ensure dropdown appears above other elements */
.choices.is-open {
    z-index: 1001;
}

/* Add/update table styles for responsiveness */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.table {
    width: 100%;
    min-width: 800px; /* Minimum width to ensure readability */
    margin-bottom: 0; /* Remove bottom margin as container handles it */
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    white-space: nowrap;
    border-bottom: 1px solid #dee2e6;
}

.table thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 2px solid #dee2e6;
    z-index: 1;
}

/* Add horizontal scroll indicator */
.table-scroll-hint {
    display: none;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

/* Show scroll hint on small screens */
@media (max-width: 800px) {
    .table-scroll-hint {
        display: block;
    }
}

/* Style the scrollbar */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}