/**
 * Vector Calculus Operators Tutorial
 * Dark Theme Stylesheet
 */

/* Container */
.vc-container {
    background-color: #1a1a2e;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

/* Control Panel */
.vc-control-panel {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.vc-section-label {
    color: #00aaff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid #0f3460;
    padding-bottom: 5px;
}

.vc-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.vc-control-row label {
    color: #aaa;
    font-size: 12px;
    min-width: 80px;
}

.vc-control-row select {
    background-color: #0d1b2a;
    color: #00aaff;
    border: 1px solid #00aaff;
    padding: 6px 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

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

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

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

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

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

.vc-control-row input[type="checkbox"] {
    accent-color: #00aaff;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

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

/* Canvas Container */
.vc-canvas-container {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #0d1b2a;
    border: 1px solid #0f3460;
    border-radius: 6px;
    overflow: hidden;
}

.vc-canvas-container canvas {
    display: block;
}

/* Info Overlay */
.vc-info-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(13, 27, 42, 0.9);
    border: 1px solid #00aaff;
    border-radius: 6px;
    padding: 10px;
    font-size: 11px;
    color: #e0e0e0;
    max-width: 200px;
}

.vc-info-overlay h4 {
    color: #00aaff;
    margin: 0 0 8px 0;
    font-size: 12px;
}

.vc-info-item {
    margin-bottom: 4px;
}

.vc-info-item span.label {
    color: #888;
}

.vc-info-item span.value {
    color: #00ff88;
}

/* Stats Display */
.vc-stats-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #0d1b2a;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 15px;
}

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

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

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

/* Legend */
.vc-legend-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 15px;
}

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

.vc-legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #444;
}

/* Instructions */
.vc-instructions {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 11px;
    color: #888;
}

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

/* Equation Display */
.vc-equation-box {
    background: linear-gradient(135deg, #0d1b2a 0%, #16213e 100%);
    border: 1px solid #00aaff;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 15px;
    text-align: center;
}

.vc-equation-title {
    color: #00aaff;
    font-size: 11px;
    margin-bottom: 5px;
}

.vc-equation-text {
    color: #00ff88;
    font-size: 14px;
    font-weight: bold;
}

/* Operator Info Panel */
.vc-operator-panel {
    background-color: #16213e;
    border: 1px solid #0f3460;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 15px;
}

.vc-operator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vc-operator-title {
    color: #00aaff;
    font-size: 13px;
    font-weight: bold;
}

.vc-operator-content {
    font-size: 11px;
    line-height: 1.6;
}

.vc-operator-step {
    padding: 8px 10px;
    margin-bottom: 8px;
    background-color: #0d1b2a;
    border-radius: 4px;
    border-left: 3px solid #00aaff;
}

.vc-operator-step.gradient {
    border-left-color: #ff9900;
}

.vc-operator-step.laplacian {
    border-left-color: #aa00ff;
}

.vc-operator-step.divergence {
    border-left-color: #ff4444;
}

.vc-operator-step.curl {
    border-left-color: #00ff88;
}

.vc-operator-step-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 4px;
}

.vc-operator-step-desc {
    color: #aaa;
}

/* Color Scales */
.vc-colorscale {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.vc-colorscale-bar {
    height: 10px;
    flex: 1;
    border-radius: 3px;
}

.vc-colorscale-label {
    font-size: 10px;
    color: #888;
    min-width: 40px;
}

/* Axis Labels */
.vc-axis-label {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

.vc-axis-x { color: #ff4444; }
.vc-axis-y { color: #00ff88; }
.vc-axis-z { color: #4444ff; }

/* Camera Controls */
.vc-camera-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.vc-cam-btn {
    background-color: rgba(13, 27, 42, 0.9);
    color: #00aaff;
    border: 1px solid #00aaff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.vc-cam-btn:hover {
    background-color: #00aaff;
    color: #000;
}

/* Point Info Tooltip */
.vc-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #00aaff;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 11px;
    color: #e0e0e0;
    pointer-events: none;
    z-index: 100;
    display: none;
}

.vc-tooltip.visible {
    display: block;
}

/* Mode Indicator (clickable to toggle mode) */
.vc-mode-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(13, 27, 42, 0.9);
    border: 1px solid #00aaff;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 11px;
    color: #00aaff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vc-mode-indicator:hover {
    background: #00aaff;
    color: #000;
}

/* Camera Buttons Overlay - Top Left of Plot */
.vc-camera-overlay {
    position: absolute;
    top: 40px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.vc-camera-overlay .vc-cam-row {
    display: flex;
    gap: 4px;
}

.vc-camera-overlay .vc-cam-btn {
    background-color: rgba(13, 27, 42, 0.85);
    color: #00aaff;
    border: 1px solid #00aaff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vc-camera-overlay .vc-cam-btn:hover {
    background-color: #00aaff;
    color: #000;
}

.vc-camera-overlay .vc-cam-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 35px;
    background: rgba(0, 0, 0, 0.9);
    color: #00aaff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
}

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