/* Option card */
.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(55, 65, 81, 0.6);
    cursor: pointer;
    transition: all 0.15s ease;
}
.option-card:hover {
    border-color: rgba(107, 114, 128, 0.6);
}

/* Checkerboard for transparent bg option */
.checkerboard {
    background: conic-gradient(#6b7280 25%, #374151 25% 50%, #6b7280 50% 75%, #374151 75%);
    background-size: 8px 8px;
}

/* Drag over */
.drag-over {
    border-color: rgba(59, 130, 246, 0.6) !important;
    background-color: rgba(59, 130, 246, 0.05) !important;
}

/* File thumbnail */
.file-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(55, 65, 81, 0.5);
}
.file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-thumb .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(220, 38, 38, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.file-thumb:hover .remove-btn {
    opacity: 1;
}

/* Feature cards */
.feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(55, 65, 81, 0.3);
    transition: all 0.2s;
}
.feature-card:hover {
    border-color: rgba(55, 65, 81, 0.6);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-2px);
}
.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Result card */
.result-card {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.5);
    transition: all 0.2s;
}
.result-card:hover {
    border-color: rgba(107, 114, 128, 0.5);
    transform: translateY(-2px);
}
.result-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: conic-gradient(#1e293b 25%, #0f172a 25% 50%, #1e293b 50% 75%, #0f172a 75%);
    background-size: 16px 16px;
}
.result-card .result-actions {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================================
   Processing animations
   ================================ */

/* Large processing globe */
.processing-globe {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.globe-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: #3b82f6;
    border-right-color: #3b82f6;
    border-radius: 50%;
    animation: globe-spin 1.5s linear infinite;
}
.globe-ring.ring-2 {
    inset: 8px;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: #60a5fa;
    border-left-color: #60a5fa;
    animation: globe-spin-reverse 2s linear infinite;
}

@keyframes globe-spin {
    to { transform: rotate(360deg); }
}
@keyframes globe-spin-reverse {
    to { transform: rotate(-360deg); }
}

/* Status item */
.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 0.75rem;
    border: 1px solid rgba(55, 65, 81, 0.4);
    transition: all 0.3s;
}
.status-item.is-processing {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}
.status-item.is-completed {
    border-color: rgba(34, 197, 94, 0.2);
}
.status-item.is-failed {
    border-color: rgba(239, 68, 68, 0.2);
}

/* Per-file spinner */
.file-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: file-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes file-spin {
    to { transform: rotate(360deg); }
}

/* Pending dot */
.pending-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(107, 114, 128, 0.3);
    flex-shrink: 0;
}

/* Completed checkmark */
.done-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Failed X */
.fail-x {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Step label badge */
.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    white-space: nowrap;
}
.step-badge .step-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b82f6;
    animation: step-pulse 1s ease-in-out infinite;
}

@keyframes step-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Elapsed timer */
.elapsed-timer {
    font-size: 11px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}
