/* Modern Dark Theme with Neon Accents */
:root {
    --bg-primary: #0d0f1a;
    --bg-secondary: #1a1d29;
    --bg-tertiary: #242938;
    --accent-cyan: #00f5ff;
    --accent-magenta: #ff0080;
    --accent-green: #00ff88;
    --accent-red: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-muted: #6c7293;
    --border: #2d3142;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ⚡ PERFORMANCE: Performance mode styles for low-spec devices */
.performance-mode .thumbnail {
    transition: none !important; /* Disable animations on low-spec devices */
}

.performance-mode .thumbnail:hover {
    transform: none !important; /* Disable hover effects */
}

.performance-mode .thumbnail-grid {
    -webkit-transform: translateZ(0); /* Force hardware acceleration */
    transform: translateZ(0);
    will-change: transform; /* Optimize for animations */
}

.performance-mode .thumbnail.dragging {
    transition: none !important;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom checkbox styling - completely removes default checkbox appearance */
#selectAllImages {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-cyan);
    border-radius: 4px;
    background: transparent !important;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    outline: none;
}

#selectAllImages:checked {
    background: var(--accent-cyan) !important;
    border-color: var(--accent-cyan);
}

#selectAllImages:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

#selectAllImages:indeterminate {
    background: var(--accent-cyan) !important;
    border-color: var(--accent-cyan);
}

#selectAllImages:indeterminate::after {
    content: '−';
    position: absolute;
    top: -4px;
    left: 3px;
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

/* Hide any potential white placeholders from deleted floating elements */
.floating-delete-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Override Bootstrap checkbox styling completely */
.form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.form-check-input:focus {
    border-color: var(--accent-cyan) !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-check-input:checked {
    background-color: var(--accent-cyan) !important;
    border-color: var(--accent-cyan) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 140px; /* Account for fixed navbar (60px) + top action bar (80px) */
}

/* ========== PROCESSING CONFIRMATION MODAL ========== */
.processing-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Processing Confirmation Modal Centering Fix */
#processingConfirmModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}

#processingConfirmModal[style*="display: block"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.processing-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.processing-confirm-content {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-cyan);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    z-index: 10;
}

.processing-confirm-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    display: flex;
    justify-content: between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 128, 0.05));
}

.processing-confirm-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.processing-confirm-header #confirmModalIcon {
    font-size: 28px;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.processing-confirm-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.processing-confirm-close:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
    transform: scale(1.1);
}

.processing-confirm-body {
    padding: 25px 30px;
}

.confirm-summary {
    margin-bottom: 25px;
}

.confirm-info-card {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.confirm-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.confirm-info-item i {
    color: var(--accent-cyan);
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.confirm-info-item strong {
    color: var(--accent-cyan);
}

.confirm-sku-preview {
    margin-bottom: 25px;
}

.confirm-sku-preview h5 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.confirm-sku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirm-sku-item {
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.confirm-sku-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
}

.confirm-sku-item .sku-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-sku-item .sku-label {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.confirm-sku-item .sku-count {
    font-size: 11px;
    color: var(--text-secondary);
}

.confirm-sku-item .sku-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.confirm-sku-item:hover .sku-remove {
    opacity: 1;
}

.confirm-sku-item .sku-remove:hover {
    background: #ff1744;
    transform: scale(1.1);
}

.confirm-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.confirm-warning i {
    color: #ffc107;
    font-size: 18px;
}

.processing-confirm-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-confirm-cancel,
.btn-confirm-proceed {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-confirm-cancel {
    background: rgba(108, 114, 147, 0.2);
    color: var(--text-secondary);
    border: 1px solid rgba(108, 114, 147, 0.3);
}

.btn-confirm-cancel:hover {
    background: rgba(108, 114, 147, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-confirm-proceed {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
}

.btn-confirm-proceed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.4);
}

.btn-confirm-proceed:active {
    transform: translateY(0);
}

/* ========== PROCESSING PROGRESS OVERLAY ========== */
.processing-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.processing-progress-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.processing-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top: 3px solid var(--accent-cyan);
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right: 3px solid var(--accent-magenta);
    animation-delay: -0.7s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-bottom: 3px solid var(--accent-green);
    animation-delay: -1.4s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

.processing-progress-content h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.processing-progress-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
}

.processing-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.processing-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.processing-status-text {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .processing-confirm-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .processing-confirm-header,
    .processing-confirm-body,
    .processing-confirm-footer {
        padding: 20px;
    }
    
    .confirm-info-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .confirm-sku-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .processing-confirm-footer {
        flex-direction: column;
    }
    
    .btn-confirm-cancel,
    .btn-confirm-proceed {
        flex: none;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 245, 255, 0.2);
}

/* Top Bar */
.top-bar {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 55px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: var(--glass-bg);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1001;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-links .nav-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.app-title {
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Smaller buttons in top bar */
.top-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-height: 32px;
}

/* Layout */
.main-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.nav-item {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 245, 255, 0.1);
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Content Area */
.content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Add loading skeleton styles */
.loading-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    height: 120px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.wide {
    width: 80%;
}

.skeleton-text.narrow {
    width: 60%;
}

/* Smooth tab transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-magenta));
    border: none;
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.4);
}

.btn-secondary {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.btn-danger {
    border-color: var(--accent-red);
    color: white;
    background: var(--accent-red) !important;
}

.btn-danger:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.5);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ⚡ Enhanced Fast Mode Button Styling */
.fast-mode-btn {
    position: relative;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border: 2px solid #22c55e !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    animation: fastModePulse 2s infinite;
}

.fast-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(34, 197, 94, 0.6);
}

.fast-mode-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fbbf24;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    animation: badgeBounce 1s infinite;
}

@keyframes fastModePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.8); }
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ⚡ Upload Progress Container */
.upload-progress-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--accent-cyan);
    border-radius: 15px;
    padding: 15px 20px;
    min-width: 400px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upload-status-text {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 14px;
}

