/* Custom styling and slider components */
:root {
    --primary-glow: rgba(99, 102, 241, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f1f5f9;
}

/* Glassmorphism card */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Comparison slider */
.compare-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: col-resize;
    background: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%) 50% / 20px 20px;
}

.compare-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    will-change: clip-path;
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    cursor: col-resize;
    z-index: 30;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7), 0 0 14px rgba(99, 102, 241, 0.9);
    transform: translateX(-50%);
    pointer-events: none;
}

.compare-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.95), 0 4px 8px rgba(0, 0, 0, 0.5);
    cursor: col-resize;
    border: 2px solid white;
    transition: transform 0.15s ease, background 0.15s ease;
    pointer-events: auto;
}

.compare-handle-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #4f46e5;
}

/* Model selection active state */
.model-card.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

/* Scale badge active */
.scale-btn.active {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Drag & Drop Highlight */
.drop-zone.dragover {
    border-color: #6366f1 !important;
    background-color: rgba(99, 102, 241, 0.1) !important;
    transform: scale(1.01);
}

/* Pulse animation */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-soft-pulse {
    animation: soft-pulse 2s infinite ease-in-out;
}
