/* Nash Equilibrium Simulation CSS */
/* Local styles to avoid collision with global CSS */

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

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

.nash-controls {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.nash-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 100%;
}

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

.nash-control-row input[type="range"] {
    flex: 1;
    min-width: 200px;
}

.nash-control-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #333;
    outline: none;
    border-radius: 2px;
}

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

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

.nash-control-row span {
    min-width: 40px;
    color: #4CAF50;
    text-align: right;
    font-weight: bold;
}

.nash-control-row select {
    flex: 1;
    padding: 8px 12px;
    background-color: #2a2a2a;
    color: #fff;
    border: 2px solid #444;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
}

.nash-control-row select:hover {
    border-color: #555;
}

.nash-control-row select:focus {
    outline: none;
    border-color: #4CAF50;
}

.nash-control-row option {
    background-color: #2a2a2a;
    color: #fff;
}

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

.nash-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;
}

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

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

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

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

.nash-btn.danger {
    background-color: #e74c3c;
}

.nash-btn.danger:hover {
    background-color: #c0392b;
}

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

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

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

.nash-status-title {
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.nash-status-text {
    color: #fff;
    line-height: 1.6;
}

.nash-status-text div {
    margin-bottom: 5px;
}

.nash-chart-container {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

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

.nash-custom-logic {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.nash-custom-logic label {
    display: block;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: bold;
}

.nash-custom-logic textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    background-color: #2a2a2a;
    color: #0f0;
    border: 2px solid #444;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    resize: vertical;
    box-sizing: border-box;
}

.nash-custom-logic textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.nash-custom-logic .hint {
    color: #888;
    font-size: 11px;
    margin-top: 5px;
    font-style: italic;
}

.nash-custom-logic .nash-btn {
    display: block;
    margin: 10px auto 0 auto;
}

.nash-preset-select {
    flex: 1;
    padding: 8px 12px;
    background-color: #2a2a2a;
    color: #fff;
    border: 2px solid #444;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    min-width: 200px;
}

.nash-preset-select:hover {
    border-color: #555;
}

.nash-preset-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.nash-preset-select option {
    background-color: #2a2a2a;
    color: #fff;
}
