* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.geiger-container {
    max-width: 800px;
    margin: 0 auto;
}

.geiger-body {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    border: 3px solid #444;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    padding: 30px;
    position: relative;
}

.geiger-body::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #666, #333);
    border-radius: 18px;
    z-index: -1;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 2px solid #444;
}

.radiation-symbol {
    font-size: 3em;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.header h1 {
    font-size: 1.5em;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    letter-spacing: 3px;
}

.status-leds {
    display: flex;
    gap: 10px;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #666;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.led.on {
    box-shadow: 
        0 0 10px currentColor,
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.power-led.on { background: #00ff00; }
.battery-led.on { background: #ffff00; }
.warning-led.on { background: #ff0000; }

/* Main Display */
.main-display {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 30px;
    margin-bottom: 30px;
}

.lcd-screen {
    background: #000;
    border: 3px inset #666;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.lcd-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 0, 0.1) 0%,
        transparent 50%,
        rgba(0, 255, 0, 0.05) 100%
    );
    border-radius: 7px;
    pointer-events: none;
}

.reading-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.primary-reading, .secondary-reading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.primary-reading span:first-child {
    font-size: 3em;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    min-width: 120px;
    text-align: right;
}

.secondary-reading span:first-child {
    font-size: 2em;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    min-width: 80px;
    text-align: right;
}

.unit {
    font-size: 1.2em;
    color: #888;
    font-weight: normal;
}

.analog-meter {
    background: #111;
    border: 3px inset #666;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Control Panel */
.control-panel {
    background: linear-gradient(145deg, #333, #222);
    border: 2px inset #555;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.control-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
}

.control-row:last-child {
    margin-bottom: 0;
}

.power-button {
    background: linear-gradient(145deg, #ff4444, #cc2222);
    border: 2px outset #ff4444;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    cursor: pointer;
    font-family: inherit;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.power-button:hover {
    background: linear-gradient(145deg, #ff6666, #dd3333);
}

.power-button.active {
    background: linear-gradient(145deg, #44ff44, #22cc22);
    border-color: #44ff44;
}

.knob-container, .switch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.knob-container label, .switch-container label {
    font-size: 0.9em;
    color: #ccc;
    font-weight: bold;
}

.knob, .slider {
    width: 60px;
    height: 20px;
    background: #444;
    border-radius: 10px;
    border: 1px inset #666;
    cursor: pointer;
}

.range-switch {
    background: #333;
    border: 1px inset #666;
    color: #00ff00;
    padding: 5px;
    border-radius: 4px;
    font-family: inherit;
}

.mode-toggle {
    background: linear-gradient(145deg, #4444ff, #2222cc);
    border: 2px outset #4444ff;
    border-radius: 6px;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.calibrate-button {
    background: linear-gradient(145deg, #ffaa44, #cc8822);
    border: 2px outset #ffaa44;
    border-radius: 6px;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

/* Interaction Area */
.interaction-area {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px inset #444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.interaction-area h3 {
    color: #00ff00;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #00ff00;
}

.source-controls {
    margin-bottom: 20px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.source-item label {
    min-width: 150px;
    color: #ccc;
}

.slider {
    width: 200px;
}

.preset-scenarios {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.scenario-btn {
    background: linear-gradient(145deg, #555, #333);
    border: 1px outset #666;
    border-radius: 6px;
    color: #ccc;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9em;
    transition: all 0.2s;
}

.scenario-btn:hover {
    background: linear-gradient(145deg, #666, #444);
    color: #fff;
}

.scenario-btn.active {
    background: linear-gradient(145deg, #00aa00, #008800);
    color: white;
    border-color: #00aa00;
}

.detection-area {
    position: relative;
    background: #111;
    border: 2px dashed #666;
    border-radius: 10px;
    height: 300px;
    margin-top: 20px;
    overflow: hidden;
}

.detector-probe {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #666, #333);
    border: 2px solid #888;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.8em;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.radiation-source {
    position: absolute;
    background: linear-gradient(145deg, #444, #222);
    border: 2px solid #666;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    transition: all 0.2s;
}

.radiation-source:hover {
    background: linear-gradient(145deg, #555, #333);
    border-color: #888;
}

#source1 {
    top: 50px;
    right: 100px;
    color: #ffff00;
}

#source2 {
    top: 150px;
    right: 200px;
    color: #00ff00;
}

#source3 {
    top: 100px;
    right: 50px;
    color: #ff4444;
}

/* Info Panel */
.info-panel {
    background: linear-gradient(145deg, #333, #222);
    border: 2px inset #555;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.battery-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.battery-bar {
    width: 100px;
    height: 20px;
    background: #111;
    border: 2px inset #666;
    border-radius: 10px;
    overflow: hidden;
}

.battery-level {
    height: 100%;
    background: #00ff00;
    transition: all 0.3s;
    border-radius: 8px;
}

.exposure-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
    color: #ccc;
}

.exposure-info span {
    color: #00ff00;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.9em;
}

.footer a {
    color: #00ff00;
    text-decoration: none;
    text-shadow: 0 0 3px #00ff00;
}

.footer a:hover {
    text-shadow: 0 0 6px #00ff00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-display {
        grid-template-columns: 1fr;
    }
    
    .control-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .preset-scenarios {
        justify-content: center;
    }
    
    .info-panel {
        flex-direction: column;
        text-align: center;
    }
    
    .detection-area {
        height: 250px;
    }
    
    .detector-probe {
        left: 10px;
        font-size: 0.7em;
        padding: 8px 10px;
    }
    
    .radiation-source {
        font-size: 0.7em;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .geiger-body {
        padding: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 1.2em;
    }
    
    .radiation-symbol {
        font-size: 2em;
    }
    
    .primary-reading span:first-child {
        font-size: 2em;
    }
    
    .secondary-reading span:first-child {
        font-size: 1.5em;
    }
}