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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f5f5f5;
            min-height: 100vh;
            overflow-x: hidden;
            padding-bottom: 35px; /* Space for footer */
        }

        .app-container {
            max-width: 100%;
            margin: 0 auto;
        }

.scanner-wrapper {
    position: relative;
    background: #000;
    height: 250px; /* Increased height for better mobile experience */
    width: 100%;
    max-width: 400px; /* Maximum width for larger screens */
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto; /* Center the scanner */
}

#reader {
    width: 100% !important;
    height: 100% !important;
    position: relative;
}

/* Ensure the video element fits properly */
#reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important; /* Remove any transforms that might break mobile layout */
}

/* Target the canvas and other elements html5-qrcode creates */
#reader > div:first-child {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Style the scanner box overlay */
#reader canvas:first-child {
    display: none; /* Hide the default scanning box if it's causing issues */
}

.scanner-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}

.scanner-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.scanner-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 20;
    display: none;
}

.scanner-error.show {
    display: flex;
}

.flashlight-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    z-index: 15;
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .scanner-container {
        justify-content: flex-end; /* Right-align on mobile */
        padding: 10px 5px;
    }
    
    .scanner-wrapper {
        width: 95%;
        max-width: 350px; /* Slightly smaller on mobile */
        margin-left: auto; /* Push to right */
        margin-right: 0;
    }
    
    /* Ensure proper viewport handling */
    #reader {
        transform: none !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .scanner-wrapper {
        height: 280px;
        width: 98%;
    }
}

/* Container for centering (add this if you don't have it) */
.scanner-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.scanner-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.scanner-warning i {
    color: #ffc107;
}

.scanner-status {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.scanner-status i {
    color: #17a2b8;
}

.scanner-status .fa-spinner {
    animation: spin 1s linear infinite;
}

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

.scanned-item-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0;
    max-height: 60px;
    overflow-y: auto;
}

