/* =========================
   GLOBAL LAYOUT
========================= */
body {
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

#all {
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        sans-serif;
    background: #f4f6f8;
    margin: 0;
    /* padding: 0px; */
    color: #1e1e1e;
    overflow: hidden;
    display: flex;
}

#content-wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.container {
    display: flex;
    flex: 1;
    min-height: 0;
    position: absolute;
    inset: 0;
    overflow: auto;
    min-height: 0;
    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}

.container.visible {
    transform: translateY(0);
    opacity: 1;
    z-index: 2;
}

.container.hidden-up {
    transform: translateY(-100%);
    opacity: 0;
    z-index: 1;
}

.container.hidden-down {
    transform: translateY(100%);
    opacity: 0;
    z-index: 1;
}

#container-about {
    background: #f8fafc;
    padding: 24px;
    box-sizing: border-box;
}

#container-about h2,
#container-about h3 {
    margin: 0 0 14px 0;
}

#container-about p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: #333;
}

.form {
    width: 365px;
    margin-left: 10px;
    min-width: 365px;
    max-width: 365px;
    overflow-y: auto;
    max-height: 100%;
    min-height: 0;
    padding-right: 6px;
    padding-bottom: 150px;
    /* Add number before H2 */
    counter-reset: fieldset;
}

.form div label img {
    vertical-align: middle;
    margin-left: 5px;
    cursor: help;
    width: 20px;
    height: 20px;
}

/* =========================
   tooltip
========================= */
.tooltip-text {
    min-width: 200px;
    width: min-content;
    padding: 8px;
    border-radius: 10px;
    font-size: 13px;
    z-index: 9999;
    /* white-space: nowrap; */
    display: none;
    position: fixed;
    pointer-events: none;
    margin-right: 6px;
    margin-left: 6px;
    /* border: 2px solid white; */
    background: #3b3b3b;
    color: white;
    text-align: justify;
    text-justify: auto;
    box-shadow:
        6px 5px 9px -9px black,
        5px 6px 9px -9px black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tooltip-text::after {
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); */
    z-index: 99999;
    content: "";
    position: absolute;
    overflow: hidden;
    top: -5px;
    left: 30px;

    width: 10px;
    height: 10px;
    /* border-top: 2px solid white; */
    /* border-left: 2px solid white; */
    background: #3b3b3b;
    transform: rotate(45deg);
}

/* .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 10%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #292929 transparent transparent transparent;
} */

/* =========================
   help microstrip
========================= */
#help-microstrip-overlay h2 {
    margin: 10px;
}

#help-microstrip-overlay ul {
    margin-left: 20px;
    padding: 0px;
}

#help-microstrip-overlay {
    position: absolute;
    background: #fff;
    top: 20px;
    right: 20px;
    padding: 10px;
    border: 2px solid #c0c0c0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =========================
   left bar
========================= */
#left {
    width: 208px;
    height: 100vh;
    flex-shrink: 0;
    overflow-y: hidden;
    position: relative;
    background: #0d1729;
    /* for collapse button */
    transition: width 0.5s ease;
}

/* collapsed state */
#left.collapsed {
    width: 0;
}

.menu {
    margin: 10px;
    height: 50px;
    border-radius: 10px;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    z-index: 2;
    /* text-align: center; */
}

.menu img {
    vertical-align: middle;
    margin-left: 10px;
    z-index: 10;
}

.menu span {
    color: #c0c0c0;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-left: 30px;
    line-height: 50px;
    z-index: 10;
}

/* moving highlight */
.indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    width: 188px;
    margin-left: 10px;
    background: #1e438a;
    border-radius: 8px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.active span {
    color: white;
}

/* button */
.toggle-btn {
    position: fixed;
    top: 50%;
    /* left must be #left width - this width */
    left: 193px;
    /* same as sidebar width */
    transform: translateY(-50%);

    width: 15px;
    height: 60px;
    background: #1e438a;
    color: white;

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

    border-radius: 6px 0px 0px 6px;
    cursor: pointer;
    z-index: 1000;

    transition: left 0.5s ease;
}

/* move button when collapsed */
#left.collapsed+.toggle-btn {
    border-radius: 0 6px 6px 0;
    left: 0;
}

#left-bottom {
    position: absolute;
    bottom: 10px;
    color: #c0c0c0;
    text-align: center;
    height: 60px;
    width: inherit;
    /*margin-right: auto;
    margin-left: auto;*/
}

