.bac-comparison-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bac-title {
    text-align: center;
    color: #333;
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 600;
}

.bac-slider-wrapper {
    width: 100%;
    max-width: 100%;
}

.bac-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: ew-resize;
}

.bac-slider-container.bac-dragging {
    cursor: grabbing;
}

.bac-after-image,
.bac-before-image {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.bac-after-image img,
.bac-before-image img {
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}

.bac-before-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

/* Labels overlaid on images */
.bac-overlay-label {
    position: absolute;
    top: 20px;
    padding: 8px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none;
    user-select: none;
}

.bac-label-before {
    left: 20px;
    background-color: rgba(198, 40, 40, 0.9);
    color: white;
}

.bac-label-after {
    right: 20px;
    background-color: rgba(46, 125, 50, 0.9);
    color: white;
}

/* Slider handle */
.bac-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.bac-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
}

.bac-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: #98BCCB;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: transform 0.2s ease;
}

.bac-slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.bac-slider-button:active,
.bac-dragging .bac-slider-button {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
}

.bac-slider-button svg {
    width: 20px;
    height: 20px;
}

.bac-slider-button svg:first-child {
    margin-right: -4px;
}

.bac-slider-button svg:last-child {
    margin-left: -4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .bac-comparison-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .bac-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .bac-overlay-label {
        font-size: 14px;
        padding: 6px 12px;
        top: 15px;
    }
    
    .bac-label-before {
        left: 15px;
    }
    
    .bac-label-after {
        right: 15px;
    }
    
    .bac-slider-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .bac-comparison-container {
        padding: 15px;
        margin: 15px auto;
    }
    
    .bac-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .bac-overlay-label {
        font-size: 12px;
        padding: 5px 10px;
        top: 10px;
    }
    
    .bac-label-before {
        left: 10px;
    }
    
    .bac-label-after {
        right: 10px;
    }
    
    .bac-slider-button {
        width: 35px;
        height: 35px;
    }
    
    .bac-slider-button svg {
        width: 16px;
        height: 16px;
    }
}