
        .camera-container {
            position: relative;
            width: 100%;
            height: 55vh;
            display: flex;
            flex-direction: column;
        }

        .camera-view {
            flex: 1;
            position: relative;
            overflow: hidden;
        }

        .camera-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 10;
        }

        .settings-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .settings-btn:hover {
            background: rgba(0, 0, 0, 0.8);
            border-color: rgba(255, 255, 255, 0.6);
            transform: rotate(90deg);
        }


        #videoElement {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scaleX(-1); /* Mirror front camera */
        }

        #videoElement.back-camera {
            transform: none; /* Don't mirror back camera */
        }

        .camera-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
        }

        /* Camera grid lines */
        .grid-lines {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.3;
            pointer-events: none;
        }

        .grid-lines::before,
        .grid-lines::after {
            content: '';
            position: absolute;
            background: rgba(255, 255, 255, 0.5);
        }

        .grid-lines::before {
            top: 33.333%;
            left: 0;
            right: 0;
            height: 1px;
            box-shadow: 0 33.333vh 0 rgba(255, 255, 255, 0.5);
        }

        .grid-lines::after {
            left: 33.333%;
            top: 0;
            bottom: 0;
            width: 1px;
            box-shadow: 33.333vw 0 0 rgba(255, 255, 255, 0.5);
        }

        .top-controls {
            position: absolute;
            top: 20px;
            left: 20px;
            right: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
            pointer-events: auto;
        }

        .flash-toggle, .close-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            border: none;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
        }

        .flash-toggle svg, .close-btn svg, .camera-switch svg {
            width: 20px;
            height: 20px;
            stroke-width: 2;
        }

        .flash-toggle:hover, .close-btn:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        .flash-toggle.active {
            background: rgba(255, 235, 59, 0.8);
            color: #000;
        }

        .flash-toggle.active svg {
            stroke: #000;
        }

        .bottom-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 30px 20px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 40px;
            z-index: 10;
            pointer-events: auto;
        }

        .camera-switch {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.5);
            color: white;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .camera-switch:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }

        .capture-btn {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: white;
            border: 6px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.1s;
            position: relative;
        }

        .capture-btn:hover {
            transform: scale(1.05);
        }

        .capture-btn:active {
            transform: scale(0.95);
        }

        .capture-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #fff;
            transition: all 0.1s;
        }

        .capture-btn:active::after {
            width: 50px;
            height: 50px;
        }

        /* Photo Review Mode */
        .photo-review {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #000;
            z-index: 20;
        }

        .photo-review.active {
            display: flex;
            flex-direction: column;
        }

        .photo-preview {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        #capturedPhoto {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .review-controls {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            background: rgba(0, 0, 0, 0.9);
        }

        .review-btn-row {
            display: flex;
            justify-content: space-around;
            align-items: center;
            gap: 15px;
        }

        .review-btn {
            padding: 12px 20px;
            border-radius: 25px;
            border: 2px solid;
            background: transparent;
            color: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            flex: 1;
            max-width: 140px;
            text-align: center;
        }

        .retake-btn {
            border-color: #ff5722;
            color: #ff5722;
        }

        .retake-btn:hover {
            background: #ff5722;
            color: white;
        }

        .upload-now-btn {
            border-color: #2196f3;
            color: #2196f3;
        }

        .upload-now-btn:hover {
            background: #2196f3;
            color: white;
        }

        .upload-later-btn {
            border-color: #ff9800;
            color: #ff9800;
        }

        .upload-later-btn:hover {
            background: #ff9800;
            color: white;
        }

        .upload-now-btn:disabled,
        .upload-later-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .upload-now-btn:disabled:hover,
        .upload-later-btn:disabled:hover {
            background: transparent;
            color: inherit;
        }

        /* Loading state */
        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            text-align: center;
            z-index: 15;
        }

      

        /* Error message */
        .error-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(244, 67, 54, 0.9);
            color: white;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            max-width: 300px;
            z-index: 25;
            display: none;
        }

        .error-message.show {
            display: block;
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .bottom-controls {
                gap: 30px;
                padding: 25px 15px;
            }
            
            .capture-btn {
                width: 70px;
                height: 70px;
            }
            
            .capture-btn::after {
                width: 50px;
                height: 50px;
            }
        }

        .settings-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            z-index: 20;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            overflow-y: auto;
        }

        .settings-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .settings-content {
            padding: 0px 10px 10px;
            max-width: 400px;
            margin: 0 auto;
        }

        .settings-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            color: white;
        }

        .settings-title {
            font-size: 24px;
            font-weight: 600;
        }

        .close-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .setting-group {
            margin-bottom: 30px;
        }

        .setting-label {
            color: white;
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 12px;
            display: block;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #333;
            transition: 0.3s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #007AFF;
        }

        input:checked + .slider:before {
            transform: translateX(26px);
        }

        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: white;
        }

        .radio-option:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .radio-option:has(input:checked) {
            background-color: rgba(0, 122, 255, 0.2);
            border-color: rgba(0, 122, 255, 0.8);
            color: #007AFF;
            font-weight: 600;
        }

        .radio-option input[type="radio"] {
            margin-right: 12px;
            accent-color: #007AFF;
        }

        .slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .setting-header {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.quality-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quality-option {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.quality-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quality-option.selected {
    background: rgba(0, 122, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.8);
}

.quality-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.quality-desc {
    font-size: 12px;
    opacity: 0.8;
}

.quality-info {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
    text-align: center;
}

        .quality-slider {
            flex: 1;
            height: 4px;
            border-radius: 2px;
            background: #333;
            outline: none;
            -webkit-appearance: none;
        }

        .quality-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #007AFF;
            cursor: pointer;
        }

        .quality-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #007AFF;
            cursor: pointer;
            border: none;
        }

        .quality-value {
            color: #007AFF;
            font-weight: 600;
            min-width: 40px;
        }

        .setting-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
            margin: 25px 0;
        }

        /* Cog icon */
        .cog-icon {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

         .delete-files-btn {
            width: 100%;
            padding: 14px 20px;
            background: rgba(255, 59, 48, 0.1);
            border: 2px solid rgba(255, 59, 48, 0.3);
            border-radius: 12px;
            color: #ff3b30;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.2s ease;
        }

        .delete-files-btn:hover {
            background: rgba(255, 59, 48, 0.2);
            border-color: rgba(255, 59, 48, 0.5);
        }

        .delete-files-btn:active {
            transform: scale(0.98);
        }

        .delete-icon {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }