/* =========================
   Base (Light Mode)
   ========================= */
:root {
    --bg: #ffffff;
    --text: #000080;
    --link: #083D77;
    --hr: #cccccc;
}

/* Classic Netscape-era Dark Mode */
:root.dark {
    --bg: #0e1116;
    --text: #cfd8ff;
    --link: #7aa2f7;
    --hr: #2a2f3a;
}

/* Auto dark mode if no manual choice */
@media (prefers-color-scheme: dark) {
    :root:not(.light):not(.dark) {
        --bg: #0e1116;
        --text: #cfd8ff;
        --link: #7aa2f7;
        --hr: #2a2f3a;
    }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: Times, "Times New Roman", serif;
}

a:link,
a:visited {
    color: var(--link);
}

.company-name {
    font-weight: bold;
}

.company-name .large {
    font-size: 2.2rem;
}

.company-name .medium {
    font-size: 1.4rem;
}

.company-name .small,
footer,
.small-text {
    font-size: 0.85rem;
}

hr {
    border: none;
    border-top: 1px solid var(--hr);
}

.toggle {
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

/*input[type="range"] {*/
/*    width: 100%;*/
/*}*/

button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.form-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.value {
    font-weight: normal;
    /*float: right;*/
}

.history {
    background: #11cccc;
}

.warning {
    background: #fb542b;
}

.warning:hover {
    background: #9e2507;
}

.slider-group {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 20px;
    margin: 30px 0;
}

.slider-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    height: 280px;
    justify-content: space-between;
}

.slider-field .value {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.slider-field label {
    margin-bottom: 12px;
    font-size: 14px;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #ccc;
    border-radius: 3px;
}
/* Vertical slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;       /* this becomes height after rotation */
    height: 40px;
    transform: rotate(-90deg);
    margin: 100px 0;    /* space after rotation */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: #007bff;
    border-radius: 50%;
    margin-top: -11px;   /* aligns thumb with track */
}

input[type="range"] {
    touch-action: none;
}