@charset "UTF-8";

.drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: scale(1.01);
}

.loader {
    border-top-color: #3b82f6;
    animation: spinner 1.5s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tooltip {
    position: relative;
}

.tooltip:before {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #1f2937;
    color: white;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    z-index: 60;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tooltip:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
    opacity: 0;
    transition: all 0.2s ease;
    margin-bottom: -2px;
    z-index: 60;
}

.tooltip:hover:before,
.tooltip:hover:after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Compare slider */
.compare-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
}

.compare-container img {
    display: block;
    width: 100%;
    height: auto;
}

.compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #6366f1;
}

.compare-overlay img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
}

.compare-handle {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: #6366f1;
    cursor: ew-resize;
    z-index: 10;
}

.compare-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #6366f1;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
