@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Space+Mono&display=swap');
:root{
    --bg:#07071a;
    --glass:rgba(255,255,255,0.06);
    --border:rgba(255,255,255,0.1);
    --muted:rgba(255,255,255,0.6);
    --accent:#6366f1;
}
*{
    box-sizing: border-box;
}
html, body{
    margin: 0;
    font-family: 'Space Mono', monospace;
    overflow: hidden;
    height: 100%;
}
body{
    background: var(--bg);
    color: #f2f2f2;
    display: flex;
}
#threeContainer{
    flex-grow: 1;
    position: relative;
}
.ui-panel{
    min-width: 300px;
    width: 340px;
    padding: 20px;
    background: linear-gradient(145deg,var(--glass),rgba(255,255,255,0.02));
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.title{
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 20px 0;
}
.controls{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.control-block{
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: 8px;
}
.row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
/* Styling for the specific speed range input */
#speedRange {
    width: 100%;
    height: 4px;
    background: var(--border);
    opacity: 0.7;
    border-radius: 2px;
    transition: opacity 0.3s;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
#speedRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}
#speedRange::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}
#speedRange:hover{
    opacity: 1;
}

.info{
    background: rgba(99, 102, 241, 0.1);
    padding: 15px;
    margin-top: 0;
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-size: 14px;
    flex-grow: 1;
}
.info-title{
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em; 
    margin-bottom: 8px;
    color: #fff;
}
.info-data div{
    margin-top: 6px;
}
.info-data strong{
    color: var(--muted);
    width: 120px;
    font-weight: 400;
    display: inline-block;
}
.small{
    font-size: 12px;
    color: var(--muted);
}
button{
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    width: 100%;
}
.toggle-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.toggle-switch{
    width: 40px;
    position: relative;
    display: inline-block;
    height: 20px;
}
.toggle-switch input{
    height: 0;
    width: 0;
    opacity: 0;
}
.slider{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    cursor: pointer;
    border-radius: 20px;
    background-color: var(--border);
    transition: 0.4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}


input:checked + .slider{
    background-color: var(--accent);
}


input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}
.footer{
     color:rgba(255,255,255,0.2);
    margin-top: auto;
    text-align: right;
    font-size: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.ui-panel a{
    color: var(--accent);
    text-decoration: none;
}