/* Navier-Stokes Fluid Dynamics Visualization Stylesheet */
/* Dark theme consistent with other tutorials */

.ns-container {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    max-width: 800px;
}

.ns-control-panel {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.ns-section-label {
    color: #00aaff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ns-control-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ns-control-row label {
    color: #aaa;
    font-size: 12px;
}

.ns-control-row button {
    background-color: #333;
    color: #00aaff;
    border: 1px solid #00aaff;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ns-control-row button:hover {
    background-color: #00aaff;
    color: #000;
}

.ns-control-row button.active {
    background-color: #00aaff;
    color: #000;
}

.ns-control-row button:disabled {
    background-color: #222;
    color: #555;
    border-color: #444;
    cursor: not-allowed;
}

.ns-control-row input[type="range"] {
    width: 100px;
    accent-color: #00aaff;
}

.ns-slider-value {
    color: #00ff88;
    font-size: 12px;
    min-width: 55px;
    text-align: right;
}

.ns-slider-short {
    width: 80px !important;
}

.ns-select {
    background-color: #333;
    color: #00aaff;
    border: 1px solid #00aaff;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.ns-select:focus {
    outline: none;
    box-shadow: 0 0 5px #00aaff;
}

.ns-select option {
    background-color: #222;
    color: #e0e0e0;
}

/* Canvas Container */
.ns-canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.ns-canvas {
    border: 2px solid #00aaff;
    border-radius: 4px;
    background-color: #000;
    cursor: crosshair;
    image-rendering: pixelated;
}

/* Stats Display */
.ns-stats-display {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.ns-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ns-stat-label {
    color: #888;
    font-size: 11px;
}

.ns-stat-value {
    color: #00ff88;
    font-size: 12px;
    font-weight: bold;
}

/* Instructions */
.ns-instructions {
    color: #888;
    font-size: 11px;
    text-align: center;
    padding: 10px;
    border: 1px dashed #444;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #1a1a1a;
}

.ns-instructions span {
    color: #00aaff;
    font-weight: bold;
}

/* Step Details Panel */
.ns-info-panel {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
}

.ns-info-header {
    background-color: #222;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.ns-info-title {
    color: #00aaff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ns-info-content {
    padding: 15px;
    font-size: 11px;
    line-height: 1.6;
    max-height: 250px;
    overflow-y: auto;
}

/* Algorithm Steps */
.ns-algo-step {
    background-color: #222;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid #666;
}

.ns-algo-step.diffuse {
    border-left-color: #ff9900;
}

.ns-algo-step.advect {
    border-left-color: #00ff88;
}

.ns-algo-step.project {
    border-left-color: #00aaff;
}

.ns-algo-step-title {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
}

.ns-algo-step-desc {
    color: #aaa;
    font-size: 10px;
}

/* Legend */
.ns-legend-box {
    background-color: #222;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.ns-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.ns-legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

/* Color Scheme Selector */
.ns-color-scheme {
    display: flex;
    gap: 8px;
}

.ns-color-btn {
    width: 24px;
    height: 24px;
    border: 2px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ns-color-btn:hover {
    border-color: #fff;
    transform: scale(1.1);
}

.ns-color-btn.active {
    border-color: #00aaff;
    box-shadow: 0 0 8px #00aaff;
}

.ns-color-btn.grayscale {
    background: linear-gradient(135deg, #000 0%, #fff 100%);
}

.ns-color-btn.thermal {
    background: linear-gradient(135deg, #000 0%, #f00 50%, #ff0 100%);
}

.ns-color-btn.ocean {
    background: linear-gradient(135deg, #001 0%, #00f 50%, #0ff 100%);
}

.ns-color-btn.plasma {
    background: linear-gradient(135deg, #0d0887 0%, #cc4778 50%, #f0f921 100%);
}


/* Scrollbar styling */
.ns-info-content::-webkit-scrollbar {
    width: 8px;
}

.ns-info-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.ns-info-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.ns-info-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* FPS Counter */
.ns-fps {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #0f0;
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 850px) {
    .ns-control-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
