body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-color: #d0d0d0;
}
select {
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    color: grey;
    background-color: #f0f0f0;
    font-size: 14px;
}
input[type="color"] {
    width: 50px;
    height: 24px;
    background-color: #f0f0f0;
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    padding: 0px;
}
input[type="number"] {
    width: 40px;
    height: 16px;
    background-color: #f0f0f0;
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    padding: 2px;
    color: grey;
    font-size: 14px;
    font-weight: bold;
}
input[type="text"] {
    width: 60px;
    height: 32px;
    background-color: #e8e8e8;
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    padding: 0px;
    font-size: 14px;
}
p {
    color: #474d56;
    font-size: 13px;
    margin: 0px;
}
h1 {
    color: #1f55a7;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    margin: 3px;
}
h2 {
    color: #1f55a7;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 100%;

    margin: 3px;
}
/* *-------- --------------------------------------*/
/* *--------                Containers            --*/
/* *-------- --------------------------------------*/
.panel {
    background: rgba(240, 240, 240, 0.55);
    backdrop-filter: blur(3px);
    -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;
}
.border-only {
    border: 1px solid rgba(0, 0, 0, 0.25);
}
/* *-------- --------------------------------------*/
/* *--------                 BUTTONS             --*/
/* *-------- --------------------------------------*/
.iconbutton {
    background: transparent;

    border: none;

    background-repeat: no-repeat;
    background-size: 100%;

    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}
.iconbutton:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}
.iconbutton:active {
    transform: scale(1.05) translateY(2px);
}
.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);
}
/* *-------- --------------------------------------*/
/* *--------                 LABELS              --*/
/* *-------- --------------------------------------*/
.tooltip {
    pointer-events: none;

    padding: 4px 8px;
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);

    font-family: system-ui, sans-serif;
    font-size: 12px;
    color: #2d2f31;
    font-weight: 600;

    z-index: 9999;
}

/* *-------- --------------------------------------*/
/* *--------            SVG        ----------------*/
.generator {
    stroke: #00a0ff;
    stroke-width: 1px;
    fill: #00a0ff40;

    pointer-events: visiblePainted;
}
.generator:hover {
    stroke-width: 3px;
}
.generator:active {
    fill: #ffffff80;
}
.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: #00d05a00;
    fill: #ffff0000;

    cursor: pointer;
}
.fhandle:hover {
    stroke: #00d05a;
    fill: #ffff0060;
}
.fhandle:active {
    fill: #ffffff90;
}
.sua {
    stroke: #ff2a00;
    stroke-width: 1px;
    fill: red;
    fill-opacity: 0.15;
    cursor: pointer;
    shape-rendering: geometricPrecision;
    transition:
        stroke 0.15s,
        fill 0.15s;
}
.sua:hover {
    fill: #ffff8080;
}
.sua:active {
    fill: #ff808080;
}
.shandle {
    stroke: #00d05a00;
    fill: #ffff0000;
    cursor: pointer;
}
.shandle:hover {
    stroke: #ff0000;
    fill: #ffffff60;
}
.shandle:active {
    fill: #ffffff90;
}
.ahandle {
    stroke: #3b1e0000;
    stroke-width: 1px;
    fill: #ff800000;
    pointer-events: visiblePainted;
}
.ahandle:hover {
    stroke: #3b1e0080;
    stroke-width: 1px;
    fill: #ff800030;
}
.ahandle:active {
    fill: #ffffff80;
}
/* ============================
   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;
}

.list-item {
    cursor: pointer;
    border: 1px solid #bdc1c9;
    background-color: rgba(218, 220, 225, 0.6);
    color: #262626;
    font-size: 12px;
    padding: 2px 2px;
}
.list-item:hover {
    background-color: #1faa92;
    color: #ffffff;
}
.list-item:active {
    transform: translateY(2px);
}
.list-item-selected {
    background-color: #ffff0040;
    font-weight: bold;
}

/* ============================
   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: 12px;
    font-weight: 400;
}
/* *-------- --------------------------------------*/
/* *--------                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);
}
