/* General Layout */
.simulator-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Control Panel */
.control-panel, .result-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.panel-section {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.panel-section h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary-color, #0ea5e9);
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: #333;
}

.weight-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.explosive-description {
    margin-top: 0.8rem;
    padding: 0.75rem;
    background: rgba(14, 165, 233, 0.05);
    border-left: 4px solid var(--primary-color, #0ea5e9);
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
}

.weight-control input[type="range"] {
    flex: 1;
}

.weight-control input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    text-align: right;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-detonate {
    flex: 2;
    background: #ef4444;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-detonate:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-reset {
    flex: 1;
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-reset:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.btn-detonate:active {
    transform: translateY(1px);
}

/* Results */
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
    font-size: 0.95rem;
}

.result-item strong {
    font-family: monospace;
    font-size: 1.1rem;
}

.danger-lethal strong { color: #ef4444; }
.danger-severe strong { color: #f59e0b; }
.danger-light strong { color: #10b981; }

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 1rem;
    line-height: 1.4;
}

/* Radar Canvas Area */
.radar-container {
    flex: 2;
    min-width: 300px;
    background: #020617; /* Very dark background for radar */
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #1e293b;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    min-height: 400px;
    margin-bottom: 2rem;
}

/* Scanline effect */
.radar-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

#radar-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: crosshair;
}

.radar-scale {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #10b981;
    font-family: monospace;
    background: rgba(2, 6, 23, 0.7);
    padding: 5px 10px;
    border: 1px solid #10b981;
    border-radius: 4px;
    z-index: 20;
}

.radar-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 20;
}

.radar-controls button {
    background: rgba(2, 6, 23, 0.7);
    color: #10b981;
    border: 1px solid #10b981;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-controls button:hover {
    background: #10b981;
    color: #020617;
}

/* Animations */
@keyframes flash {
    0% { background-color: #ef4444; }
    100% { background-color: #020617; }
}

.flash-bg {
    animation: flash 0.5s ease-out;
}