#left-bottom>div {
    margin-top: 5px;
}

#left-bottom>div>span {
    font-size: small;
}

/* RIGHT SIDE */
#right {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* TOP BAR */
#top {
    flex-shrink: 0;
}

/* =========================
   Top bar
========================= */
#top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 0px;
    background: white;
    padding: 15px;
    /* border-radius: 10px; */
}

#top h1 {
    margin: 0px 0px 0px 10px;
    font-size: 25px;
}

#top-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    right: 10px;
}

/* =========================
   Top menu
========================= */
.top-menu {
    border: 2px solid #e5e5e5;
    display: block;
    padding: 5px;
    border-radius: 10px;
    margin-right: 10px;
    user-select: none;
    height: 30px;
    width: 30px;
    text-align: center;
    align-content: center;
}

.top-menu-hover:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.top-menu-active:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* =========================
   live button
========================= */
#top-menu-live-div {
    /* padding-left: 8px; */
    position: relative;
    width: fit-content;
    border: none;
    border-radius: 10px;
    background: #4df8ab;
    font-weight: 650;
    cursor: pointer;
    text-align: center;
    /* vertical alignment */
    display: flex;
    align-items: center;
    gap: 6px;
}

#top-menu-live-div label {
    cursor: pointer;
    color: #3a3a3a;
}

#top-menu-live-div input {
    cursor: pointer;
}

/* =========================
   run button
========================= */
#top-menu-run-div {
    /* important for .fill */
    position: relative;
    padding-left: 8px;
    width: 115px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    /* vertical alignment */
    display: flex;
    align-items: center;
    gap: 6px;
}

#top-menu-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #22c55e, #9ac0a8);
    z-index: 0;
    transition: width 0.1s linear;
}

#top-menu-text {
    z-index: 1;
    color: white;
}

.top-menu-run-div-active {
    background: #ff8c42;
    cursor: pointer;
}

.top-menu-run-div-done {
    background: #3b82f6;
    cursor: pointer;
}

.top-menu-run-div-inactive {
    background-color: #cccccc;
    cursor: pointer;
}

/* =========================
   save form
========================= */
/* blur background */
.blurred {
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
}

/* modal overlay */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);

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

    z-index: 1000;
}

.hidden {
    display: none;
}

/* modal box */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin: 0 0 10px 0;
}

.modal-content input[type="text"] {
    width: 90%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #d0d7de;
    outline: none;
    transition: 0.15s;
    background: #fff;
    border-radius: 5px;
}

.modal-content input:focus {
    border-color: #4c8bf5;
    box-shadow: 0 0 0 3px rgba(76, 139, 245, 0.15);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================
   load project
========================= */
#load-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
}

/* each item */
.load-project-radio-item {
    display: block;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    transition: all 0.15s ease;
    width: fit-content;
}

.load-project-radio-item label {
    width: fit-content;
}

/* hover effect */
.load-project-radio-item:hover {
    background: #eaf3ff;
    border-color: #bcd6ff;
    transform: translateY(-1px);
}

/* hide default radio look */
.load-project-radio-item input {
    margin-right: 10px;
    accent-color: #007acc;
    transform: scale(1.1);
}

/* selected state */
.load-project-radio-item:has(input:checked) {
    background: #d9ecff;
    border-color: #007acc;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
}

/* label */
.load-project-radio-item label {
    flex: 1;
    cursor: pointer;
    font-family: sans-serif;
}

/* =========================
   FIELDSET
========================= */

fieldset {
    border: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 10px;
    border-radius: 10px;
    transition: max-height 0.5s ease;
    overflow: hidden;
    margin: 0px 0px 10px 0px;
}

label,
fieldset>div>span:first-child {
    font-size: 13px;
    color: #444;
    margin-left: 10px;
}

form fieldset h2::before {
    counter-increment: fieldset;
    content: counter(fieldset);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

/* Add small arrow after h2 for collapse/expand */
fieldset h2::after {
    content: ">";
    float: right;
    transition: transform 0.3s;
    transform: rotate(90deg);
}

fieldset.collapsed h2::after {
    transform: rotate(0deg);
}

form fieldset h2 {
    margin: 0px 0px 10px 5px;
    font-size: 18px;
    cursor: pointer;
}

form fieldset div {
    margin-left: 6px;
    margin-bottom: 6px;
}

#microstrip-design label {
    display: inline-block;
    width: 210px;
}

#design label,
#design>div>span:first-child {
    display: inline-block;
    width: 190px;
}

