/**
 * ============================================
 * 🎨 ELITE RECEIPT SCANNER - FULL SCREEN REDESIGN
 * Apple-Inspired Premium Experience
 * ============================================
 */

/* ===================================
   OVERLAY FULL-SCREEN
=================================== */

.elite-scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: linear-gradient(135deg,
        rgba(5, 5, 15, 0.98) 0%,
        rgba(10, 10, 30, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elite-scanner-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Close Button (Top Right) */
.elite-scanner-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #F5F5F7;
    font-size: 1.125rem;
    cursor: pointer;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elite-scanner-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.elite-scanner-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* ===================================
   MAIN CONTENT CONTAINER
=================================== */

.elite-scanner-content {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;

    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elite-scanner-overlay:not(.hidden) .elite-scanner-content:not(.hidden) {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom Scrollbar */
.elite-scanner-content::-webkit-scrollbar {
    width: 8px;
}

.elite-scanner-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.elite-scanner-content::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.3);
    border-radius: 4px;
}

.elite-scanner-content::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.5);
}

/* ===================================
   HEADER
=================================== */

.elite-scanner-header {
    text-align: center;
    margin-bottom: 48px;
}

.elite-scanner-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;

    background: linear-gradient(135deg, #22d3ee, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    animation: scanner-title-glow 3s ease-in-out infinite;
}

.elite-scanner-title i {
    font-size: 2rem;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes scanner-title-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.8));
    }
}

.elite-scanner-subtitle {
    font-size: 1.125rem;
    color: rgba(245, 245, 247, 0.7);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ===================================
   OPTIONS CONTAINER
=================================== */

.elite-scanner-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.elite-scanner-option {
    background: linear-gradient(135deg,
        rgba(34, 211, 238, 0.08) 0%,
        rgba(139, 92, 246, 0.08) 100%);
    border: 2px solid rgba(34, 211, 238, 0.3);
    border-radius: 20px;
    padding: 32px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 24px;

    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer Effect on Hover */
.elite-scanner-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.6s;
}

.elite-scanner-option:hover::before {
    left: 100%;
}

.elite-scanner-option:hover {
    border-color: rgba(34, 211, 238, 0.6);
    background: linear-gradient(135deg,
        rgba(34, 211, 238, 0.15) 0%,
        rgba(139, 92, 246, 0.15) 100%);
    transform: translateX(8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(34, 211, 238, 0.3),
        0 0 80px rgba(34, 211, 238, 0.2);
}

.elite-scanner-option:active {
    transform: translateX(4px) scale(0.98);
}

/* Camera Option Specific */
.elite-scanner-option-camera:hover {
    border-color: rgba(34, 211, 238, 0.7);
}

/* File Option Specific */
.elite-scanner-option-file {
    border-style: dashed;
    border-color: rgba(139, 92, 246, 0.4);
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
}

.elite-scanner-option-file:hover {
    border-color: rgba(139, 92, 246, 0.7);
    border-style: solid;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(236, 72, 153, 0.15) 100%);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.3),
        0 0 80px rgba(139, 92, 246, 0.2);
}

/* Drag Over State */
.elite-scanner-option-file.drag-over {
    border-color: #8b5cf6;
    border-style: solid;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.25) 0%,
        rgba(236, 72, 153, 0.25) 100%);
    transform: scale(1.05);
    box-shadow:
        0 30px 80px rgba(139, 92, 246, 0.5),
        inset 0 0 60px rgba(139, 92, 246, 0.2);
}

