/* =========================
   Reset default margin and padding
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Body styling
========================= */
body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background-color: #f4f4f4;
}

/* =========================
   Sidebar styling
========================= */
#sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    padding: 30px 20px;
}

#sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease, padding-left 0.3s ease;
}

#sidebar a:hover {
    background-color: #34495e;
    padding-left: 20px;
}

#sidebar a.active {
    background-color: #1abc9c;
    padding-left: 20px;
}

/* =========================
   Content area styling
========================= */
#content {
    margin-left: 270px;
    padding: 40px;
    max-width: 1200px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

@media (min-width: 1200px) {
    #content {
        margin-left: 270px;
        margin-right: auto;
    }
}

/* =========================
   Headings and paragraph styling
========================= */
h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    color: #555;
}

/* =========================
   Buttons
========================= */
.download-btn button,
#resetButton {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.download-btn button:hover,
#resetButton:hover {
    background-color: #34495e;
}

.toggle-btn {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

.toggle-btn:hover {
    background-color: #999;
}

.toggle-btn + .toggle-btn {
    margin-left: 10px;
}

/* =========================
   Download sections
========================= */
.download-section {
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    opacity: 0.8; /* faded older versions */
}

.download-section h2 {
    color: #777;
    font-style: italic;
}

/* Latest update styling */
.download-section.latest-march26-update {
    border: 3px solid #1abc9c;
    background-color: #e0f7f2;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    opacity: 1; /* full opacity */
}

.download-section.latest-march26-update h2 {
    color: #0f8f75;
    font-style: normal;
}

/* =========================
   Graph styling
========================= */
#graph {
    width: 100%;
    height: 600px;
}

#graph-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

canvas {
    border: 1px solid #000;
}

/* =========================
   Results box
========================= */
#results-container {
    width: 250px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 500px;
    overflow-y: auto;
}

#results-container h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
}

#results {
    font-size: 14px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
}

/* =========================
   Dropdown / Select
========================= */
#sample-dropdown {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

/* =========================
   FME-24 Table Styling
========================= */

.survey-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.survey-table th,
.survey-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
}

/* Alternate row background */
.survey-table tr:nth-child(even) {
    background-color: #f8f8f8;
}

/* Header styling */
.survey-table th {
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
    font-weight: 600;
}

/* Highlight entire column on hover */
.highlight-col {
    background-color: rgba(26, 188, 156, 0.2);
    transition: background-color 0.25s ease;
}

/* Tooltip styling */
.column-tooltip {
    position: absolute;
    display: none;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    pointer-events: none;
    z-index: 1000;
    max-width: 260px;
    line-height: 1.4;
    backdrop-filter: blur(2px);
    transition: opacity 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Distinguish columns slightly even when not hovered */
.survey-table td,
.survey-table th {
    border-right: 1px solid #e0e0e0;
}

.survey-table td:last-child,
.survey-table th:last-child {
    border-right: none;
}

/* Make wide tables scrollable horizontally */
.download-section {
    overflow-x: auto;
    width: 100%;
}

/* =========================
   Publications Styling
========================= */
/* Publication list styling */
#content ul {
    list-style: none; /* remove bullets */
    padding: 0;
}

#content li {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 4px solid #1abc9c;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: box-shadow 0.3s;
}

#content li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-link {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.05rem;
}

.publication-link:hover {
    text-decoration: underline;
    color: #1abc9c;
}

.publication-desc {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
}

.publication-desc a {
    color: #1abc9c;
    text-decoration: none;
}

.publication-desc a:hover {
    text-decoration: underline;
}

/* ---------- Layout ---------- */
#plot-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

#graph {
  width: 65%;
  height: 70vh;
  min-width: 500px;
}

#info-box {
  width: 30%;
  height: 70vh;
  border: 1px solid #ccc;
  padding: 15px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

#info-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.point-hover {
  cursor: pointer;
}

