body { 
    background: #000; 
    color: #00ff00; 
    font-family: 'Courier New', monospace; 
    margin: 0; 
    padding: 0;
    position: relative;
    z-index: 1;
}

.radar-container {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    gap: 20px;
}

.radar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#radarCanvas { 
    border: 1px solid #00ff00; 
    width: 500px;
    height: 491px;
    margin-bottom: 10px;
}

/* Steuerelemente links neben dem Radar */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

/* Neue Schalter-Container */
.controls-panel {
    position: relative;
    background-image: url('controls_bg_scrb.png');
    background-repeat: no-repeat;
    background-position: center;
    width: 200px;
    height: 400px;
    background-size: contain;
}

.rotary-switch {
    position: absolute;
    width: 92px;
    height: 93px;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: 50% 48%;
}

/* Schalter-Positionen */
#switch-range {
    left: 45px;
    top: 48px;
}

#switch-aspect {
    left: 44px;
    top: 180px;
}

#switch-scan-width {
    left: 45px;
    top: 314px;
}

/* Range Switch - 6 Positionen */
.range-pos-1 { transform: rotate(-75deg); }
.range-pos-2 { transform: rotate(-45deg); }
.range-pos-3 { transform: rotate(-20deg); }
.range-pos-4 { transform: rotate(15deg); }
.range-pos-5 { transform: rotate(45deg); }
.range-pos-6 { transform: rotate(75deg); }

/* Aspect Switch - 5 Positionen */
.aspect-pos-1 { transform: rotate(-67deg); }
.aspect-pos-2 { transform: rotate(-34deg); }
.aspect-pos-3 { transform: rotate(-1deg); }
.aspect-pos-4 { transform: rotate(33deg); }
.aspect-pos-5 { transform: rotate(67deg); }

/* Scan Width Switch - 2 Positionen */
.scan-pos-1 { transform: rotate(-30deg); }
.scan-pos-2 { transform: rotate(0deg); }

/* Scanbar Switch Styling */
.scanbar-switch-container {
    position: relative;
    width: 80px;
    height: 60px;
    margin: 5px 0;
}

.scanbar-switch {
    width: 100%;
    height: 100%;
    background-image: url('scanbar.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Scanbar Positionen */
.scanbar-pos-1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('1abar.png');
    background-size: contain;
    background-repeat: no-repeat;
    top: 0px;
    left: 20px;
}

.scanbar-pos-2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('1bar.png');
    background-size: contain;
    background-repeat: no-repeat;
    top: 0px;
    left: 20px;
}

.scanbar-pos-3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('2bar.png');
    background-size: contain;
    background-repeat: no-repeat;
    top: 0px;
    left: 20px;
}

/* Bank Angle Controls */	
.bank-angle-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.bank-btn {
    background: #001100;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 5px 8px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.bank-btn:hover {
    background: #003300;
    box-shadow: 0 0 5px #00ff00;
}

.bank-btn.active {
    background: #00ff00;
    color: #000;
    font-weight: bold;
}




/* Legacy Controls */
.legacy-controls { 
    display: flex;
    gap: 5px;
    align-items: center;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    flex-wrap: wrap;
    max-width: 100%;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

select, input { 
    background: #333; 
    color: #00ff00; 
    border: 1px solid #555;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: #2d5a27;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #00ff00;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(18px);
}

label {
    font-size: 11px;
    text-align: center;
}

.status {
    margin-left: 15px;
    padding: 5px 5px;
    background: #2d5a27;
    border-radius: 4px;
    font-size: 11px;
}

h2 {
    margin: 5px 0 10px 0;
    font-size: 18px;
    text-align: center;
}

/* Debug Info */
.debug-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #00ff00;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    font-family: monospace;
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

#modalContent {
    position: relative;
    background-color: #242424;
    color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#closeModal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#closeModal:hover {
    color: #fff;
}
/* Mini Side View Styling */
.side-view-container {
    position: absolute;
    left: 40px;
    top: 510px;
    width: 200px;
    margin-top: 0;
    padding: 15px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    background: rgba(0, 255, 0, 0.05);
    text-align: center;
}

.side-view-container h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

#sideViewCanvas {
    border: 1px solid #00ff0040;
    background: #000;
    margin-bottom: 10px;
}

.side-view-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.side-view-info div {
    padding: 2px 5px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 2px;
}