/* Custom CSS Variables */
:root {
    --primary: #2563EB;
    --secondary: #4F46E5;
    --success: #10B981;
    --dark: #0F172A;
    --neutral: #F8FAFC;
}

/* Glassmorphism utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dropzone animations */
.dropzone {
    border: 2px dashed #CBD5E1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropzone.dragover {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
    transform: scale(1.01);
}

/* Biometric Overlay */
.biometric-guide {
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Loading skeleton */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }
    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

/* Scan effect */
.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    opacity: 0.7;
    animation: scan 2s linear infinite;
    z-index: 20;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

/* Score Ring */
.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 250px;
}
.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}
.percentage {
    fill: #333;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.5em;
    text-anchor: middle;
}

/* Before/After Slider */
.compare-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 100%;
}
.compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}
.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* We hide the old ::after handle in favor of the beautiful SVG handle in the HTML */
.compare-handle::after {
    display: none;
}
.badge-compliant {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    z-index: 4;
}
.badge-original {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--dark);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}