.item-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.item-photo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.photo-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.photo-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.full-size-photo {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.close-photo-viewer {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-photo-viewer:hover {
    color: #ddd;
}













        .controls {
            padding: 15px;
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            position: relative;
        }

        .input-row {
            gap: 10px;
            margin-bottom: 10px;
        }

        .input-group {
            flex: 1;
        }

        .input-group.quantity {
            flex: 0 0 80px;
            position: relative;
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper input, .input-wrapper textarea {
            width: 100%;
            padding: 10px 35px 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            background: #f8f9fa;
            transition: all 0.2s;
            resize: none;
            color: #333 !important;
        }

        .input-wrapper input:focus, .input-wrapper textarea:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
        }

        .input-wrapper .input-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 14px;
        }

        /* Quantity controls */
        .quantity-controls {
            display: flex;
            align-items: center;
            height: 100%;
        }

        .quantity-btn {
            background: #f0f0f0;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .quantity-btn:active {
            background: #e0e0e0;
            transform: scale(0.95);
        }

        .quantity-input {
            flex: 1;
            text-align: center;
            border: none;
            background: transparent;
            font-size: 14px;
            font-weight: 600;
        }

        .btn-row {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .btn {
            padding: 12px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            flex: 1;
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
            flex: 1;
        }

        .btn-danger {
            background: #f44336;
            color: white;
            flex: 0.5;
        }

        .btn:active {
            transform: scale(0.98);
        }


.item-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.item-confirmation.active {
    opacity: 1;
    pointer-events: auto;
}

/* New item confirmation - full screen */
.item-confirmation.new-item-confirmation {
    /* Already full screen by default */
}

.item-confirmation.new-item-confirmation .item-confirmation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.item-confirmation.new-item-confirmation .item-confirmation-image {
    width: 100%;
    height: 60%;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

.item-confirmation.new-item-confirmation .item-confirmation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-confirmation.new-item-confirmation .item-confirmation-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.item-confirmation.new-item-confirmation .item-confirmation-code {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.item-confirmation.new-item-confirmation .item-confirmation-comment {
    margin-bottom: 20px;
    flex: 0 0 auto;
}

.item-confirmation.new-item-confirmation .item-confirmation-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.2s;
    resize: none;
    min-height: 80px;
    color: #333 !important;
}

.item-confirmation.new-item-confirmation .item-confirmation-comment textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.item-confirmation.new-item-confirmation .item-confirmation-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.item-confirmation.new-item-confirmation .item-confirmation-actions .btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
}

 
.item-confirmation.existing-item-confirmation {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 320px;
    height: auto;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.item-confirmation.existing-item-confirmation .item-confirmation-content {
    text-align: center;
    padding: 15px;
}

.item-confirmation.existing-item-confirmation .item-confirmation-image {
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
}

.item-confirmation.existing-item-confirmation .item-confirmation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-confirmation.existing-item-confirmation .item-confirmation-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-confirmation.existing-item-confirmation .item-confirmation-name a {
    color: #667eea;
    text-decoration: none;
}

.item-confirmation.existing-item-confirmation .item-confirmation-name a:hover {
    text-decoration: underline;
}

.item-confirmation.existing-item-confirmation .item-confirmation-code {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    word-break: break-all;
}

.item-confirmation.existing-item-confirmation .item-confirmation-actions {
    display: flex;
    gap: 10px;
}

.item-confirmation.existing-item-confirmation .item-confirmation-actions .btn {
    flex: 1;
    margin-top: 0;
    padding: 10px;
}

/* Common styles */
.item-confirmation-image .placeholder {
    color: #999;
    font-size: 14px;
}

.item-confirmation-name a {
    color: #667eea;
    text-decoration: none;
}

.item-confirmation-name a:hover {
    text-decoration: underline;
}

.item-confirmation-comment .input-wrapper {
    position: relative;
}

.item-confirmation-comment .input-icon {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #999;
    font-size: 14px;
}

/* Add a class for scanned item code */
.scanned-item-code {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    font-family: monospace;
}

/* Update the item-confirmation CSS for mobile keyboard handling */
@media (max-width: 768px) {
    .item-confirmation.new-item-confirmation {
        top: 0 !important;
        transform: none !important;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        overflow-y: auto;
    }
    
    .item-confirmation.new-item-confirmation .item-confirmation-content {
        padding: 15px;
        padding-top: 30px; /* Add space at the top for better visibility */
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .item-confirmation.new-item-confirmation .item-confirmation-image {
        height: 35%; /* Reduce height to make room for keyboard */
        margin-bottom: 15px;
        max-height: 250px;
    }
    
    .item-confirmation.new-item-confirmation .item-confirmation-actions {
        margin-top: auto;
        padding-bottom: 20px; /* Add space at the bottom */
    }
    
    /* Handle keyboard visibility changes */
    .keyboard-open .item-confirmation.new-item-confirmation .item-confirmation-image {
        height: 25%; /* Further reduce when keyboard is open */
    }

    /* Ensure input fields are properly styled on mobile */
    .input-wrapper input, .input-wrapper textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 35px 12px 12px;
    }
    
    /* Better focus styles for mobile */
    .input-wrapper input:focus, .input-wrapper textarea:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
    
    /* Adjust confirmation dialog input fields */
    .item-confirmation .input-wrapper input, 
    .item-confirmation .input-wrapper textarea {
        font-size: 16px;
        padding: 12px 35px 12px 12px;
    }
    
    /* Better button spacing on mobile */
    .btn-row {
        gap: 8px;
    }
    
    .btn {
        padding: 14px 10px;
        font-size: 13px;
    }
}


/* Media adjustments for smaller screens */
@media (max-width: 480px) {
    .item-confirmation {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .item-confirmation-image {
        height: 140px;
    }
}

        .scanned-list {
            background: white;
            margin: 10px;
            padding: 12px;
            border-radius: 8px;
            box-shadow: 0 1px 5px rgba(0,0,0,0.05);
        }

        .scanned-list h3 {
            font-size: 14px;
            font-weight: 600;
            color: #666;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .scanned-item {
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        .scanned-item:last-child {
            border-bottom: none;
        }

        .scanned-item.done {
            display: none;
        }

        .scanned-item-info {
            flex: 1;
        }

        .scanned-item-name {
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }

        .scanned-item-name a {
            color: #667eea;
            text-decoration: none;
        }

        .scanned-item-details {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }

        .quantity-badge {
            display: inline-block;
            background: #667eea;
            color: white;
            font-size: 16px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 12px;
            margin-left: 8px;
        }

        .delete-item-btn {
            background: none;
            border: none;
            color: #f44336;
            font-size: 16px;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: background 0.2s;
        }

        .delete-item-btn:hover {
            background: rgba(244, 67, 54, 0.1);
        }

        /* Status bar - temporary messages */
        .status-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 8px;
            text-align: center;
            font-size: 12px;
            transform: translateY(100%);
            transition: transform 0.3s;
            z-index: 200;
        }

        .status-bar.show {
            transform: translateY(0);
        }

        /* Footer - always visible */
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.8);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 8px 0;
            z-index: 100;
        }

        .footer-item {
            display: flex;
            align-items: center;
            font-size: 11px;
            color: #ccc;
        }

        .footer-item i {
            font-size: 14px;
            margin-right: 4px;
        }

        .connection-icon.online {
            color: #4caf50;
        }

        .connection-icon.offline {
            color: #f44336;
        }

        .empty-state {
            text-align: center;
            padding: 20px;
            color: #999;
            font-size: 13px;
        }

        .empty-state i {
            font-size: 32px;
            margin-bottom: 8px;
            opacity: 0.5;
        }

        /* Audio elements for sounds */
        .audio-container {
            display: none;
        }
        
        
        // Add CSS for the spinning animation:
        .spinning {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        // Add these CSS styles to ensure the online/offline status is visible:
        .connection-icon.online {
            color: #4CAF50; /* Green for online */
        }
        
        .connection-icon.offline {
            color: #F44336; /* Red for offline */
        }
        
        
        
        


/* Mobile-specific styles for photo capture dialog */
@media (max-width: 768px) {
    .photo-capture-dialog {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        padding: 10px;
    }
    
    .photo-capture-content {
        background: white;
        border-radius: 10px;
        padding: 15px;
        max-width: 100%;
        max-height: 100vh;
        overflow-y: auto;
        width: 100%;
    }
    
    .photo-capture-content h3 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #333;
        font-size: 18px;
    }
    
    .photo-capture-content p {
        margin-bottom: 15px;
        color: #666;
        word-break: break-all;
        font-size: 14px;
    }
    
    .photo-preview {
        //height: 200px;
        margin-bottom: 10px;
    }
    
    .photo-capture-controls {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
    }
    
    .photo-thumbnail {
        position: relative;
        width: 80px;
        height: 80px;
        margin: 5px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
    }
    
    .photo-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .photo-master-icon {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 24px;
        height: 24px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0.7;
        transition: all 0.2s ease;
    }
    
    .photo-master-icon:hover {
        opacity: 1;
        transform: scale(1.1);
    }
    
    .photo-master-icon.selected {
        background-color: #ffd700;
        opacity: 1;
    }
    
    .photo-master-icon i {
        color: #333;
        font-size: 14px;
    }
    
    .photo-master-icon.selected i {
        color: #333;
    }
    
    .photo-preview {
        cursor: pointer;
    }
    
    @media (max-width: 768px) {
        .photo-capture-controls {
            flex-direction: row-reverse;
        }
        
        .photo-capture-controls button {
            margin: 0 5px;
        }
    }
    
    .photo-capture-controls .btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .photo-thumbnails {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .photo-thumbnail {
        width: 70px;
        height: 70px;
    }
}


.photo-capture-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-capture-dialog.active {
    opacity: 1;
    pointer-events: auto;
}

.photo-capture-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.photo-capture-dialog.active .photo-capture-content {
    transform: scale(1);
}

.photo-capture-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.photo-capture-content p {
    word-break: break-all;
    color: #555;
    margin-bottom: 20px;
    font-family: monospace;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
}


.camera-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.camera-preview {
    width: 100%;
    //height: 200px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.camera-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.camera-placeholder i {
    font-size: 32px;
    margin-bottom: 10px;
}

.photo-preview-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.photo-preview {
    flex: 1;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photo-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    min-width: 80px;
    color: #666;
    font-size: 14px;
}

.photo-count span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}


@media (max-width: 768px) {
    .camera-container {
        flex-direction: column;
    }
    
    .photo-preview-container {
        flex-direction: column;
    }
    
    .photo-preview {
        height: 120px;
    }
    
    .photo-count {
        flex-direction: row;
        min-width: auto;
        padding: 5px 10px;
        gap: 5px;
    }
    
    .photo-count span {
        margin-bottom: 0;
        margin-right: 5px;
    }
}


.unknown-code-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.unknown-code-dialog.active {
    opacity: 1;
    visibility: visible;
}

.unknown-code-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.unknown-code-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.unknown-code-content p {
    margin-bottom: 20px;
    color: #666;
    text-align: center;
    font-weight: bold;
}

.unknown-code-inputs {
    margin-bottom: 20px;
}

.unknown-code-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.unknown-code-preview {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.preview-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.camera-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.camera-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-btn, .retake-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.captured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .unknown-code-content {
        width: 95%;
        padding: 15px;
    }
    
    .unknown-code-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .unknown-code-actions button {
        width: 100%;
    }
}