/* House Color Combination Visualizer - Premium Styling */

.apple-glass {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

html:not(.dark) .apple-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.custom-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
    transition: all 0.2s ease-in-out;
}

html:not(.dark) .custom-input {
    background: #ffffff;
    border: 1px solid #d4d4d8;
    color: #18181b;
}

.custom-input:focus {
    border-color: #a855f7;
    outline: none;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

/* SVG Recolor Targets */
.recolor-target {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.recolor-target:hover {
    filter: brightness(1.1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
    stroke: #a855f7 !important;
    stroke-width: 2px !important;
}

html:not(.dark) .recolor-target:hover {
    filter: brightness(0.95) drop-shadow(0 0 4px rgba(168, 85, 247, 0.4));
}

.active-recolor-target {
    stroke: #a855f7 !important;
    stroke-width: 3px !important;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5)) !important;
}

/* Color Circle Selection Presets */
.color-circle {
    transition: all 0.2s ease;
}
.color-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.color-circle.active {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Before / After Slider Canvas Frame */
.comparison-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 16/9;
}

.before-after-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 30;
    cursor: ew-resize;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffffff;
    z-index: 20;
    pointer-events: none;
}

.slider-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 3px solid #a855f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.preset-active {
    background: rgba(168, 85, 247, 0.25) !important;
    border-color: rgba(168, 85, 247, 0.6) !important;
    color: #c084fc !important;
    font-weight: 700;
}

html:not(.dark) .preset-active {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: #7e22ce !important;
}
