/* ============================
   BASE
   ============================ */

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #474d56;
}

select,
input,
textarea,
button {
    font-family: inherit;
}

/* ============================
   FORM ELEMENTS
   ============================ */

select,
input[type="text"],
input[type="number"],
input[type="date"],
textarea {
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid #bdc1c9;
    border-radius: 4px;
    font-size: 13px;
    color: #262626;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #00a6dc;
    box-shadow: 0 0 0 1px #00a6dc inset;
}

select {
    height: 28px;
    padding: 2px 6px;
}

input[type="color"] {
    width: 50px;
    height: 24px;
    padding: 0;
}

input[type="number"],
input[type="date"] {
    width: 48px;
    height: 20px;
    font-weight: 400;
}

input[type="text"] {
    height: 32px;
}

textarea {
    font-size: 12px;
    resize: none;
}

/* ============================
   BUTTONS
   ============================ */

button {
    cursor: pointer;
}

.icon-button {
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: contain;
    border-width: 0px;
    outline: none;
    transition: 0.25s;
    cursor: pointer;
}
.icon-button:hover {
    background-color: cornsilk;
}
.icon-button:active {
    transform: translateY(3px);
}

.standard-button,
.sm-button {
    background-color: #ffffff;
    border: 1px solid #bdc1c9;
    border-radius: 6px;
    color: #00529c;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.standard-button {
    width: 120px;
    height: 26px;
    font-size: 14px;
}

.sm-button {
    font-size: 10px;
    padding: 2px 6px;
}

