/* Economic Machine Simulation CSS */
/* Local styles to avoid collision with global CSS */

#content_sim {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #fff;
    padding: 15px;
    box-sizing: border-box;
}

.economic-machine-container {
    background-color: #000;
    padding: 15px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.economic-controls {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.economic-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    width: 100%;
}

.economic-control-row label {
    min-width: 120px;
    color: #fff;
}

.economic-control-value {
    min-width: 60px;
    color: #4CAF50;
    text-align: right;
    font-weight: bold;
    font-size: 12px;
}

.economic-control-row input[type="range"] {
    flex: 1;
    min-width: 200px;
    height: 5px;
    background: #333;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.economic-control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.economic-control-row input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.economic-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.economic-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.economic-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.economic-btn:active {
    transform: translateY(0);
}

.economic-btn.secondary {
    background-color: #555;
}

.economic-btn.secondary:hover {
    background-color: #666;
}

.economic-btn.emergency {
    background-color: #e74c3c;
    font-weight: bold;
}

.economic-btn.emergency:hover {
    background-color: #c0392b;
}

.economic-btn.emergency.active-printing {
    background-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
}

.economic-stats {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.economic-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.economic-stats-label {
    color: #aaa;
    width: 140px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 10px;
}

.economic-stats-bar-container {
    width: 430px;
    flex-shrink: 0;
    height: 20px;
    background-color: #333;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.economic-stats-bar {
    height: 100%;
    width: 0%;
    transition: width 0.2s linear;
    border-radius: 3px;
}

.economic-stats-value {
    color: #fff;
    font-weight: bold;
    min-width: 70px;
    text-align: right;
}

.economic-canvas-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: #111;
    border: 2px solid #333;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

#economic-canvas {
    display: block;
    width: 100%;
    background-color: #000;
}

.economic-chart-container {
    width: 100%;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 3px;
    margin: 10px 0;
}

#economic-chart-canvas {
    display: block;
    width: 100%;
    background-color: #000;
}

/* Telemetry Panel */
.economic-telemetry {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 20, 0, 0.85);
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 15px;
    width: 220px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    pointer-events: none;
    z-index: 100;
    border-radius: 5px;
}

.economic-telemetry h4 {
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #004400;
    font-size: 13px;
    text-transform: uppercase;
    color: #00ff00;
}

.economic-telemetry-row {
    font-size: 12px;
    margin-bottom: 10px;
}

.economic-telemetry-label {
    display: block;
    opacity: 0.7;
    margin-bottom: 4px;
    font-size: 11px;
}

.economic-telemetry-value {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #00ff00;
}
