/* ============================
   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;
}
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;
}

.panel {
    background: rgba(240, 240, 240, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.handle {
    stroke: #00a0ff; /* cyan accent */
    stroke-width: 2px;
    fill: rgba(0, 160, 255, 0.15); /* very soft cyan fill */
    cursor: pointer;
    transition:
        stroke 0.15s,
        fill 0.15s;
}
.handle:hover {
    stroke: #0090ee;
    fill: rgba(0, 160, 255, 0.35);
}
.handle:active {
    stroke: #005fa3;
    fill: rgba(0, 160, 255, 0.45);
}
.fhandle {
    stroke: #cdd1f4; /* cyan accent */
    stroke-width: 2px;
    fill: #ffff0060;
    cursor: pointer;
    transition:
        stroke 0.15s,
        fill 0.15s;
}
.fhandle:hover {
    stroke: #00d05a; /* cyan accent */
}
.fhandle:active {
    fill: #ffffff90;
}
/* *-------- --------------------------------------*/
/* *--------                 TOGGLES              --*/
/* *-------- --------------------------------------*/
.std-toggle-off {
    width: 60px;
    height: 24px;

    background: rgba(255, 255, 255, 0.25); /* lighter than ON */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    border: 1px solid #c9c9c9; /* soft neutral border */
    border-radius: 4px;

    /* very gentle inner highlight, less contrast than ON */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 1px 2px rgba(0, 0, 0, 0.1);

    color: #6f7379; /* muted grey text */
    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    user-select: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}
.std-toggle-off:hover {
    transform: translateX(2px);
}
.std-toggle-off:active {
    transform: translateY(2px);
}
.std-toggle-on {
    width: 60px;
    height: 24px;

    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    border: 1px solid #9cb8d8; /* subtle blue tint border */
    border-radius: 4px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(0, 0, 0, 0.1);

    color: #2a70ff;
    text-shadow:
        0 0 1px rgba(42, 112, 255, 0.55),
        0 0 4px rgba(42, 112, 255, 0.25);

    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.std-toggle-on:hover {
    transform: translateX(2px);
}
.std-toggle-on:active {
    transform: translateY(2px);
}
/* *-------- --------------------------------------*/
/* *--------                MENU     -------------*/
/* *-------- --------------------------------------*/
.menu-item {
    background-color: #ffffffc0;
    color: #202020;
    cursor: pointer;
    font-size: 12px;
    border-width: 1px;
    border-color: #808080;
    text-align: left;
    padding: 1px;
    z-index: 50;
}
.menu-item:hover {
    background-color: #9fcdf3;
    color: black;
}
.menu-item:active {
    transform: translateX(2px);
}
/* ============================
   SELECTABLE LISTS
   ============================ */

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

.sel-list 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-list li:hover {
    background-color: #1faa92;
    color: #ffffff;
}
.sel-list li:active {
    transform: translateY(2px);
}
.list-selected {
    background-color: #7bc466 !important;
    color: #ffffff;
}

/* ============================
   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;
}
