/* not too much css but js mannnnnnnnnnnnnnnn */
:root {
        --bg: #0f0f13;
        --panel: #1a1a20;
        --accent: #00f2ff;
        --accent2: #ff0055;
        --text: #e0e0e0;
        --text-dim: #888;
        --border: #333;
    }
    *{
        box-sizing: border-box;
        user-select: none;
    }
    body{
        margin: 0;
        padding: 0;
        background-color: var(--bg);
        color: var(--text);
        font-family: 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    header{
        height: 60px;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 10;
    }
    h1{
        font-size: 20px;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0;
        color: var(--accent);
        font-weight: 600;
    }
    .status{
        font-size: 12px;
        color: var(--text-dim);
    }
    .mainarea{
        display: flex;
        flex: 1;
        height: calc(100vh - 60px);/* first time using calc in css lol*/
    }

    .sidebar{
        width: 320px;
        background: var(--panel);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 20px;
        overflow-y: auto;
        z-index: 5;
    }
    .workspace{
        flex: 1;
        position: relative;
        background: radial-gradient(circle at center, #1a1a20 0%, #0f0f13 100%);
        overflow: hidden;
    }
    .overlay{
        position: absolute;
        top: 20px;
        right: 20px;
        width: 300px;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .graphbox{
        background: rgba(20, 20, 25, 0.8);
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 4px;
    }
    .graphtitle{
        font-size: 10px;
        text-transform: uppercase;
        color: var(--text-dim);
        margin-bottom: 5px;
        display: block;
    }
    canvas.plot {
        width: 100%;
        height: 100px;
        display: block;
        background: #000;
    }
    .controlgroup{
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .labelrow{
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: var(--text-dim);
    }
    /*i take that back css is also so muchhhhhhhh */
    .val{
        color: var(--accent);
        font-family: monospace;
    }

    input[type=range]{
        -webkit-appearance: none;
        width: 100%;
        background: transparent;
        margin: 5px 0;
    }
    input[type=rangee]:focus{
        outline: none;
    }
    input[type=range]::-webkit-slider-runnable-track{
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #333;
        border-radius: 2px;
    }
    input[type=range]::-webkit-slider-thumb{
        height: 16px;
        width: 16px;
        background: var(--accent);
        cursor: pointer;
        margin-top:-6px;
        border-radius: 50%;
        transition: transform 0.1s;
        -webkit-appearance: none;
    }
    input[type=range]::-moz-range-track{
        width: 100%;
        height: 4px;
        cursor: pointer;
        background: #333;
        border-radius: 2px;
    }
    input[type=range]::-moz-range-thumb{
        height: 16px;
        width: 16px;
        border: none;
        border-radius: 50%;
        background: var(--accent);
        cursor: pointer;
    }
    .btn-row{
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }
    button{
        background-color: #333;
        color: white;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        border-radius: 4px;
        padding: 12px;
        letter-spacing: 1px;
        transition: all 0.2s;
    }
    button.primary{
        background: var(--accent);
        color: #000;
    }
    button.primary:hover{
        background: #33ccee;
    }
    button.secondary:hover{
        background: #444;
    }
    .stats{
        margin-top: auto;
        background: #111;
        padding: 15px;
        border:1px solid #333;
        border-radius: 6px;
    }
    .statsitem{
        color: #888;
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }
    .statitem span:last-child{
        color: #ddd;
        font-family: monospace;
    }
    .energybar{
        height: 6px;
        background: #222;
        width: 100%;
        margin-top: 5px;
        position: relative;
        overflow: hidden;
        border-radius: 3px;
    }
    .ke{
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background: var(--accent2);
        width: 0%;
        transition: width 0.1s;
    }
    .legend{
        display: flex;
        gap: 10px;
        font-size: 10px;
        margin-top:5px;
    }
    .dot{
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 4px;
    }

    #sim{
        width: 100%;
        height: 100%;
        cursor: grab;
    }
    #sim:active{
        cursor: grabbing;
    }
    .toggle-row{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 5px;
    }
    .switch{
        position: relative;
        display: inline-block;
        width: 40px;
        height: 20px;
    }
    .switch input{
        opacity: 0;
        width: 0;
        height: 0;
    }
    .slider{
        position: absolute;
        cursor: pointer;
        top:0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #333;
        border-radius: 20px;
        transition: .4s;
    }
    .slider:before{
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: .4s;
    }

    input:checked + .slider {
        background: var(--accent);
    }
    input:checked + slider:before{
        transform: translateX(20px);
    }
    .tooltip{
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 4px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
    }
    a{
        color: var(--accent);
        text-decoration: none;
        font-size: 14px;
    }
    /* finished css finallllyyyy */
