:root {
    --background-color: #121212;
    --surface-color: #1a1a1a;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --accent-color: #00f2ea;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

main {
    margin: 0 auto;
    padding: 4em 2em;
}

/* Dataset navigation */
.dataset-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    user-select: none;
}

.dataset-nav h4 {
    color: #000;
    margin: 0;
    font-size: 1.2em;      /* etwas größer */
    font-weight: 700;      /* fetter */
    text-align: center;
    flex-grow: 1;
}

/* Navigation arrows */
.nav-arrow {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.nav-arrow:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

/* Dynamic controls: label left of field */
.bcd-control-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.bcd-control-row label {
    flex: 0 0 40%;
    margin-bottom: 0;
}

.bcd-control-row input {
    flex: 1 1 auto;
}

/* Chart container */
.chart-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 70vh;
}

#myChart {
    width: 100%;
    height: 100%;
}

#custom-x-axis {
    position: relative;
    height: 30px;
    width: 100%;
    pointer-events: none;
}

.custom-x-axis-label {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 700;
}

/* Filebrowser overlay */
#bcd-filebrowser-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#bcd-filebrowser-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

#bcd-filebrowser-dialog {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #000000;
    border-radius: 4px;
    padding: 10px;
    min-width: 600px;
    max-width: 900px;
    max-height: 70%;
    overflow: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#bcd-filebrowser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#bcd-filebrowser-inner {
    font-size: 13px;
}

/* Table from file browser */
.bcd-fb-table {
    width: 100%;
    border-collapse: collapse;
}

.bcd-fb-table th,
.bcd-fb-table td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    font-size: 12px;
}

.bcd-fb-folder-row {
    background: #fafafa;
}

.bcd-fb-folder-link {
    text-decoration: none;
    color: #007bff;
}

.bcd-fb-folder-link:hover {
    text-decoration: underline;
}

/* Make sure picker icons show */
.t3js-element-browser {
    color: #fff;
}

.t3js-element-browser .t3js-icon svg {
    display: block;
}
