body {

    font-family: Arial, Helvetica, sans-serif;

    margin: 25px;

    background-color: white;

    color: black;

    transition:
        background-color 0.3s,
        color 0.3s;
}

h1,
h2,
h3 {

    margin-bottom: 10px;
}

/* =========================
   HEADER
========================= */

.headerBar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;
}

#themeButton {

    padding: 8px 14px;

    cursor: pointer;

    border: 1px solid #cccccc;

    border-radius: 4px;

    background: #f5f5f5;

    color: black;

    transition:
        background-color 0.3s,
        color 0.3s,
        border-color 0.3s;
}

/* =========================
   SELECT
========================= */

select {

    min-width: 700px;

    padding: 8px;
}

/* =========================
   CHART
========================= */

#chartContainer {

    width: 100%;

    height: 400px;
}

canvas {

    width: 100% !important;

    height: 100% !important;

    max-width: 100%;
}

/* =========================
   TABLES
========================= */

table {

    width: 100%;

    border-collapse: collapse;

    margin-top: 10px;

    background-color: white;
}

th,
td {

    border: 1px solid #cccccc;

    padding: 8px;

    text-align: center;

    color: black;
}

th {

    background-color: #efefef;

    position: sticky;

    top: 0;
}

.timeout-row {

    background-color: #ffd6d6;
}

.timeout-cell {

    font-weight: bold;

    color: #b00000;
}

#pathTable {

    display: block;

    max-height: 600px;

    overflow-y: auto;
}

/* =====================================
   DARK MODE
===================================== */

body.dark {

    background-color: #121212;

    color: #e0e0e0;
}

body.dark #themeButton {

    background-color: #2f2f2f;

    color: #e0e0e0;

    border-color: #555555;
}

body.dark table {

    background-color: #1f1f1f;
}

body.dark th {

    background-color: #303030;

    color: #ffffff;

    border-color: #555555;
}

body.dark td {

    background-color: #1f1f1f;

    color: #e0e0e0;

    border-color: #444444;
}

body.dark select {

    background-color: #2a2a2a;

    color: #e0e0e0;

    border-color: #555555;
}

/* =========================
   RANGE BAR
========================= */

.rangeBar {

    margin-top: 15px;

    margin-bottom: 15px;

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.rangeButton {

    padding: 6px 12px;

    cursor: pointer;

    border: 1px solid #999;

    border-radius: 4px;

    background: #f5f5f5;
}

.rangeButton.active {

    background: #4a90e2;

    color: white;
}

body.dark .rangeButton {

    background: #2f2f2f;

    color: #e0e0e0;

    border-color: #555;
}

body.dark .rangeButton.active {

    background: #4a90e2;

    color: white;
}

#rangeInfo {

    margin-left: 15px;

    font-style: italic;
}