#tapering label {
    display: inline-block;
    width: 150px;
}

#disordered label {
    display: inline-block;
    width: 170px;
}

#pump label {
    display: inline-block;
    width: 160px;
}

#signal label {
    display: inline-block;
    width: 160px;
}

#solver-option label {
    display: inline-block;
    width: 130px;
}

#optimization-matched-impedance label {
    display: inline-block;
    width: 180px;
}

/* =========================
   Shape FIELDSET
========================= */
form fieldset h3 {
    margin: 0px 0px 10px 0px;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    padding: 0px 0px 5px 10px;
    background: #2563eb;
}

#div-shape-1,
#div-shape-2,
#div-shape-3,
#div-shape-4 {
    border: 2px solid #2563eb;
    border-radius: 6px;
}

#div-shape-2 {
    margin-left: 12px;
    border-width: 0px;
}

#div-shape-3 {
    margin-left: 18px;
    border-width: 0px;
}

#div-shape-4 {
    margin-left: 24px;
    border-width: 0px;
}


.hidden-max-height {
    max-height: 0px;
    overflow: hidden;
}

.hidden-max-height-trans {
    /*just for the transition, never removed*/
    transition: max-height 0.5s ease;
}

/* collapsed state */
#shape-visible {
    height: 100vh;
    /* height: auto; */
}

.form-info {
    display: none;
}

/* =========================
   FREQUENCY FIELDSET
========================= */
#frequency-smatrix div,
#frequency-gain div,
#solver-option>div {
    display: inline-block;
}

#frequency-smatrix div label,
#frequency-gain div label {
    display: block;
}

/* =========================
   INPUT LAYOUT
========================= */
/* Inputs */
input {
    width: 60px;
    height: 16px;
    padding: 4px 4px;
    border: 1px solid #d0d7de;
    outline: none;
    transition: 0.15s;
    background: #fff;
    border-radius: 5px;
}

input:focus {
    border-color: #4c8bf5;
    box-shadow: 0 0 0 3px rgba(76, 139, 245, 0.15);
}

input:disabled {
    background: #868686;
    color: #ffffff;
}

/* Unit text */
.form-unit {
    display: inline-block;
    font-size: 12px;
    color: #777;
    margin-right: 2px;
}

/* Checkbox alignment */
input[type="checkbox"] {
    transform: scale(1.2);
}

/*
button {
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: inline-block;
  width: 49%;
  margin-top: 6px;
  margin-bottom: 6px;
}

button:hover {
  background: #1d4ed8;
} */

/* =========================
   WARNING
========================= */
.warning {
    position: fixed;
    bottom: 6px;
    right: 6px;
    z-index: 1000;
    background: rgb(215, 120, 120);
    padding: 6px 6px;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 300px;
    text-align: justify;
    font-size: small;
    color: white;
}

.fade-out {
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* =========================
   tabs
========================= */
/* Tabs container */
#plot-tabs {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    margin-left: 10px;
    height: 44px;
}

/* Individual tabs */
#plot-tabs>div::first-child {
    border-radius: 10px 10px 0px 0px;
}

#plot-tabs>div {
    padding: 8px;
    height: 25px;
    min-width: fit-content;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 10px 10px 0px 0px;
    transition: all 0.25s ease;
    text-align: center;
    background: #3b82f6;
}

#plot-tabs>div:hover {
    color: #fff !important;
}

#plot-tabs>div.need {
    background: #ff8c42;
}

#plot-tabs>div.plot-active {
    border-bottom: 1px solid white;
    color: white;
    font-weight: 600;
    padding: 8px;
    /* background-color: #125be2; */
}

#plot-tabs>div:not(.plot-active) {
    height: 14px;
    margin-bottom: -1px;
    color: #060013;
    /* background-color: #1e438a; */
}

/* =========================
   PLOTS
========================= */
.plot-container {
    /* visibility: hidden; */
    border: 1px solid #c0c0c0;
    border-radius: 0px 10px 10px 10px;
    padding: 10px;
    margin-left: 10px;
    display: grid;
    position: relative;
    height: 75%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
}

#plot-simulation,
#plot-optimization {
    flex: 1;
    min-height: 0;
    margin-left: 15px;
    z-index: 1;
}

.plot-y-label {
    writing-mode: vertical-lr;
    text-align: center;
    position: absolute;
    bottom: 50%;
    left: 5px;
    transform: rotate(-180deg);
    z-index: 10;
}