.upload-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.upload-progress-fill {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.upload-progress-stats {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--glass-bg);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 245, 255, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

/* Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    border: 2px solid transparent;
    user-select: none;
    /* ⚡ GPU acceleration for smooth animations */
    will-change: transform, border-color, box-shadow;
    /* Ensure no inherited animations affect thumbnails */
    animation: none !important;
    /* Optimize for 60fps performance */
    backface-visibility: hidden;
    perspective: 1000px;
    /* Fixed sizing to prevent stretching */
    width: 100%;
    height: auto;
    max-width: 150px;
    max-height: 150px;
}

.thumbnail:hover {
    /* Remove scaling effect that causes pulsing */
    border-color: rgba(0, 245, 255, 0.4);
    /* Disable any inherited animations */
    animation: none !important;
}

.thumbnail.selected {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

/* Add focus indicator for keyboard navigation */
.thumbnail:focus {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

.thumbnail.focused {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

/* Assigned to SKU styling - slightly dimmed but still visible */
.thumbnail.assigned-to-sku {
    opacity: 0.65;
    filter: brightness(0.75) contrast(0.85);
    transition: all 0.3s ease;
}

.thumbnail.assigned-to-sku:hover {
    opacity: 0.8;
    filter: brightness(0.9) contrast(1.0);
    border-color: rgba(0, 245, 255, 0.4);
}

/* Keep selection visible on assigned images */
.thumbnail.assigned-to-sku.selected {
    opacity: 0.85;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.thumbnail.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(0.98) rotate(2deg);
    border-color: var(--accent-magenta);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4);
    z-index: 1000;
    /* ⚡ Enhanced visual feedback for better UX */
    transition: all 0.1s ease;
}

.thumbnail.drag-over {
    border-color: var(--accent-cyan);
    background: rgba(0, 245, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    /* ⚡ Smooth drag-over animation */
    transition: all 0.1s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    border-radius: 6px;
}

.thumbnail .placeholder-image {
    opacity: 0.7;
    filter: grayscale(50%);
}

.thumbnail .placeholder-notice {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ff6b6b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}

.thumbnail-badges {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 15;
}

.first-photo-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 245, 255, 0.4);
}

/* SKU Assignment Label - Just bright colored number */
.sku-assignment-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0080;
    font-size: 22px;
    font-weight: 900;
    z-index: 6;
    opacity: 1 !important;
    text-shadow: 0 0 4px rgba(255, 0, 128, 0.8);
}

.role-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Prevent any inherited animations from affecting role badges */
    animation: none !important;
    z-index: 20;
    position: relative;
}