/* Option Icon */
.elite-scanner-option-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    border-radius: 20px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2.25rem;
    color: white;

    box-shadow:
        0 10px 40px rgba(34, 211, 238, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);

    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elite-scanner-option:hover .elite-scanner-option-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 15px 60px rgba(34, 211, 238, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.elite-scanner-option-file .elite-scanner-option-icon {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow:
        0 10px 40px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.elite-scanner-option-file:hover .elite-scanner-option-icon {
    box-shadow:
        0 15px 60px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Option Text */
.elite-scanner-option-text {
    flex: 1;
    text-align: left;
}

.elite-scanner-option-file .elite-scanner-option-text {
    text-align: center;
}

.elite-scanner-option-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F5F5F7;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.elite-scanner-option-text p {
    font-size: 1rem;
    color: rgba(245, 245, 247, 0.6);
    font-weight: 400;
}

/* Option Arrow */
.elite-scanner-option-arrow {
    font-size: 1.5rem;
    color: #22d3ee;
    transition: all 0.3s;
}

.elite-scanner-option:hover .elite-scanner-option-arrow {
    transform: translateX(8px);
    color: #8b5cf6;
}

/* File Formats Label */
.elite-scanner-formats {
    margin-top: 16px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    display: inline-block;
}

.elite-scanner-formats span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===================================
   PROCESSING STATUS BAR (72px Height)
=================================== */

.elite-scanner-processing {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 10200;

    background: linear-gradient(135deg,
        rgba(5, 5, 15, 0.95) 0%,
        rgba(10, 10, 30, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-top: 1px solid rgba(34, 211, 238, 0.3);

    box-shadow:
        0 -10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(34, 211, 238, 0.2);

    /* Estado inicial: escondido */
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sobrescrever Tailwind .hidden com !important */
.elite-scanner-processing.hidden {
    display: block !important; /* Manter display block para permitir transição */
    opacity: 0 !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
}

/* Estado visível: quando NÃO tem .hidden */
.elite-scanner-processing:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.elite-scanner-processing-content {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;
    gap: 20px;
}

/* Processing Icon */
.elite-scanner-processing-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    border-radius: 12px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    color: white;

    animation: scanner-processing-pulse 2s ease-in-out infinite;
}

@keyframes scanner-processing-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 12px rgba(34, 211, 238, 0);
    }
}

/* Processing Text */
.elite-scanner-processing-text {
    flex: 1;
    min-width: 0;
}

.elite-scanner-processing-text span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #22d3ee;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Processing Bar */
.elite-scanner-processing-bar {
    flex: 1;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.elite-scanner-processing-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899);
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Shimmer Animation */
.elite-scanner-processing-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    animation: scanner-shimmer 1.5s infinite;
}

@keyframes scanner-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Processing Counter */
.elite-scanner-processing-counter {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
}

.elite-scanner-processing-counter span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #a78bfa;
    letter-spacing: 1px;
}

/* ===================================
   RESULTS SCREEN
=================================== */

.elite-scanner-results-list {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 32px;
    padding-right: 8px;
}

/* Result Item Card */
.elite-scanner-result-item {
    background: linear-gradient(135deg,
        rgba(34, 211, 238, 0.05) 0%,
        rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;

    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: scanner-result-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scanner-result-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.elite-scanner-result-item:hover {
    border-color: rgba(34, 211, 238, 0.4);
    background: linear-gradient(135deg,
        rgba(34, 211, 238, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 100%);
    transform: translateX(4px);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.2);
}

.elite-scanner-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.elite-scanner-result-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F5F5F7;
    letter-spacing: 0.5px;
}

.elite-scanner-result-total {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elite-scanner-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.elite-scanner-result-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elite-scanner-result-label {
    font-size: 0.75rem;
    color: rgba(245, 245, 247, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.elite-scanner-result-value {
    font-size: 1rem;
    color: #F5F5F7;
    font-weight: 600;
}

.elite-scanner-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 0.875rem;
    color: #a78bfa;
    font-weight: 600;
}

/* 🆕 Nome do arquivo com ícone */
.elite-scanner-filename {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Courier New', monospace;
    word-break: break-word;
}

.elite-scanner-filename i {
    color: #8b5cf6;
    font-size: 0.875rem;
}

/* ===================================
   🆕 CARDS DE ERRO
=================================== */

/* Card de erro - destaque vermelho/laranja suave */
.elite-scanner-result-error {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.12) 0%,
        rgba(251, 146, 60, 0.08) 100%) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow:
        0 8px 32px rgba(239, 68, 68, 0.15),
        0 0 0 1px rgba(239, 68, 68, 0.1) inset !important;
}

.elite-scanner-result-error:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow:
        0 12px 48px rgba(239, 68, 68, 0.25),
        0 0 0 1px rgba(239, 68, 68, 0.15) inset !important;
}

/* Título do erro com ícone */
.elite-scanner-error-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fca5a5 !important;
}