.plot-y2-label {
    writing-mode: vertical-lr;
    text-align: center;
    position: absolute;
    bottom: 50%;
    right: 25px;
    transform: rotate(-180deg);
    z-index: 10;
}

.plot-x-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    text-align: center;
    z-index: 10;
}

.plot-x2-label {
    position: absolute;
    top: 5px;
    left: 50%;
    text-align: center;
    z-index: 10;
}

.plot-coordinates {
    position: absolute;
    bottom: 5px;
    left: 5px;
    text-align: left;
}

.plot-info {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 2;
    border-right: solid 1px #bababa;
    border-bottom: solid 1px #bababa;
    padding: 5px;
    font-size: small;
}

#plot-y-min{
    display: block;
    position:absolute;
    bottom: 10px;
    left: 10px;
    z-index: 100;
    cursor: pointer;
}

.plot-option {
    margin: 10px;
    padding: 10px;
    background: #fffc;
    width: fit-content;
    border: 1px solid #c0c0c0;
    border-radius: 10px;
    position: absolute;
    bottom: 67px;
    right: 5px;
    display: none;
    z-index: 10;
    opacity: 0.25;
    transition: opacity 0.45s ease;
    ;
}

.plot-option:hover {
    opacity: 1;
}

.plot-option h3 {
    font-size: large;
    padding: 0px;
    margin: 0px 0px 10px 0px;
}

.line {
    width: 15px;
    border-top-width: 3px;
    border-top-style: solid;
    padding-bottom: 5px;
    display: inline-block;
}

.solid {
    border-top-color: #1e88e5;
}

.dashed {
    border-top-color: #e53935;
    border-top-style: dashed;
}

#plot-simulation-option-s21-db,
#plot-simulation-option-gain {
    display: none;
}

#plot-simulation-option-s21-db label,
#plot-simulation-option-gain label {
    width: 70px;
    display: inline-block;
}

#plot-simulation-option-currents {
    display: none;
}

#plot-simulation-option-currents label {
    width: 60px;
    display: inline-block;
}

/* =========================
     plot optimized
========================= */
#plot-container-optimization .plot-y-label {
    color: #1f77b4;
}

#plot-container-optimization .plot-y2-label {
    color: #ff7f0e;
}

/* #container-optimization{
  flex-direction: column;
} */

/* =========================
     results
========================= */
.results {
    /* display: flex; */
    background: white;
    border-radius: 10px;
    padding: 10px;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.results h2 {
    display: block;
    margin: 10px 0px 10px 10px;
}

/* .results>div{
  display: flex;
} */
/* =========================
     summary
========================= */
.summary {
    background: white;
    border-radius: 10px;
    padding: 10px;
    /*display: relative;*/
}
#summary-simulation-container {
    display: flex;
    align-items: flex-start; /* align tops */
    gap: 2rem;               /* space between columns */
}

#summary-simulation-performance, #summary-simulation-bandwidth-edges {
    background: #eefaf2;
    padding: 10px;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    width: fit-content;

}

#summary-simulation-performance {
    border-color: #00b6bd;
    text-align: left;
}
#summary-simulation-bandwidth-edges {
    border-color: #005c17;
    text-align: center;
}

#summary-simulation-gain-bandwidth {
    font-size: 1.5em;
    margin: 10px;
    display: block;
    font-weight: bolder;
    color: #007f20;
}
#summary-simulation-performance span{
    font-size: small;
    margin: 2px;
    display: block;
    color: #808080;
}

#summary-simulation-gain-bandwidth {
    font-size: 1.5em;
    margin: 10px;
    display: block;
    font-weight: bolder;
    color: #007f20;
}

#summary-simulation-gain-min-max {
    color: #a9a9a9;
}

#summary-simulation-performance h3, #summary-simulation-bandwidth-edges h3 {
    margin: 0px;
    font-size: small;
}

#summary-simulation-performance h3{
    color: #02a0a6;
}
#summary-simulation-bandwidth-edges h3 {
    color: #007f20;
}

.summary h2 {
    display: block;
    margin: 10px 0px 10px 10px;
}

/* .summary div{
  display: flex; */
/* } */

#summary-optimization .tg {
    border-collapse: collapse;
    border-color: #9abad9;
    border-spacing: 0;
    margin-top: 60px;
}

#summary-optimization .tg td {
    background-color: #ebf5ff;
    border-color: #9abad9;
    border-style: solid;
    border-width: 1px;
    color: #444;
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
    padding: 10px 5px;
    word-break: normal;
}

