:root {
    --primary: #007bff;
    --bg: #ffffff;
    --text: #333;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: system-ui, sans-serif;
    overflow: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #222;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

nav a {
    color: #ccc;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    cursor: pointer;
}

nav a.active {
    color: white;
    font-weight: bold;
    border-bottom: 2px solid var(--primary);
}

#lang-switcher {
    margin-left: auto;
    color: #ccc;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 12px;
}

#lang-switcher:hover {
    color: white;
    border-color: #888;
}

.view {
    display: none;
    width: 100vw;
    height: calc(100vh - 50px);
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.view.active {
    display: flex;
}

.controls {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

#calibration-card {
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chart-row {
    padding: 40px 0;
    border-bottom: 1px solid #f9f9f9;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.acuity-header {
    font-size: 1.4em;
    font-weight: bold;
    color: #d9534f;
    margin-bottom: 20px;
}

.e-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.e-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.duochrome-split {
    display: flex;
    width: 100%;
    height: 100%;
}

.side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="range"] {
    width: 150px;
    height: 6px;
    cursor: pointer;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

input[type="number"] {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