.elite-scanner-error-title i {
    font-size: 1.25rem;
    color: #ef4444;
    animation: pulseError 2s ease-in-out infinite;
}

@keyframes pulseError {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Mensagem de erro explicativa */
.elite-scanner-error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(252, 165, 165, 0.9);
}

.elite-scanner-error-message i {
    margin-top: 2px;
    font-size: 1rem;
    color: #fca5a5;
    flex-shrink: 0;
}

/* ===================================
   🆕 CARDS DE DUPLICADO
=================================== */

/* Card de duplicado - destaque laranja/amarelo suave */
.elite-scanner-result-duplicate {
    background: linear-gradient(135deg,
        rgba(251, 146, 60, 0.12) 0%,
        rgba(250, 204, 21, 0.08) 100%) !important;
    border: 1.5px solid rgba(251, 146, 60, 0.3) !important;
    box-shadow:
        0 8px 32px rgba(251, 146, 60, 0.15),
        0 0 0 1px rgba(251, 146, 60, 0.1) inset !important;
}

.elite-scanner-result-duplicate:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 146, 60, 0.4) !important;
    box-shadow:
        0 12px 48px rgba(251, 146, 60, 0.25),
        0 0 0 1px rgba(251, 146, 60, 0.15) inset !important;
}

/* Título do duplicado com ícone */
.elite-scanner-duplicate-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fdba74 !important;
}

.elite-scanner-duplicate-title i {
    font-size: 1.25rem;
    color: #fb923c;
    animation: pulseDuplicate 2s ease-in-out infinite;
}

@keyframes pulseDuplicate {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Mensagem de duplicado explicativa */
.elite-scanner-duplicate-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(251, 146, 60, 0.08);
    border-left: 3px solid rgba(251, 146, 60, 0.5);
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(253, 186, 116, 0.9);
}

.elite-scanner-duplicate-message i {
    margin-top: 2px;
    font-size: 1rem;
    color: #fdba74;
    flex-shrink: 0;
}

/* ===================================
   🆕 BOTÃO DE RETRY
=================================== */

.elite-scanner-retry-container {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(34, 211, 238, 0.08) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.elite-scanner-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elite-scanner-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 60px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #9333ea, #7c3aed);
}

.elite-scanner-retry-btn:active {
    transform: translateY(0);
}

.elite-scanner-retry-btn i {
    font-size: 1.125rem;
    animation: rotateRetry 2s linear infinite paused;
}

.elite-scanner-retry-btn:hover i {
    animation-play-state: running;
}

@keyframes rotateRetry {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.elite-scanner-retry-hint {
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(245, 245, 247, 0.6);
    line-height: 1.5;
}

/* ===================================
   ACTION BUTTONS
=================================== */

.elite-scanner-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.elite-scanner-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;

    display: flex;
    align-items: center;
    gap: 12px;

    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Primary Button (Adicionar Todos) */
.elite-scanner-btn-primary {
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    color: white;
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.4);
}

.elite-scanner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 60px rgba(34, 211, 238, 0.6);
}

.elite-scanner-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button (Cancelar) */
.elite-scanner-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(245, 245, 247, 0.8);
}

.elite-scanner-btn-secondary:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: translateY(-2px);
}

