/* ============================================
   SCHEMATIC INTENSITY SLIDER
   ============================================ */

.schematic-intensity-control {
    position: fixed;
    top: 6rem;
    right: 2rem;
    z-index: 999;
    background: rgba(43, 45, 49, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 1px rgba(188, 163, 59, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 180px;
    max-width: 200px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.schematic-intensity-control.visible {
    opacity: 1;
    transform: translateY(0);
}

.schematic-intensity-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.125rem;
}

.schematic-intensity-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    line-height: 1.2;
}

.schematic-intensity-value {
    font-size: 0.75rem;
    color: rgba(188, 163, 59, 1);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    min-width: 32px;
    text-align: right;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.schematic-intensity-close {
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    margin-left: 0.125rem;
}

.schematic-intensity-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.schematic-intensity-close:active {
    transform: scale(0.9);
}

.schematic-intensity-close svg {
    width: 12px;
    height: 12px;
}

.schematic-intensity-control:hover {
    border-color: rgba(188, 163, 59, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
                0 0 1px rgba(188, 163, 59, 0.4);
}

.schematic-intensity-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right,
        rgba(188, 163, 59, 0.25) 0%,
        rgba(188, 163, 59, 0.6) 100%);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schematic-intensity-slider:hover {
    height: 5px;
    background: linear-gradient(to right,
        rgba(188, 163, 59, 0.35) 0%,
        rgba(188, 163, 59, 0.7) 100%);
}

/* Webkit */
.schematic-intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #BCA33B 0%, #d4ba4e 100%);
    cursor: grab;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4),
                0 0 8px rgba(188, 163, 59, 0.5);
    transition: all 0.2s ease;
}

.schematic-intensity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
                0 0 12px rgba(188, 163, 59, 0.7);
}

.schematic-intensity-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

/* Firefox */
.schematic-intensity-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #BCA33B 0%, #d4ba4e 100%);
    cursor: grab;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4),
                0 0 8px rgba(188, 163, 59, 0.5);
    transition: all 0.2s ease;
}

.schematic-intensity-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
                0 0 12px rgba(188, 163, 59, 0.7);
}

.schematic-intensity-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

[data-theme="light"] .schematic-intensity-control {
    background: rgba(60, 63, 68, 0.9);
}

[data-theme="light"] .schematic-intensity-control:hover {
    background: rgba(60, 63, 68, 0.95);
}

@media (max-width: 768px) {
    .schematic-intensity-control {
        top: 4.5rem;
        right: 1rem;
        min-width: 160px;
        max-width: 180px;
        padding: 0.625rem 0.875rem;
    }

    .schematic-intensity-title {
        font-size: 0.75rem;
    }

    .schematic-intensity-value {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .schematic-intensity-control {
        top: 3.5rem;
        left: 1rem;
        right: 1rem;
        min-width: auto;
        max-width: none;
    }
}
