/* UNIVERSAL */

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  font-size: 100%;
  font-family: -apple-system, "system-ui", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333447;
  line-height: 1.2;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #708090;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
}

h1, h2, h3, h4, h5 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.1em; }

.split-section {
    margin: 2em 0;
    padding: 0.5em 0;
}

hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 1em 0;
}

/* TYPOGRAPHY */

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

p {
  font-size: 1.125rem;
  font-weight: 200;
  line-height: 1.8;
}

a {
    color: #25537b;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    text-decoration: underline;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 1em;
}

/* Table container styling */
.table-container {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 1.5em 0;
    width: fit-content;
}

.table-container table {
    margin: 0;
}

.table-container th {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--accent-color);
}

.table-container td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    border-left: None;
    border-right: None;
}

.table-container tr:last-child td {
    border-bottom: none;
}

.table-container tr:hover td {
    background-color: var(--background-color);
}

/* Prediction table specific styling */
.prediction-table {
    max-height: 400px;
    overflow-y: auto;
    margin: 1em 0;
    background: white;
    width: fit-content;
    min-width: 50%;
    max-width: 100%;
}

.prediction-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

img {
    max-height: 100%;
    max-width: 100%;
}

details {
    background: none;
    border: none;
    padding: 0.7em;
    margin: 1em 0;
}

details > summary:hover {
    cursor: pointer;
}

details > summary {
    list-style: none;
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 500;
    border-bottom: 2px solid var(--accent-color);
    margin: 0.5em;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary::after {
    content: ' ▼ ';
    float: right;
    font-size: 0.8em;
    color: var(--accent-color);
    margin-top: 0.2em;
    margin-left: 0.2em;
}

details[open] > summary::after {
    content: ' ▲ ';
}

embed {
    width: 100%;
    min-height: 650px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.grid-item-full-width {
    grid-column: span 2;
}

ul > li {
    text-align: left;
}

@media screen and (max-width: 960px) {
  .grid-container{
    display: grid;
    grid-template-columns: auto;
    grid-gap: 10px;
  }
}

.padded {
    padding: 1em 2em;
}

.padded-bottom{
    padding-bottom: 1em;
}

.padded-left {
    padding-left: 2em;
}

.padded-md {
    padding: 0.75em 2em;
}

.padded-sm {
    padding: 0.5em 2em;
}

.padded-xs {
    padding: 0.25em 2em;
}

.padded-top {
    padding-top: 1em;
}

.table-container table thead {
    font-weight: bold;
}

@media only screen and (max-width: 600px) {
  .col {
    display: block;
    width: 100%;
  }
}

@media print {
    .card {
        box-shadow: none;
    }
}

code {
    max-width: 100%;
    white-space: pre-wrap;
}

.nested-list-container {
    padding: 10px;
    max-width: 600px;
}

.nested-list-container ul {
    list-style-type: none;  /* Remove default bullet points */
    padding-left: 20px;      /* Indentation for nested lists */
}

.nested-list-container ul li {
    margin: 8px 0;
    padding: 5px;
    padding-left: 10px;
}

.nested-list-container ul li ul {
    padding-left: 20px;
    margin-top: 8px;
}

.nested-list-container ul li ul li {
    border-left: 1px solid #708090;  /* Accent for nested items */
    margin: 4px 0;
}

h6 {
    color: var(--secondary-color);
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Table scrolling and collapsing */
.scrollable-table {
    max-height: 400px;
    overflow-y: auto;
    margin: 10px;
}

iframe {
    border: 0;
}

.table-preview {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

table {
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Dataset info table specific styling */
.dataset-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 1.5em 0;
    width: fit-content;
}

.dataset-info table {
    margin: 0;
}

.dataset-info td {
    padding: 8px 16px;
}

.dataset-info td:first-child {
    font-weight: 500;
    color: var(--primary-color);
}

/* Report section styling */
.report-section {
    margin: 1em 0 2em 0;
}

.figure-container {
    margin: 1.5em 0;
}

.text-section {
    margin: 1em 0;
}

/* Setting links styling */
.setting-links {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.setting-links li {
    margin: 0.5em 0;
}

.setting-links a {
    display: block;
    padding: 0.75em 1em;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.setting-links a:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}