.standard-button:hover,
.sm-button:hover {
    background-color: #bfdfd7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.standard-button:active,
.sm-button:active {
    transform: translateY(2px);
}

.text-button {
    font-size: 12px;
    background: none;
    border: none;
    color: #00529c;
}

.text-button:hover {
    text-decoration: underline;
}

.image-toggle {
    background-color: #f0f0f0;
    border-style: none;
    width: 34px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.image-toggle:hover {
    border-style: solid;
    border-width: 0px 1px 0px 0px;
    border-color: #999fa8;
}

/* ============================
   CONTAINERS / PANES
   ============================ */

.bordered-pane,
.callout-pane,
.bordered-area {
    background-color: #ffffff;
    border: 1px solid #bdc1c9;
}

.callout-pane {
    border-radius: 12px;
}

.full-page {
    background-color: #f0f0f0;
}
.border-only {
    border: 1px solid #bdc1c9;
}
.info-window {
    background: rgba(240, 240, 240, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    visibility: hidden;
}

.info-window.show {
    visibility: visible;
}

.overlay-window {
    background: rgba(240, 240, 240, 0.1);
    backdrop-filter: blur(2px);
}
.right-border {
    border-right: 1px solid #bdc1c9;
}
.bottom-border {
    border-bottom: 1px solid #bdc1c9;
}
/* ============================
   SELECTABLE LISTS
   ============================ */

.sel-list,
.sel-list2 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sel-list li,
.sel-list2 li {
    cursor: pointer;
    border: 1px solid #bdc1c9;
    background-color: rgba(218, 220, 225, 0.6);
    color: #262626;
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.sel-list li {
    font-size: 12px;
    padding: 4px 6px;
}

.sel-list2 li {
    font-size: 15px;
    padding: 6px;
    height: 36px;
    text-align: center;
}

.sel-list li:hover,
.sel-list2 li:hover {
    background-color: #1faa92;
    color: #ffffff;
}

.sel-list li:active,
.sel-list2 li:active {
    transform: translateY(2px);
}

.list-selected {
    background-color: #7bc466 !important;
    color: #ffffff;
}

/* ============================
   TEXT / LABELS
   ============================ */

.title {
    font-size: 32px;
    color: #00529c;
    font-weight: 700;
}

.small-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #474d56;
}

.med-title {
    font-size: 16px;
    font-weight: 700;
    color: #888d97;
}

.std-label,
.sm-label,
.italic-small {
    color: #474d56;
}

.unit-label {
    font-size: 13px;
    color: #00529c;
}

.sm-label {
    font-size: 12px;
}

.italic-small {
    font-size: 12px;
    font-style: italic;
}

.editor-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6f7379;
}

.editor-edit {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: #262626;
}

.section-header {
    background-color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    color: #00529c;
    text-align: center;
}

.big-text {
    font-size: 36px;
    font-weight: 700;
    color: #888d97;
}
.med-text {
    font-size: 22px;
    font-weight: 700;
    color: #888d97;
}

.uw-title {
    font-size: 24px;
    font-weight: 700;
    color: #00529cc0;
}
.uw-line {
    font-family: "Fira Code", "Source Code Pro", "Inconsolata", "Courier Prime", monospace;
    font-size: 15px;
    color: #808080;
}

/* ============================
   TOOLTIP
   ============================ */

.lbl-tooltip {
    pointer-events: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 600;
    color: #e8e8e8;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 9999;
}

.lbl-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* *-------- --------------------------------------*/
/* *--------                 Top Toggles          --*/
/* *-------- --------------------------------------*/
.top-toggle-on {
    background-color: white;
    color: #00529c;
    font-weight: bold;
    border-style: solid;
    border-width: 1px;
    border-color: lightgrey;
    border-radius: 0px 0px 12px 12px;
    font-size: 16px;
}
.top-toggle-off {
    background-color: #dadce1;
    color: #5f6c7f;
    border-style: none;
    border-radius: 0px 0px 12px 12px;
    font-size: 16px;
}
.top-toggle-off:hover {
    color: black;
    font-weight: bold;
}
.top-toggle-off:active {
    transform: translateY(3px);
}
/* *-------- --------------------------------------*/
/* *--------                course plates --*/
/* *-------- --------------------------------------*/
.course-plate {
    background: transparent;
}
.course-plate:hover {
    border-style: solid;
    border-width: 2px;
    border-color: #f4793b;
}
.course-plate:active {
    border-color: red;
    background-color: #ffffff60;
}
/* *-------- --------------------------------------*/
/* *--------                 SVG                 --*/
/* *-------- --------------------------------------*/
.timeline-handle {
    stroke: #474d56;
    stroke-width: 1px;
    fill: #ffff3060;
}
.timeline-handle:hover {
    stroke-width: 2px;
}

/* ============================
   CONTEXT MENU ITEM
   ============================ */

.menu-item {
    background-color: rgba(255, 255, 255, 0.85);
    color: #565656;

    font-family: system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;

    padding: 2px 4px 4px;
    text-align: left;

    border: 1px solid #bdc1c9;
    border-radius: 4px;

    cursor: pointer;
    user-select: none;

    transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.menu-item:hover {
    background-color: #006eb0;
    color: #ffffff;
}

.menu-item:active {
    transform: translateX(2px);
}
/* ============================
   MESSAGE BOARD — LIGHT MODE
   ============================ */

.message-board {
    position: absolute;
    pointer-events: none; /* messages should not eat clicks */
}

.msg-row {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;

    padding: 4px 4px 4px px;
    border-radius: 6px;
    margin-bottom: 2px;

    background: rgba(245, 245, 245, 0.25);
    color: #202020;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.msg-accent {
    width: 4px;
    height: 100%;
    margin-right: 8px;
    border-radius: 2px;
}

/* Severity accents */
.msg-ui .msg-accent {
    background: #808080;
}

.msg-ac .msg-accent {
    background: #2f6fd6;
}

.msg-warn .msg-accent {
    background: #c28b00;
}

.msg-error .msg-accent {
    background: #b00020;
}

.msg-text {
    font-size: 14px;
    font-weight: 400;
}

/* Inputs (text, number, DMS fields) */
.editor-input {
    width: 80px;

    font-size: 13px;
    font-family: system-ui, sans-serif;

    border: 1px solid #b4b4b8;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #2d2f31;

    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.editor-input:focus {
    outline: none;
    border-color: #00a0ff;
    box-shadow: 0 0 0 1px #00a0ff inset;
}
