/* finally i am back at axiom after so much time.......*/
:root{
    --bg: #050505;
    --panel: rgba(20, 20, 25, 0.9);
    --border: #333;
    --pos: #ff2e63;
    --neg: #08d9d6;
    --text: #eaeaeaea;
    --accent : #f0ed69;
}
body{
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Courier New', 'Courier New', Courier, monospace;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
}
.ui-layer{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}
.top-bar{
    height: 60px;
    background: var(--panel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}
/* axiom is gonna finish soon officially this can be my 2nd last project */
.logo{
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    letter-spacing: 2px;
    color: var(--text);
}
.logo span{
    color: var(--pos);
}
.tools{
    display: flex;
    gap: 10px;
}
.btn{
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    gap: 5px;
}
.btn:hover{
    background: #333;
    border-color: #666;
}
/* designing is tuffff */
.btn-pos{
    border-color: var(--pos);
    color: var(--pos);
}
.btn-pos:hover{
    background: var(--pos);
    color: var(--bg);
    box-shadow: 0 0 15px var(--pos);
}
.btn-neg{
    border-color: var(--neg);
    color: var(--neg);
}
.btn-neg:hover{
    background: var(--neg);
    color: var(--bg);
    box-shadow: 0 0 15px var(--neg);
}
.btn-clear{
    border-color: #ff4444;
    color: #ff4444;
}
.btn-clear:hover{
    background: #ff4444;
    color: var(--text);
}
.main-area{
    position: relative;
    flex-grow: 1;
    height: 100%;
    overflow: hidden;
}
canvas{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}
#fieldcanvas{
    z-index: 1;
    opacity: 0.8;
}
#objcanvas{
    z-index: 2;
}
.sidebar{
    background: var(--panel);
    position: absolute;
    top: 70px;
    right: 20px;
    width: 270px;/* hard to choose (270 vs 280 vs 260 but my fav is 7 so...*/
    border: 1px solid var(--panel);
    border-radius: 4px;
    padding: 15px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.panel-section{
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}
.panel-section:last-child{
    border-bottom: none;
}
.label-row{
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.val-disp{
    color: var(--accent);
    font-weight: bold;
}
input[type=range]{
  width: 100%;
    -webkit-appearance: none;/* i hate this */
    background: transparent;
    margin: 10px 0;
}
input[type=range]::-webkit-slider-runnable-track{
    background: var(--border);
    height: 2px;
}
input[type=range]::-webkit-slider-thumb{
    background: var(--text);
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border-radius: 50%;
    cursor: pointer;
}
.stats-box{
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 250px;
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 15px;
    pointer-events: auto;
}
.stat-row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}
.stat-row span:first-child{
    color: #888;
}
.mode-switch{
    display: flex;
    background: #111;
    border-radius: 4px;
    padding: 2px;
    margin-top: 10px;
}
.mode-opt{
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 10px;
    cursor: pointer;
    color: #666;
    user-select: none;
    transition: 0.2s;
}
.mode-opt.active{
    background: #333;
    color: var(--text);
    border-radius: 2px;
}
.tooltip{
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    padding: 5px 10px;
    font-size: 11px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    transform: translate(10px, 10px);
    z-index: 99.99;
}
.sensor-readout{
    margin-top: 10px;
    font-size: 11px;
    background: #000;
    padding: 10px;
    border-left: 2px solid var(--accent);
    font-family: monospace;
    color: var(--accent);
    line-height: 1.5;/* not a fan of it but including it anyway......*/
}
.chk-row{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 5px;
}
.chk-box{
    width: 14px;
    height: 14px;
    border: 1px solid #555;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chk-row.checked .chk-box{
    background: var(--accent);
}
a{
    text-decoration: none;
    color: var(--text);
    font-size: small;
}