/* Perspective Drawing - Course Styles */

/* Custom range slider */
.perspective-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    outline: none;
}

.perspective-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #a78bfa;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.perspective-slider::-webkit-slider-thumb:hover {
    background: #c4b5fd;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.perspective-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #a78bfa;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.perspective-slider::-moz-range-thumb:hover {
    background: #c4b5fd;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

/* Gradient border for tools */
.gradient-border {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(167, 139, 250, 0.05));
}

/* Active lesson nav */
.lesson-nav-link.active {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

/* Tool canvas styling */
.perspective-tool canvas {
    cursor: crosshair;
}

/* Mode buttons */
.onepoint-mode.active,
.scene-perspective-btn.active {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

/* Horizon preset buttons */
.horizon-preset.active {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
}

/* Touch-friendly on mobile */
@media (max-width: 768px) {
    .perspective-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .perspective-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .perspective-tool canvas {
        min-height: 300px;
    }
}

/* Scrollbar styling for sidebar nav */
#lesson-nav::-webkit-scrollbar {
    width: 4px;
}

#lesson-nav::-webkit-scrollbar-track {
    background: transparent;
}

#lesson-nav::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 2px;
}

#lesson-nav::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}