#summary-optimization .tg th {
    background-color: #409cff;
    border-color: #9abad9;
    border-style: solid;
    border-width: 1px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    overflow: hidden;
    padding: 10px 5px;
    word-break: normal;
}

#summary-optimization .tg .tg-0lax {
    text-align: left;
    vertical-align: top;
}

/* =========================
     results
========================= */
.site-progress-badge {
    position: fixed;
    bottom: 65px;
    left: 6px;

    z-index: 999999;

    background: rgba(187, 16, 16, 0.85);
    color: #ffffff;

    padding: 19px;
    border-radius: 8px;

    font-size: 18px;
    font-weight: bold;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    /* prevents blocking clicks */
    pointer-events: none;

    opacity: 0.9;
}

/* =========================
   custom select
========================= */
.custom-select {
    overflow: hidden;
    padding-top: 15px;
    padding: 0px;
    transition: height 0.25s linear;
    height: 0px;
    width: 100px;
    border: none;
    /* display: flex; */
    /* align-items: center; */
    /* gap: 6px; */
}

.custom-select>div {
    height: 25px;
    /* padding: 6px; */
    text-align: left;
    display: flex;
    align-items: center;
    /* important for fill */
    position: relative;
    cursor: pointer;
}

.custom-select>div>div,
.custom-select-shown>div:not(.custom-select-fill) {
    z-index: 1;
}

.custom-select-shown {
    position: relative;
    height: 30px;
    text-align: left;
    display: flex;
    align-items: center;
    cursor: pointer;

    border: 1px solid #ccc;
    border-radius: 6px;
    /* margin-top: 4px; */
    padding-left: 6px;
}

.custom-select-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* border-radius: 10px; */
    background: linear-gradient(90deg, #1197f0, #184ee2);
    /* background: #22C55E; */
    z-index: 0;
    /* transition: width 0.1s linear; */
}

.custom-select>div {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 4px;
    padding-left: 6px;
}

.custom-select .selected {
    border: 2px solid red;
}

.custom-select .not-selected:hover {
    font-weight: bold;
    border: 1px dashed black;
    /* background-color: #1197f0; */
}

/* =========================
   Optimize fieldset
========================= */

#optimization-parameters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 1px;
}

.parameter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#optimization-parameters label {
    text-align: left;
    font-size: 0.9em;
    flex: 1;
}

#optimization-parameters input[type="checkbox"] {
    flex: none;
    width: min-content;
}

.optimization-button {
    padding: 5px 10px 5px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.optimization-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);

    box-shadow:
        0 4px 5px #3b82f6
}

.optimization-button:active {
    transform: translateY(0px);
    box-shadow:
        0 3px 8px rgba(37, 99, 235, 0.3);
}

 .optimization-button-spinner {
    display: none;
    width: 6px;
    height: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top-color: black;
    
    border-radius: 50%;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}
.optimization-shape, .optimization-pump{
    border: 2px solid #2563eb;
    border-radius: 6px;
}

#optimization-shape-2, #optimization-shape-3{
    display: none;
}

/* =========================
   github
========================= */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    /*background-color: #24292e;
    color: #ffffff;*/
    color: #c0c0c0;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.25s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
}

.github-link:hover {
    background-color: #c0c0c0;
    color: #0d1729;
}

.github-icon {
    flex-shrink: 0;
}


/* .custom-select {
  position: relative;
  width: 220px;
  font-family: sans-serif;
} */

/* .selected {
  padding: 8px;
  border: 1px solid #ccc;
  cursor: pointer;
  background: white;
} */

/* .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: white;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
} */

/* .custom-select.open .dropdown {
  display: block;
} */

/* .option {
  position: relative;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
}

.option:hover {
  background: #f2f2f2;
}

.bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(76, 175, 80, 0.25);
  z-index: 0;
}

.label {
  position: relative;
  z-index: 1;
} */

/* =========================
   RESPONSIVE
========================= */
/* @media (max-width: 1400px) {

  #form {
  width: 245px;
  min-width: 245px;
  max-width: 245px;
  }
  fieldset div {
    display: flex;
    flex-direction: column;
  }

  label {
    width: 100% !important;
    margin-bottom: 4px;
  }

  input {
    width: 100%;
  }

} */

@media (max-width: 900px) {
    form {
        grid-template-columns: 1fr;
    }
}