.role-badge.tag {
    background: var(--accent-magenta);
    color: white;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.role-badge.material {
    background: var(--accent-cyan);
    color: white;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.role-badge.width {
    background: #ff6b6b;
    color: white;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.role-badge.length {
    background: #4ecdc4;
    color: white;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.role-badge.inactive {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

/* SKU Controls */
.sku-controls {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.controls-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.current-sku {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.table td {
    color: var(--text-secondary);
}

.table tr:hover {
    background: rgba(0, 245, 255, 0.05);
}

/* Photo Count Chip */
.photo-count {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.photo-count.good {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.photo-count.over {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

/* Results List Format - Futuristic Design */
.results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 2rem;
}

.result-item {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(30, 30, 50, 0.95));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.result-item:hover::before {
    transform: scaleX(1);
}

.result-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 50px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Result Item Layout - Enhanced */
.result-photos {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.result-photo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-photo:hover {
    transform: scale(1.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    z-index: 10;
    position: relative;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.result-sku {
    font-size: 1rem;
    color: var(--neon-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    background: linear-gradient(90deg, var(--text-primary), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.result-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.result-detail-item:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
}

.result-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.edit-title-btn {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-title-btn:hover {
    background: var(--accent-magenta);
    transform: translateY(-1px);
}

/* More photos indicator */
.more-photos-indicator {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive adjustments for list format */
@media (max-width: 768px) {
    .result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 1rem;
    }
    
    .result-photos {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .result-content {
        text-align: center;
    }
    
    .result-details {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .result-actions {
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .result-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Mobile result card optimizations */
    .result-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .edit-title-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        min-height: 32px;
    }
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(0, 255, 255, 0.3),
        0 0 80px rgba(0, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    min-height: 40px;
}

.result-sku, .sku-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-cyan);
}

.result-title, .title-section {
    margin-top: auto;
    padding-top: 15px;
}

.title-text {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    word-wrap: break-word;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.result-images {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    justify-content: flex-start;
    align-items: center;
    height: 124px;
    overflow-x: auto;
    overflow-y: hidden;
}

.result-image, .result-image-wrapper img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.result-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.result-warnings {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.warning-item {
    color: var(--accent-red);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: fixed; /* Changed to fixed positioning */
    top: 15px; /* Position from top of viewport */
    right: 15px; /* Position from right of viewport */
    z-index: 999999; /* Maximum z-index to ensure it stays above everything */
    background: rgba(0, 0, 0, 0.7); /* Add dark background for better visibility */
    backdrop-filter: blur(5px); /* Add blur effect */
}

.close-btn:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Loading States */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-magenta);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    /* Show mobile navigation toggle */
    .mobile-nav-toggle {
        display: block;
        order: -1;
    }
    
    .content {
        padding: 1rem 0.75rem;
    }
    
    /* Mobile Header Optimizations */
    .top-bar {
        padding: 0.3rem 0.75rem;
        min-height: 40px;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(15px);
        z-index: 998; /* Lower z-index to not block buttons */
    }
    
    .app-title {
        font-size: 0.9rem;
    }
    
    .top-actions {
        gap: 0.3rem;
        z-index: 1002 !important; /* Ensure buttons are above header */
        position: relative !important;
        pointer-events: auto !important;
    }
    
    /* Mobile Button Optimizations */
    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        min-height: 36px; /* Reduced for more compact header */
        z-index: 999; /* Ensure buttons are clickable on mobile */
        position: relative;
    }
    
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 0.6rem 1rem;
        z-index: 999 !important;
        position: relative !important;
    }
    
    /* Specifically target Fast/Premium mode buttons on mobile */
    .top-actions .btn-primary,
    .top-actions .btn-secondary,
    .top-actions .btn-info {
        z-index: 1002 !important;
        position: relative !important;
        pointer-events: auto !important;
    }
    
    /* Make buttons full width on very small screens */
    .controls-row .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Floating buttons adjustments */
    .floating-buttons {
        bottom: 20px;
        left: 0px;
        gap: 10px;
    }
    
    .floating-assign-btn, .floating-export-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        min-height: 42px;
        min-width: 100px;
        gap: 8px;
    }
    
    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    /* Mobile form optimizations */
    .form-control {
        padding: 0.7rem 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Mobile modal adjustments */
    .modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .modal-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Extra mobile optimizations for very small screens */
@media (max-width: 480px) {
    /* Ultra-compact header for phones */
    .top-bar {
        padding: 0.25rem 0.5rem;
        min-height: 35px;
        background: rgba(255, 255, 255, 0.015);
        backdrop-filter: blur(12px);
    }
    
    .app-title {
        font-size: 0.8rem;
    }
    
    /* Compact buttons for phones */
    .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-height: 32px;
    }
    
    .floating-assign-btn, .floating-export-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.75rem;
        min-height: 40px;
        min-width: 90px;
        gap: 6px;
    }
    
    .floating-buttons {
        bottom: 15px;
        left: 0px;
    }
    
    /* Compact content spacing */
    .content {
        padding: 0.75rem 0.5rem;
    }
    
    .result-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .result-item {
        gap: 8px;
        padding: 0.75rem;
    }
    
    /* Smaller form elements on phones */
    .form-control {
        padding: 0.6rem 0.7rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 0.5rem;
        padding: 1rem;
    }
    
    /* Optimize thumbnail grid for phones */
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0.3rem;
    }
    
    /* Stack top actions vertically on very small screens */
    .top-actions {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-end;
    }
    
    .top-actions .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        min-width: auto;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-color: rgba(0, 255, 100, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.1), rgba(0, 200, 50, 0.1));
}

.toast-success i {
    color: var(--success-green);
}

.toast-info {
    border-color: rgba(0, 245, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(0, 200, 255, 0.1));
}

.toast-info i {
    color: var(--accent-cyan);
}

.toast-error {
    border-color: rgba(255, 71, 87, 0.5);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(200, 50, 50, 0.1));
}

.toast-error i {
    color: var(--accent-red);
}

/* Drag and Drop Visual Indicator */
.drag-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbnail.dragging .drag-indicator {
    opacity: 1;
}

/* Draft Queue Table Styling */
.draft-queue-table {
    background: linear-gradient(135deg, rgba(68, 18, 115, 0.98), rgba(104, 48, 217, 0.98));
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.draft-queue-table thead {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.95), rgba(124, 58, 237, 0.95));
    border-bottom: 2px solid rgba(147, 51, 234, 0.8);
}

.draft-queue-table thead th {
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 15px 12px;
    text-align: center;
}

.draft-queue-table tbody td {
    color: #fff;
    border: none;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
    vertical-align: middle;
    text-align: center;
}

.draft-queue-table tbody tr:hover {
    background: rgba(147, 51, 234, 0.2);
}

.draft-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(147, 51, 234, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.draft-thumbnail:hover {
    border-color: rgba(168, 85, 247, 0.8);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.no-thumbnail {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(147, 51, 234, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
}

.sku-cell {
    font-weight: 600;
    color: #fff;
    font-size: 16px;
}

/* Draft status styling */
.sku-cell.processing {
    color: #ffc107 !important;
    font-weight: 600;
}

.sku-cell.completed {
    color: #28a745 !important;
    font-weight: 600;
}

.sku-cell.failed {
    color: #dc3545 !important;
    font-weight: 600;
}

.sku-cell.ready {
    color: #17a2b8 !important;
    font-weight: 600;
}

/* CRITICAL FIX: Center spinning status icons */
.status-processing,
.status-completed,
.status-failed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.status-processing i,
.status-completed i,
.status-failed i {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Help System Futuristic Styling */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.help-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.help-title {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.help-subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.help-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.help-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.help-nav-btn {
    background: rgba(15, 15, 30, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.help-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.help-nav-btn:hover::before {
    left: 100%;
}

.help-nav-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.help-nav-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.help-content {
    position: relative;
}

.help-section-content {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.help-section-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: rgba(15, 15, 30, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.step-content h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.screenshot-container {
    margin-top: 1rem;
}

.screenshot-placeholder {
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.screenshot-placeholder i {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.floating-assign-demo {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.9), rgba(168, 85, 247, 0.9));
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-buttons-demo {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.premium-btn-demo, .fast-btn-demo {
    padding: 1rem 2rem;
    border-radius: 15px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.premium-btn-demo {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.fast-btn-demo {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.help-tip-card {
    background: rgba(15, 15, 30, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.help-tip-card.success {
    border-left-color: var(--success-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.help-tip-card.warning {
    border-left-color: var(--warning-yellow);
    box-shadow: 0 0 20px rgba(255, 235, 0, 0.2);
}

.help-tip-card.info {
    border-left-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.2);
}

.help-tip-card i {
    font-size: 2rem;
    color: inherit;
    flex-shrink: 0;
}

.help-tip-card.success i {
    color: var(--success-green);
}

.help-tip-card.warning i {
    color: var(--warning-yellow);
}

.help-tip-card.info i {
    color: var(--neon-blue);
}

.feature-showcase {
    margin: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(15, 15, 30, 0.6);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.floating-demo-container, .sku-input-demo-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.input-demo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.sku-input-example {
    background: rgba(15, 15, 30, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 1rem;
    width: 80px;
}

.sku-btn-example {
    background: var(--neon-cyan);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

.keyboard-shortcuts {
    margin: 3rem 0;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 15, 30, 0.6);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.shortcut-item kbd {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    color: #000;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.analysis-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.mode-card {
    background: rgba(15, 15, 30, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mode-card.premium {
    border-color: #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.mode-card.fast {
    border-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.3);
}

.mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mode-header i {
    font-size: 2rem;
}

.mode-card.premium .mode-header i {
    color: #ff6b35;
}

.mode-card.fast .mode-header i {
    color: #00d4ff;
}

.price {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: bold;
}

.mode-features ul {
    list-style: none;
    padding: 0;
}

.mode-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.mode-features li i {
    color: var(--neon-cyan);
    width: 20px;
}

.detection-showcase {
    margin: 4rem 0;
}

.detection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detection-item {
    background: rgba(15, 15, 30, 0.6);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.detection-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.2);
    border-color: var(--neon-magenta);
}

.detection-item i {
    font-size: 2.5rem;
    color: var(--neon-magenta);
    margin-bottom: 1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tip-card {
    background: rgba(15, 15, 30, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
}

.tip-card i {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.tip-card li::before {
    content: '▶';
    color: var(--neon-cyan);
    position: absolute;
    left: 0;
}

.troubleshooting {
    margin: 4rem 0;
}

.faq-item {
    background: rgba(15, 15, 30, 0.6);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-cyan);
    backdrop-filter: blur(10px);
}

.faq-item h4 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Help Screenshot Styling */
.help-screenshot {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.help-screenshot:hover {
    transform: scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.3);
}

.screenshot-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Enhanced screenshot container */
.screenshot-container {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .help-container {
        padding: 1rem;
    }
    
    .help-title {
        font-size: 2rem;
    }
    
    .help-navigation {
        gap: 0.5rem;
    }
    
    .help-nav-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .help-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .analysis-modes {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .help-screenshot {
        max-width: 100%;
    }
}

.photos-cell .photo-count {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.photos-cell .photo-count.good {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.photos-cell .photo-count.over {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.actions-cell .btn {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.95), rgba(124, 58, 237, 0.95));
    border: 1px solid rgba(147, 51, 234, 0.8);
    color: #fff !important;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.actions-cell .btn:hover {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.98), rgba(147, 51, 234, 0.98));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    color: #fff !important;
}

/* CRITICAL FIX: Enhanced visibility for export/delete buttons in dark theme */
.actions-cell .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: 1px solid #dc3545 !important;
    color: #fff !important;
    font-weight: 600;
}

.actions-cell .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    border-color: #bd2130 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5) !important;
    color: #fff !important;
}

.actions-cell .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: 1px solid #007bff !important;
    color: #fff !important;
    font-weight: 600;
}

.actions-cell .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    border-color: #004085 !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5) !important;
    color: #fff !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Unified Floating Buttons Container - All buttons on left side */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 0px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

/* Old processing buttons container - now unified in floating-buttons */

/* New unified Assign SKU button to match mode buttons */
.floating-assign-mode {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.95), rgba(124, 58, 237, 0.95));
    border: 2px solid rgba(147, 51, 234, 0.8);
}

/* New SKU input styling to match mode button design */
.floating-assign-mode .floating-sku-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 10px;
    text-align: center;
    width: 90px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.floating-assign-mode .floating-sku-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.floating-assign-mode .floating-sku-input::-webkit-outer-spin-button,
.floating-assign-mode .floating-sku-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.floating-assign-mode .floating-sku-input[type=number] {
    -moz-appearance: textfield;
}

.assign-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assign-content i {
    font-size: 16px;
}

.assign-content span {
    font-size: 14px;
    font-weight: 600;
}

/* Mode badge for assign button */
.mode-badge.assign {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 51, 234, 0.4);
}

/* Old assign button hover removed - using mode button styles now */



.floating-assign-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(0) scale(1);
}

.floating-assign-btn .fas {
    font-size: 18px;
    margin-bottom: 4px;
}

.floating-assign-btn span {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.floating-assign-btn .sku-indicator {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 6px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    border: 1px solid transparent;
}

.floating-assign-btn .sku-indicator:hover {
    background: rgba(0, 245, 255, 0.2);
    border: 1px solid rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
    transform: scale(1.05);
}

.floating-assign-btn .sku-indicator:focus {
    background: rgba(0, 245, 255, 0.3);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.5);
}

/* Spacebar hint - only show on desktop */
.spacebar-hint {
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 2px;
    letter-spacing: 1px;
    display: block;
}

/* Hide spacebar hint on mobile/tablet */
@media (max-width: 1024px) {
    .spacebar-hint {
        display: none;
    }
}

/* Floating Processing Mode Buttons */
.floating-mode-btn {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.95), rgba(124, 58, 237, 0.95));
    border: 1px solid rgba(147, 51, 234, 0.8);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(88, 28, 135, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.floating-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 28, 135, 0.6);
    border-color: rgba(168, 85, 247, 0.9);
}

.floating-mode-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.floating-fast-mode {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(25, 135, 84, 0.95));
    border-color: rgba(40, 167, 69, 0.8);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.floating-fast-mode:hover {
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.6);
    border-color: rgba(72, 180, 97, 0.9);
}

.floating-premium-mode {
    background: linear-gradient(135deg, rgba(102, 16, 242, 0.95), rgba(67, 56, 202, 0.95));
    border-color: rgba(102, 16, 242, 0.8);
    box-shadow: 0 4px 16px rgba(102, 16, 242, 0.4);
}

.floating-premium-mode:hover {
    box-shadow: 0 8px 24px rgba(102, 16, 242, 0.6);
    border-color: rgba(139, 92, 246, 0.9);
}

.floating-mode-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-mode-content i {
    font-size: 16px;
}

.mode-badge {
    font-size: 14px;
    opacity: 0.9;
}

.mode-badge.fast {
    animation: lightning 1.5s ease-in-out infinite;
}

.mode-badge.premium {
    animation: crown-glow 2s ease-in-out infinite;
}

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

@keyframes crown-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Mobile responsiveness for floating buttons - All on left side with proper spacing */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        left: 0px;
        gap: 12px;
    }
    
    /* Old processing buttons removed - now unified */
    
    .floating-mode-btn {
        min-width: 110px;
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .floating-mode-content {
        gap: 5px;
    }
    
    .floating-mode-content i {
        font-size: 13px;
    }
    
    .floating-assign-btn {
        min-width: 110px;
        border-radius: 10px;
    }
    
    .floating-sku-input-wrapper {
        padding: 6px 10px;
    }
    
    .floating-sku-input {
        font-size: 13px;
        padding: 4px 6px;
    }
    
    .floating-btn-content {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Extra small screens - iPhone SE and similar */
@media (max-width: 390px) {
    .floating-buttons {
        bottom: 15px;
        left: 0px;
        gap: 10px;
    }
    
    /* Old processing buttons removed - now unified */
    
    .floating-mode-btn {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .floating-assign-btn {
        min-width: 100px;
    }
    
    .floating-sku-input-wrapper {
        padding: 5px 8px;
    }
    
    .floating-btn-content {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Enhanced touch targets for iOS */
    .floating-mode-btn,
    .floating-assign-btn {
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px; /* iOS minimum touch target */
    }
    
    /* Prevent zoom on input focus */
    .floating-sku-input {
        font-size: 16px !important;
        -webkit-appearance: none;
        border-radius: 6px;
    }
    
    /* Better scroll behavior */
    .thumbnail-grid {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Improve selection visual feedback */
    .thumbnail {
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
        touch-action: manipulation;
    }
    
    .thumbnail.selected {
        transform: scale(0.98);
        transition: transform 0.15s ease;
    }
    
    /* Prevent text selection during touch interactions */
    .thumbnail,
    .floating-mode-btn,
    .floating-assign-btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Enhanced touch feedback animations */
@keyframes ios-touch-feedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.floating-mode-btn:active,
.floating-assign-btn:active {
    animation: ios-touch-feedback 0.15s ease-in-out;
}

/* Improved mobile grid layout */
@media (max-width: 768px) {
    .thumbnail-grid {
        gap: 8px;
        padding: 10px;
    }
    
    .thumbnail {
        border-radius: 8px;
        min-height: 120px;
        position: relative;
    }
    
    .thumbnail img {
        border-radius: 6px;
    }
    
    /* Better mobile selection indicators */
    .thumbnail.selected::before {
        content: "✓";
        position: absolute;
        top: 5px;
        right: 5px;
        background: rgba(0, 255, 255, 0.9);
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        z-index: 5;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
}

/* Landscape mobile optimizations */
@media (max-width: 812px) and (orientation: landscape) {
    .floating-buttons {
        bottom: 15px;
        left: 0px;
        gap: 8px;
    }
    
    /* Old processing buttons removed - now unified */
    
    .floating-mode-btn,
    .floating-assign-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 90px;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(13, 15, 26, 0.95) 0%, rgba(26, 29, 46, 0.95) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 255, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.modal-title {
    color: #0ff;
    font-weight: bold;
    font-size: 16px;
}

.modal-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #0ff;
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Futuristic Title Editing */
.title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.title-header strong {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 255, 255, 0.7);
}

.title-text {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    cursor: text;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px !important;
}

.title-text:hover:not([contenteditable="true"]) {
    background: rgba(0, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.title-text[contenteditable="true"] {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.15) 0%,
        rgba(255, 0, 255, 0.05) 100%) !important;
    border: 2px solid transparent !important;
    padding: 12px !important;
    border-radius: 8px !important;
    outline: none !important;
    color: #fff !important;
    word-wrap: break-word;
    line-height: 1.5;
    position: relative;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.3),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
        border-color: rgba(0, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.5),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
        border-color: rgba(0, 255, 255, 0.8);
    }
}

.title-text[contenteditable="true"]:focus {
    border-color: #0ff !important;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.15) !important;
    animation: none;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-right: 5px;
}

.char-counter.error {
    color: #ff6666;
    font-weight: bold;
}

/* Title Actions - Futuristic Buttons */
.title-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: flex-start;
}

.title-actions .save-title-btn {
    background: linear-gradient(135deg, var(--accent-green), #00cc66);
    color: white;
    border: 2px solid var(--accent-green);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.title-actions .save-title-btn:hover {
    background: linear-gradient(135deg, #00cc66, var(--accent-green));
    border-color: #00cc66;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}

.title-actions .cancel-title-btn {
    background: linear-gradient(135deg, var(--accent-red), #cc0033);
    color: white;
    border: 2px solid var(--accent-red);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

.title-actions .cancel-title-btn:hover {
    background: linear-gradient(135deg, #cc0033, var(--accent-red));
    border-color: #cc0033;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    transform: translateY(-1px);
}

/* Processing Status Indicators with Colored Borders */
/* Status indicators with colored borders and glow effects */
.status-processing {
    border: 3px solid #ffc107 !important;
    border-radius: 50% !important;
    padding: 6px !important;
    background: #ffc107 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6) !important;
    animation: pulse-warning 2s infinite !important;
    display: inline-block !important;
    margin: 2px !important;
}

.status-completed {
    border: 3px solid var(--accent-green) !important;
    border-radius: 50% !important;
    padding: 6px !important;
    background: var(--accent-green) !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6) !important;
    display: inline-block !important;
    margin: 2px !important;
}

.status-failed {
    border: 3px solid var(--accent-red) !important;
    border-radius: 50% !important;
    padding: 6px !important;
    background: var(--accent-red) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6) !important;
    animation: pulse-error 2s infinite !important;
    display: inline-block !important;
    margin: 2px !important;
}

/* Mode badges with colored borders */
.mode-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.mode-fast {
    color: #000 !important;
    background: #ffc107 !important;
    border: 3px solid #ffc107 !important;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.mode-premium {
    color: #fff !important;
    background: var(--accent-magenta) !important;
    border: 3px solid var(--accent-magenta) !important;
    box-shadow: 0 0 8px rgba(255, 0, 128, 0.6);
}

/* Upload Mode Indicators with Colored Borders */
.upload-mode-fast {
    border: 3px solid var(--accent-cyan) !important;
    border-radius: 8px;
    padding: 4px 8px;
    background: var(--accent-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
    font-weight: 600;
}

.upload-mode-premium {
    border: 3px solid var(--accent-magenta) !important;
    border-radius: 8px;
    padding: 4px 8px;
    background: var(--accent-magenta) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.6);
    font-weight: 600;
}

.upload-mode-standard {
    border: 3px solid var(--text-secondary) !important;
    border-radius: 8px;
    padding: 4px 8px;
    background: var(--text-secondary) !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(184, 188, 200, 0.6);
    font-weight: 600;
}

@keyframes pulse-warning {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
        border-color: #ffc107;
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
        border-color: #ffca28;
    }
}

@keyframes pulse-error {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
        border-color: var(--accent-red);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.7);
        border-color: #ff6b7a;
    }
}

.futuristic-btn {
    background: linear-gradient(135deg, rgba(13, 15, 26, 0.9), rgba(20, 25, 40, 0.9));
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.futuristic-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0ff, #f0f, #0ff);
    border-radius: 25px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.futuristic-btn:hover::before {
    opacity: 1;
    animation: rotate-gradient 2s linear infinite;
}

.futuristic-btn.save {
    border-color: rgba(0, 255, 255, 0.3);
}

.futuristic-btn.save:hover {
    border-color: #0ff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.futuristic-btn.cancel {
    border-color: rgba(255, 0, 255, 0.3);
}

.futuristic-btn.cancel:hover {
    border-color: #f0f;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 16px;
    display: inline-block;
}

.btn-text {
    font-size: 11px;
}

.title-editor {
    margin-top: 8px;
}

.title-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
}

.title-input:focus {
    outline: none;
    border-color: #0ff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.title-buttons {
    display: flex;
    gap: 8px;
}

.save-title-btn {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    border: none;
    border-radius: 6px;
    color: #000;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-title-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.cancel-title-btn {
    background: rgba(255, 71, 87, 0.8);
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-title-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 71, 87, 1);
}

/* Result Image Clickability */
.result-image {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.result-image:hover {
    border-color: #0ff;
    transform: scale(1.1) rotate(3deg);
    box-shadow: 
        0 10px 30px rgba(0, 255, 255, 0.5),
        0 0 60px rgba(0, 255, 255, 0.3);
    filter: brightness(1.2) contrast(1.1);
}

/* Flash Notification Styles */
.flash-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 204, 102, 0.9));
    color: #000;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.flash-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-notification.success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.9), rgba(0, 204, 102, 0.9));
}

.flash-notification.info {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.9), rgba(0, 150, 200, 0.9));
}

/* ========== Streaming Results Styles ========== */
.streaming-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.streaming-header h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.progress-text {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.result-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.result-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.logo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: black;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.completion-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.completion-stats span {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.btn-export-results {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-export-results:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
}

.badge-success {
    background: rgba(0, 255, 0, 0.2) !important;
    border-color: rgba(0, 255, 0, 0.5) !important;
    color: #00ff00;
}

/* Loading Container */
.loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.loading-container.active {
    display: flex !important;
}

/* Upload Progress Modal */
#uploadProgressModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    backdrop-filter: blur(10px);
}

#uploadProgressModal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#uploadProgressModal .modal-content {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-green {
    color: #00ff00;
}

/* Drag Select Indicator for Mobile Multi-Select */
.drag-select-indicator {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drag-select-indicator.show {
    opacity: 1;
}

.drag-select-indicator .indicator-content {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.drag-select-indicator .indicator-content i {
    font-size: 1rem;
    animation: wiggle 0.8s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* Enhanced mobile thumbnail selection feedback */
@media (max-width: 768px) {
    .thumbnail.selected {
        border: 3px solid var(--accent-cyan);
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
        transform: scale(0.95);
        position: relative;
    }
    
    .thumbnail.selected::after {
        content: '✓';
        position: absolute;
        top: 5px;
        right: 5px;
        background: var(--accent-cyan);
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        z-index: 5;
    }
    
    .thumbnail {
        transition: all 0.2s ease;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    .thumbnail:active {
        transform: scale(0.92);
        opacity: 0.8;
    }
    
    /* Prevent text selection during drag */
    .thumbnail-grid {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

.warning-yellow {
    color: #ffcc00;
}

/* Footer styles */
.app-footer {
    background: rgba(15, 15, 26, 0.95);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 20px 0;
    margin-top: auto;
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-footer .footer-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-footer .footer-links a:hover {
    color: var(--accent-magenta);
    text-decoration: underline;
}

/* Legal page styles */
.legal-page {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: var(--text-light);
}

.legal-content {
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
}

.legal-content h1 {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-magenta);
    padding-bottom: 0.5rem;
}

.legal-content h2 {
    color: var(--accent-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--accent-magenta);
    margin-top: 1.5rem;
}

/* Image Error Handling Styles */
.image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    color: var(--accent-red);
    font-size: 12px;
    text-align: center;
    min-height: 100px;
}

.image-error i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.modal-image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid rgba(255, 71, 87, 0.3);
    border-radius: 12px;
    color: var(--accent-red);
    text-align: center;
    min-height: 200px;
    font-size: 16px;
}

.modal-image-error i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.modal-image-error small {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Simple Click Selection */
#thumbnailGrid {
    position: relative;
}

/* Enhanced thumbnail selection feedback */
.thumbnail.selected {
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.8), inset 0 0 20px rgba(0, 245, 255, 0.2);
    border: 2px solid var(--accent-cyan);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    /* Prevent any pulsing animations on selected thumbnails */
    animation: none !important;
}

.thumbnail:hover {
    border-color: rgba(0, 245, 255, 0.4);
    transition: border-color 0.2s ease;
    /* Prevent any pulsing animations on hover */
    animation: none !important;
}

/* Status and Mode Badges */
.result-badges {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.result-badges span {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 2px solid;
}

/* Status badges */
.status-processing {
    background: linear-gradient(135deg, #ffb347, #ff8c00);
    color: var(--primary-bg);
    border-color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.status-completed {
    background: var(--accent-green) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.status-failed {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

/* Mode badges */
.upload-mode-fast {
    background: linear-gradient(135deg, #00f5ff, #0099cc);
    color: var(--primary-bg);
    border-color: #00f5ff;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

.upload-mode-premium {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
    color: white;
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

/* SKU thumbnail styles for confirmation modal */
.confirm-sku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.confirm-sku-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.2s ease;
}

.confirm-sku-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-cyan);
}

.sku-thumbnail-container {
    position: relative;
    margin-bottom: 8px;
}

.sku-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--border);
}

.sku-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    z-index: 10;
}

.sku-remove-btn:hover {
    background: #ff6b7a;
    transform: scale(1.1);
}

.sku-info {
    text-align: center;
}

.sku-number {
    display: block;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 12px;
    margin-bottom: 2px;
}

.sku-count {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
}