.elite-scanner-btn-secondary:active {
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE - MOBILE
=================================== */

@media (max-width: 768px) {
    .elite-scanner-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .elite-scanner-content {
        width: 95%;
        padding: 24px;
        max-height: 85vh;
    }

    .elite-scanner-header {
        margin-bottom: 32px;
    }

    .elite-scanner-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 8px;
    }

    .elite-scanner-title i {
        font-size: 1.5rem;
    }

    .elite-scanner-subtitle {
        font-size: 1rem;
    }

    .elite-scanner-option {
        padding: 24px;
        gap: 16px;
    }

    .elite-scanner-option-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .elite-scanner-option-text h3 {
        font-size: 1.25rem;
    }

    .elite-scanner-option-text p {
        font-size: 0.875rem;
    }

    .elite-scanner-option-file {
        padding: 32px 24px;
    }

    /* Processing Bar - Mobile */
    .elite-scanner-processing-content {
        padding: 0 16px;
        gap: 12px;
    }

    .elite-scanner-processing-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .elite-scanner-processing-text span {
        font-size: 0.75rem;
    }

    .elite-scanner-processing-bar {
        max-width: 200px;
    }

    .elite-scanner-processing-counter {
        padding: 6px 12px;
    }

    .elite-scanner-processing-counter span {
        font-size: 0.75rem;
    }

    /* Results */
    .elite-scanner-result-item {
        padding: 16px;
    }

    .elite-scanner-result-title {
        font-size: 1.125rem;
    }

    .elite-scanner-result-total {
        font-size: 1.25rem;
    }

    .elite-scanner-result-details {
        grid-template-columns: 1fr;
    }

    /* Action Buttons */
    .elite-scanner-actions {
        flex-direction: column-reverse;
    }

    .elite-scanner-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .elite-scanner-title {
        font-size: 1.5rem;
    }

    .elite-scanner-option-text h3 {
        font-size: 1.125rem;
    }

    .elite-scanner-processing-text {
        display: none;
    }

    .elite-scanner-processing-bar {
        max-width: 150px;
    }
}

/* ===================================
   LIGHT MODE
=================================== */

[data-theme="light"] .elite-scanner-overlay {
    background: linear-gradient(135deg,
        rgba(248, 248, 252, 0.98) 0%,
        rgba(255, 255, 255, 0.98) 100%);
}

[data-theme="light"] .elite-scanner-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1D1D1F;
}

[data-theme="light"] .elite-scanner-close:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.4);
    color: #FF3B30;
}

[data-theme="light"] .elite-scanner-title {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .elite-scanner-subtitle {
    color: rgba(29, 29, 31, 0.7);
}

[data-theme="light"] .elite-scanner-option {
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.08) 0%,
        rgba(88, 86, 214, 0.08) 100%);
    border-color: rgba(0, 122, 255, 0.3);
}

[data-theme="light"] .elite-scanner-option:hover {
    border-color: rgba(0, 122, 255, 0.6);
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.15) 0%,
        rgba(88, 86, 214, 0.15) 100%);
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.3);
}

[data-theme="light"] .elite-scanner-option-file {
    border-color: rgba(88, 86, 214, 0.4);
}

[data-theme="light"] .elite-scanner-option-file:hover {
    border-color: rgba(88, 86, 214, 0.7);
    background: linear-gradient(135deg,
        rgba(88, 86, 214, 0.15) 0%,
        rgba(255, 45, 85, 0.15) 100%);
}

[data-theme="light"] .elite-scanner-option-text h3 {
    color: #1D1D1F;
}

[data-theme="light"] .elite-scanner-option-text p {
    color: rgba(29, 29, 31, 0.6);
}

[data-theme="light"] .elite-scanner-processing {
    /* Background elegante e translúcido igual ao menu */
    background-color: rgba(255, 255, 255, 0.72) !important;
    background-image: linear-gradient(
        to top,
        rgba(248, 249, 250, 0.3),
        rgba(255, 255, 255, 0.2)
    ) !important;
    backdrop-filter: saturate(180%) blur(30px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(30px) !important;

    /* Borda delicada */
    border-top: 0.5px solid rgba(0, 0, 0, 0.08) !important;

    /* Sombra suave */
    box-shadow:
        0 -1px 3px rgba(0, 0, 0, 0.04),
        0 -8px 24px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .elite-scanner-processing-text span {
    color: #007AFF;
}

[data-theme="light"] .elite-scanner-result-item {
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.05) 0%,
        rgba(88, 86, 214, 0.05) 100%);
    border-color: rgba(0, 122, 255, 0.2);
}

[data-theme="light"] .elite-scanner-result-item:hover {
    border-color: rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.1) 0%,
        rgba(88, 86, 214, 0.1) 100%);
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.2);
}

