/* Isolated Styles for AI Logo Background Remover */

.logo-remover-container {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-checkerboard {
    background-color: #ffffff;
    background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
                      linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
                      linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 550px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.logo-preview-el {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

/* Compare Mode Slider container */
.logo-compare-container {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
    box-shadow: var(--shadow-sm);
}

.logo-compare-before,
.logo-compare-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.logo-compare-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid #ffffff;
}

.logo-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    top: calc(50% - 20px);
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.logo-compare-handle:hover, .logo-compare-handle:active {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

.logo-slider-box {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.logo-slider-box label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.color-indicator-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 80px;
    }
}

/* Loader Overlay */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: opacity 0.2s ease;
}

/* Custom Toast Notification */
.custom-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 350px;
}
.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.custom-toast-icon {
    font-size: 1.2rem;
}
.custom-toast.success {
    border-left-color: #10b981;
}
.custom-toast.success .custom-toast-icon {
    color: #10b981;
}
.custom-toast.error {
    border-left-color: #ef4444;
}
.custom-toast.error .custom-toast-icon {
    color: #ef4444;
}
.custom-toast-message {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

/* Mobile responsive fixes for compare container */
@media (max-width: 768px) {
    .logo-compare-container {
        height: 300px;
        max-height: 350px;
    }
    .logo-checkerboard {
        min-height: 300px;
        max-height: 400px;
    }
    .custom-toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}