[data-theme="light"] .elite-scanner-result-title,
[data-theme="light"] .elite-scanner-result-value {
    color: #1D1D1F;
}

[data-theme="light"] .elite-scanner-result-label {
    color: rgba(29, 29, 31, 0.5);
}

[data-theme="light"] .elite-scanner-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1D1D1F;
}

[data-theme="light"] .elite-scanner-btn-secondary:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.4);
    color: #FF3B30;
}

/* 🆕 Light Mode - Nome do arquivo */
[data-theme="light"] .elite-scanner-filename {
    background: rgba(88, 86, 214, 0.08);
}

[data-theme="light"] .elite-scanner-filename i {
    color: #5856D6;
}

/* 🆕 Light Mode - Cards de erro */
[data-theme="light"] .elite-scanner-result-error {
    background: linear-gradient(135deg,
        rgba(255, 59, 48, 0.08) 0%,
        rgba(255, 149, 0, 0.05) 100%) !important;
    border: 1.5px solid rgba(255, 59, 48, 0.25) !important;
    box-shadow:
        0 8px 32px rgba(255, 59, 48, 0.12),
        0 0 0 1px rgba(255, 59, 48, 0.08) inset !important;
}

[data-theme="light"] .elite-scanner-result-error:hover {
    border-color: rgba(255, 59, 48, 0.35) !important;
    box-shadow:
        0 12px 48px rgba(255, 59, 48, 0.18),
        0 0 0 1px rgba(255, 59, 48, 0.12) inset !important;
}

[data-theme="light"] .elite-scanner-error-title {
    color: #D93025 !important;
}

[data-theme="light"] .elite-scanner-error-title i {
    color: #FF3B30;
}

[data-theme="light"] .elite-scanner-error-message {
    background: rgba(255, 59, 48, 0.06);
    border-left-color: rgba(255, 59, 48, 0.4);
    color: rgba(211, 48, 37, 0.9);
}

[data-theme="light"] .elite-scanner-error-message i {
    color: #FF3B30;
}

/* 🆕 Light Mode - Cards de duplicado */
[data-theme="light"] .elite-scanner-result-duplicate {
    background: linear-gradient(135deg,
        rgba(255, 149, 0, 0.08) 0%,
        rgba(255, 204, 0, 0.05) 100%) !important;
    border: 1.5px solid rgba(255, 149, 0, 0.25) !important;
    box-shadow:
        0 8px 32px rgba(255, 149, 0, 0.12),
        0 0 0 1px rgba(255, 149, 0, 0.08) inset !important;
}

[data-theme="light"] .elite-scanner-result-duplicate:hover {
    border-color: rgba(255, 149, 0, 0.35) !important;
    box-shadow:
        0 12px 48px rgba(255, 149, 0, 0.18),
        0 0 0 1px rgba(255, 149, 0, 0.12) inset !important;
}

[data-theme="light"] .elite-scanner-duplicate-title {
    color: #D97706 !important;
}

[data-theme="light"] .elite-scanner-duplicate-title i {
    color: #FF9500;
}

[data-theme="light"] .elite-scanner-duplicate-message {
    background: rgba(255, 149, 0, 0.06);
    border-left-color: rgba(255, 149, 0, 0.4);
    color: rgba(217, 119, 6, 0.9);
}

[data-theme="light"] .elite-scanner-duplicate-message i {
    color: #FF9500;
}

/* 🆕 Light Mode - Botão de retry */
[data-theme="light"] .elite-scanner-retry-container {
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.05) 0%,
        rgba(88, 86, 214, 0.05) 100%);
    border-color: rgba(0, 122, 255, 0.2);
}

[data-theme="light"] .elite-scanner-retry-btn {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.3);
}

[data-theme="light"] .elite-scanner-retry-btn:hover {
    background: linear-gradient(135deg, #0051D5, #4A46B8);
    box-shadow: 0 15px 60px rgba(0, 122, 255, 0.5);
}

[data-theme="light"] .elite-scanner-retry-hint {
    color: rgba(29, 29, 31, 0.6);
}
