        /* General Reset and Typography from your design */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f7f9fc;
        }

        /* Container - Renamed to match your #user-profile */
        #user-profile {
            max-width: 80%;
            margin: 40px auto;
            padding: 40px;
            border: none;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        /* Headings from your design */
        #user-profile h2 { /* Scoped to #user-profile */
            font-size: 32px;
            font-weight: 700;
            margin: 30px 0 20px;
            color: #2c3e50;
        }
        /* Specific h2 within the user-profile div from your snippet (user-h2) */
        #user-profile .user-h2 {
            font-size: 32px;
            font-weight: 700;
            margin: 30px 0 20px;
            color: #2c3e50;
        }


        /* Form Inputs from your design */
        #user-profile input[type="text"], /* Scoped to #user-profile */
        #user-profile input[type="password"],
        #user-profile input[type="tel"],
        #user-profile input[type="email"],
        #user-profile .user-input { /* Added user-input class */
            width: 100%;
            padding: 14px 18px;
            margin: 10px 0;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            color: #444;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        #user-profile input:focus, /* Scoped to #user-profile */
        #user-profile .user-input:focus { /* Added user-input class */
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
        }

        /* Buttons from your design */
        #user-profile button, /* Scoped to #user-profile */
        #user-profile .user-button { /* Added user-button class */
            background-color: #007bff;
            color: #fff;
            padding: 14px 28px;
            border: none;
            border-radius: 8px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
        }

        #user-profile button:hover, /* Scoped to #user-profile */
        #user-profile .user-button:hover { /* Added user-button class */
            background-color: #0056b3;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 123, 255, 0.25);
        }

        #user-profile button:active, /* Scoped to #user-profile */
        #user-profile .user-button:active { /* Added user-button class */
            transform: translateY(0);
            box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
        }

        #user-profile .cancelbtn, /* Scoped to #user-profile */
        #user-profile .user-cancelbtn { /* Added user-cancelbtn class */
            background-color: #6c757d;
            padding: 12px 24px;
            box-shadow: none;
        }

        #user-profile .cancelbtn:hover, /* Scoped to #user-profile */
        #user-profile .user-cancelbtn:hover { /* Added user-cancelbtn class */
            background-color: #5a6268;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(108, 117, 125, 0.15);
        }

        /* Delete Button from your design */
        #user-profile .delete-btn, /* Scoped to #user-profile */
        #user-profile .user-delete-btn { /* Added user-delete-btn class */
            background-color: #dc3545;
            color: #fff;
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            font-size: 15px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.1s ease;
            box-shadow: 0 2px 5px rgba(220, 53, 69, 0.1);
        }

        #user-profile .delete-btn:hover, /* Scoped to #user-profile */
        #user-profile .user-delete-btn:hover { /* Added user-delete-btn class */
            background-color: #c82333;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
        }

        #user-profile .delete-selected-btn, /* Scoped to #user-profile */
        #user-profile .user-delete-selected-btn { /* Added user-delete-selected-btn class */
            background-color: #dc3545;
            color: #fff;
            padding: 14px 28px;
            border: none;
            border-radius: 8px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 10px rgba(220, 53, 69, 0.15);
            margin-top: 20px;
        }

        #user-profile .delete-selected-btn:hover, /* Scoped to #user-profile */
        #user-profile .user-delete-selected-btn:hover { /* Added user-delete-selected-btn class */
            background-color: #c82333;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(220, 53, 69, 0.25);
        }

        #user-profile .delete-selected-btn:active, /* Scoped to #user-profile */
        #user-profile .user-delete-selected-btn:active { /* Added user-delete-selected-btn class */
            transform: translateY(0);
            box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
        }

        /* Checkbox from your design */
        #user-profile input[type="checkbox"], /* Scoped to #user-profile */
        #user-profile .user-checkbox { /* Added user-checkbox class */
            width: 18px;
            height: 18px;
            margin-right: 10px;
            cursor: pointer;
        }

        /* Tabs from your design */
        #user-profile .nav-tabs, /* Scoped to #user-profile */
        #user-profile .user-nav-tabs { /* Added user-nav-tabs class */
            display: flex;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 30px;
            list-style: none;
            padding-left: 0;
        }

        #user-profile .nav-tabs .title, /* Scoped to #user-profile */
        #user-profile .user-nav-tabs .user-title { /* Added user-title class */
            font-size: 22px;
            font-weight: 700;
            color: #2c3e50;
            padding: 10px 25px 10px 0;
            margin-right: 25px;
            border-right: 1px solid #eee;
        }

        #user-profile .nav-item, /* Scoped to #user-profile */
        #user-profile .user-nav-item { /* Added user-nav-item class */
            margin: 0;
        }

        #user-profile .nav-link, /* Scoped to #user-profile */
        #user-profile .user-nav-link { /* Added user-nav-link class */
            display: block;
            padding: 12px 20px;
            font-size: 16px;
            color: #666;
            text-decoration: none;
            transition: color 0.3s ease, background-color 0.3s ease, border-bottom 0.3s ease;
            position: relative;
            font-weight: 500;
        }

        #user-profile .nav-link:hover, /* Scoped to #user-profile */
        #user-profile .user-nav-link:hover { /* Added user-nav-link class */
            color: #007bff;
            background-color: #f0f4f8;
        }

        #user-profile .nav-link.active, /* Scoped to #user-profile */
        #user-profile .user-nav-link.active { /* Added user-nav-link class */
            color: #007bff;
            border-bottom: 3px solid #007bff;
            font-weight: 600;
            background-color: #f7f9fc;
        }

        /* Form Layout from your design */
        #user-profile .profile .row, /* Scoped to #user-profile and .profile */
        #user-profile .user-row { /* Added user-row class */
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 20px;
        }

        #user-profile .group, /* Scoped to #user-profile */
        #user-profile .user-group { /* Added user-group class */
            margin-bottom: 0;
        }

        #user-profile .group label, /* Scoped to #user-profile */
        #user-profile .user-group label { /* Added user-group class */
            font-size: 15px;
            font-weight: 600;
            color: #555;
            display: block;
            margin-bottom: 8px;
        }

        /* OCR History Table from your design */
        #user-profile .ocr-history-table, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table { /* Added user-ocr-history-table class */
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 10px;
            margin-top: 30px;
            font-size: 15px;
            border-radius: 10px;
            overflow: hidden;
        }

        #user-profile .ocr-history-table th, /* Scoped to #user-profile */
        #user-profile .ocr-history-table td,
        #user-profile .user-ocr-history-table th, /* Added user-ocr-history-table class */
        #user-profile .user-ocr-history-table td { /* Added user-ocr-history-table class */
            padding: 15px 20px;
            border: none;
            text-align: left;
            background-color: #fff;
        }

        #user-profile .ocr-history-table th, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table th { /* Added user-ocr-history-table class */
            background-color: #e9ecef;
            font-weight: 700;
            color: #495057;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        #user-profile .ocr-history-table tr, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table tr { /* Added user-ocr-history-table class */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        #user-profile .ocr-history-table tr:hover, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table tr:hover { /* Added user-ocr-history-table class */
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1;
        }

        #user-profile .ocr-history-table tr:first-child th:first-child, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table tr:first-child th:first-child { border-top-left-radius: 10px; }
        #user-profile .ocr-history-table tr:first-child th:last-child, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table tr:first-child th:last-child { border-top-right-radius: 10px; }
        #user-profile .ocr-history-table tr:last-child td:first-child, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table tr:last-child td:first-child { border-bottom-left-radius: 10px; }
        #user-profile .ocr-history-table tr:last-child td:last-child, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table tr:last-child td:last-child { border-bottom-right-radius: 10px; }

        #user-profile .ocr-history-table img, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table img { /* Added user-ocr-history-table class */
            max-width: 90px;
            height: auto;
            border-radius: 6px;
            display: block;
            object-fit: cover;
            transition: transform 0.2s ease;
        }

        #user-profile .ocr-history-table img:hover, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table img:hover { /* Added user-ocr-history-table class */
            transform: scale(1.05);
        }

        #user-profile .ocr-history-table a, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table a { /* Added user-ocr-history-table class */
            color: #007bff;
            text-decoration: none;
            font-weight: 500;
            transition: text-decoration 0.2s ease;
        }

        #user-profile .ocr-history-table a:hover, /* Scoped to #user-profile */
        #user-profile .user-ocr-history-table a:hover { /* Added user-ocr-history-table class */
            text-decoration: underline;
        }

        /* Activation Notice from your design */
        #user-profile .activation-notice, /* Scoped to #user-profile */
        #user-profile .user-activation-notice { /* Added user-activation-notice class */
            background-color: #fff3cd;
            border: 1px solid #ffeeba;
            padding: 18px;
            margin-bottom: 30px;
            border-radius: 8px;
            color: #856404;
            font-size: 15px;
        }

        #user-profile .activation-notice a, /* Scoped to #user-profile */
        #user-profile .user-activation-notice a { /* Added user-activation-notice class */
            color: #007bff;
            font-weight: 600;
            text-decoration: none;
            transition: text-decoration 0.2s ease;
        }

        #user-profile .activation-notice a:hover, /* Scoped to #user-profile */
        #user-profile .user-activation-notice a:hover { /* Added user-activation-notice class */
            text-decoration: underline;
        }

        /* Alert Container from your design */
        #user-profile .alert-container { /* Scoped to #user-profile */
            margin-bottom: 20px;
        }

        #user-profile .alert, /* Scoped to #user-profile */
        #user-profile .user-alert { /* Added user-alert class */
            padding: 15px 20px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        #user-profile .alert-success, /* Scoped to #user-profile */
        #user-profile .user-alert-success { /* Added user-alert-success class */
            background-color: #d4edda;
            border-color: #c3e6cb;
            color: #155724;
        }

        #user-profile .alert-danger, /* Scoped to #user-profile */
        #user-profile .user-alert-danger { /* Added user-alert-danger class */
            background-color: #f8d7da;
            border-color: #f5c6cb;
            color: #721c24;
        }

        /* Responsive Design from your design */
        @media screen and (max-width: 768px) {
            #user-profile { /* Scoped to #user-profile */
                padding: 30px;
                margin: 20px auto;
            }

            #user-profile h2 { /* Scoped to #user-profile */
                font-size: 28px;
            }

            #user-profile .nav-tabs, /* Scoped to #user-profile */
            #user-profile .user-nav-tabs { /* Added user-nav-tabs class */
                flex-direction: column;
                align-items: flex-start;
            }

            #user-profile .nav-tabs .title, /* Scoped to #user-profile */
            #user-profile .user-nav-tabs .user-title { /* Added user-nav-tabs class */
                border-right: none;
                border-bottom: 1px solid #eee;
                margin-right: 0;
                margin-bottom: 10px;
                padding-bottom: 15px;
                width: 100%;
            }

            #user-profile .nav-link, /* Scoped to #user-profile */
            #user-profile .user-nav-link { /* Added user-nav-link class */
                padding: 15px;
                width: 100%;
            }

            #user-profile .ocr-history-table, /* Scoped to #user-profile */
            #user-profile .user-file-list { /* Added user-file-list class */
                display: block;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
                border-radius: 0;
            }

            #user-profile .ocr-history-table thead, /* Scoped to #user-profile */
            #user-profile .ocr-history-table tbody,
            #user-profile .ocr-history-table th,
            #user-profile .ocr-history-table td,
            #user-profile .ocr-history-table tr,
            #user-profile .user-file-list thead, /* Added user-file-list class */
            #user-profile .user-file-list tbody,
            #user-profile .user-file-list th,
            #user-profile .user-file-list td,
            #user-profile .user-file-list tr {
                display: block;
            }

            #user-profile .ocr-history-table thead tr, /* Scoped to #user-profile */
            #user-profile .user-file-list thead tr { /* Added user-file-list class */
                position: absolute;
                top: -9999px;
                left: -9999px;
            }

            #user-profile .ocr-history-table tr, /* Scoped to #user-profile */
            #user-profile .user-file-list tr { /* Added user-file-list class */
                border: 1px solid #e0e0e0;
                margin-bottom: 15px;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }

            #user-profile .ocr-history-table td, /* Scoped to #user-profile */
            #user-profile .user-file-list td { /* Added user-file-list class */
                border: none;
                position: relative;
                padding-left: 50%;
                text-align: right;
            }

            #user-profile .ocr-history-table td:before, /* Scoped to #user-profile */
            #user-profile .user-file-list td:before { /* Added user-file-list class */
                content: attr(data-label);
                position: absolute;
                left: 10px;
                width: 45%;
                padding-right: 10px;
                white-space: nowrap;
                text-align: left;
                font-weight: 600;
                color: #555;
            }

            /* Specific labels for OCR History */
            #user-profile .ocr-history-table td:nth-of-type(1):before { content: "Select:"; }
            #user-profile .ocr-history-table td:nth-of-type(2):before { content: "File Name:"; }
            #user-profile .ocr-history-table td:nth-of-type(3):before { content: "Date:"; }
            #user-profile .ocr-history-table td:nth-of-type(4):before { content: "Thumbnail:"; }
            #user-profile .ocr-history-table td:nth-of-type(5):before { content: "Original:"; }
            #user-profile .ocr-history-table td:nth-of-type(6):before { content: "Result:"; }
            #user-profile .ocr-history-table td:nth-of-type(7):before { content: "Action:"; }

            /* Specific labels for File Upload */
            #user-profile .user-file-list td:nth-of-type(1):before { content: "File Name:"; }
            #user-profile .user-file-list td:nth-of-type(2):before { content: "Pages/Progress:"; }
            #user-profile .user-file-list td:nth-of-type(3):before { content: "Status:"; }
            #user-profile .user-file-list td:nth-of-type(4):before { content: "Overall Progress:"; }


            #user-profile .ocr-history-table img { /* Scoped to #user-profile */
                margin: auto;
            }

            #user-profile .delete-btn, /* Scoped to #user-profile */
            #user-profile .user-delete-btn { /* Scoped to #user-profile */
                width: auto;
                display: inline-block;
            }
        }

        @media screen and (max-width: 480px) {
            #user-profile { /* Scoped to #user-profile */
                padding: 20px;
            }

            #user-profile h2 { /* Scoped to #user-profile */
                font-size: 26px;
            }

            #user-profile button { /* Scoped to #user-profile */
                width: 100%;
                margin-bottom: 10px;
            }

            #user-profile .profile .row, /* Scoped to #user-profile */
            #user-profile .user-row { /* Added user-row class */
                grid-template-columns: 1fr;
                gap: 20px;
            }

            #user-profile .activation-notice, /* Scoped to #user-profile */
            #user-profile .user-activation-notice { /* Added user-activation-notice class */
                font-size: 14px;
                padding: 15px;
            }

            #user-profile .nav-tabs .title, /* Scoped to #user-profile */
            #user-profile .user-nav-tabs .user-title { /* Added user-nav-tabs class */
                font-size: 20px;
            }

            #user-profile .nav-link, /* Scoped to #user-profile */
            #user-profile .user-nav-link { /* Added user-nav-link class */
                font-size: 15px;
            }
        }

        /* --- Styles for File Uploader (adjusted and scoped) --- */

        /* File upload area specific styles */
        #user-profile .user-file-upload-area { /* Scoped to #user-profile */
            border: 3px dashed #ccddee;
            border-radius: 10px; /* Use the common border-radius from your design */
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 30px;
            background-color: #fdfefe;
            position: relative;
        }

        #user-profile .user-file-upload-area:hover { /* Scoped to #user-profile */
            border-color: #a0c4ff;
            background-color: #eef7ff;
        }

        #user-profile .user-file-upload-area.drag-over { /* Scoped to #user-profile */
            border-color: #6a9aff;
            background-color: #e0edff;
        }

        #user-profile .user-file-upload-area input[type="file"] { /* Scoped to #user-profile */
            display: none;
        }

        #user-profile .user-upload-icon { /* Scoped to #user-profile */
            font-size: 60px;
            color: #6a9aff;
            margin-bottom: 15px;
        }

        #user-profile .user-upload-text { /* Scoped to #user-profile */
            color: #555;
            font-size: 18px;
            font-weight: 400;
        }

        #user-profile .user-upload-text span { /* Scoped to #user-profile */
            color: #6a9aff;
            font-weight: 700;
            cursor: pointer;
        }

        /* Styles for the staging area of files before extraction */
        #user-profile .user-file-staging-area {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
            margin-bottom: 20px;
            background-color: #fcfcfc;
        }

        #user-profile .user-staged-file {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            color: #444;
        }
        #user-profile .user-staged-file:last-child {
            border-bottom: none;
        }

        #user-profile .user-staged-file .file-details {
            display: flex;
            align-items: center;
            flex-grow: 1;
        }
        #user-profile .user-staged-file .file-details .file-icon {
            margin-right: 10px;
            font-size: 1.2em;
        }
        #user-profile .user-staged-file .file-details .file-name-size {
            display: flex;
            flex-direction: column;
        }
        #user-profile .user-staged-file .file-details .file-name-size .file-name {
            font-weight: 500;
        }
        #user-profile .user-staged-file .file-details .file-name-size .file-size-display {
            font-size: 0.85em;
            color: #777;
        }

        #user-profile .user-staged-file .language-selection {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        #user-profile .user-staged-file select {
            padding: 8px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 15px;
            color: #444;
            background-color: #fff;
            cursor: pointer;
            transition: border-color 0.3s ease;
        }
        #user-profile .user-staged-file select:focus {
            outline: none;
            border-color: #007bff;
        }

        #user-profile .user-staged-file .remove-staged-file {
            background: none;
            border: none;
            color: #dc3545;
            font-size: 1.2em;
            cursor: pointer;
            margin-left: 15px;
            transition: color 0.2s ease;
        }
        #user-profile .user-staged-file .remove-staged-file:hover {
            color: #c82333;
        }

        #user-profile #extractTextBtn {
            display: block;
            margin-top: 20px;
            width: 100%;
            padding: 15px;
            font-size: 18px;
        }
        
        /* File list table specific styles (adapted to match ocr-history-table) */
        #user-profile .user-file-list { /* Scoped to #user-profile */
            width: 100%;
            border-collapse: separate; /* Use separate for spacing */
            border-spacing: 0 10px; /* Spacing between rows */
            margin-top: 30px;
            font-size: 15px; /* From your design */
            border-radius: 10px; /* From your design */
            overflow: hidden; /* For border-radius on table */
            /* Initially hidden, will be shown by JS */
            display: none; 
        }

        #user-profile .user-file-list.visible {
            display: table; /* Make it visible */
        }

        #user-profile .user-file-list thead th { /* Scoped to #user-profile */
            background-color: #e9ecef; /* From your design */
            color: #495057; /* From your design */
            text-align: left;
            padding: 15px 20px; /* From your design */
            border-bottom: none; /* No inner borders, rely on spacing and shadow */
            font-weight: 700;
            text-transform: uppercase; /* From your design */
            letter-spacing: 0.5px; /* From your design */
        }

        #user-profile .user-file-list tbody tr { /* Scoped to #user-profile */
            background-color: #fff;
            border-bottom: none; /* No inner borders */
            transition: transform 0.2s ease, box-shadow 0.2s ease; /* From your design */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* From your design */
            border-radius: 8px; /* Rounded corners for rows */
        }

        #user-profile .user-file-list tbody tr:last-child { /* Scoped to #user-profile */
            border-bottom: none;
        }

        #user-profile .user-file-list tbody tr:hover { /* Scoped to #user-profile */
            background-color: #f5f5f5; /* Maintain hover color */
            transform: translateY(-2px); /* From your design */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* From your design */
            z-index: 1; /* From your design */
        }

        #user-profile .user-file-list tbody td { /* Scoped to #user-profile */
            padding: 15px 20px; /* From your design */
            color: #444;
            vertical-align: middle;
            border: none; /* No inner borders */
        }

        /* Rounded corners for table headers/cells (consistent with ocr-history-table) */
        #user-profile .user-file-list thead tr:first-child th:first-child { border-top-left-radius: 10px; } /* Scoped to #user-profile */
        #user-profile .user-file-list thead tr:first-child th:last-child { border-top-right-radius: 10px; } /* Scoped to #user-profile */
        #user-profile .user-file-list tbody tr:last-child td:first-child { border-bottom-left-radius: 10px; } /* Scoped to #user-profile */
        #user-profile .user-file-list tbody tr:last-child td:last-child { border-bottom-right-radius: 10px; } /* Scoped to #user-profile */


        /* File name and size container */
        #user-profile .user-file-info { /* Scoped to #user-profile */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        #user-profile .user-file-name { /* Scoped to #user-profile */
            font-weight: 500;
            color: #333;
        }
        #user-profile .user-file-size-display { /* Scoped to #user-profile */
            font-size: 0.85em;
            color: #777;
            margin-top: 4px;
        }

        /* Status cell including ETA */
        #user-profile .user-status-cell { /* Scoped to #user-profile */
            min-width: 200px; /* Increased width to accommodate ETA text */
        }

        /* Status indicator (dot + text) */
        #user-profile .user-status-indicator { /* Scoped to #user-profile */
            display: flex;
            align-items: center;
            font-weight: 600;
        }

        #user-profile .user-status-dot { /* Scoped to #user-profile */
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 8px;
            background-color: #ccc;
            animation: pulse 1.5s infinite ease-in-out;
        }

        /* Status dot colors */
        #user-profile .user-status-dot.pending { background-color: #ffc107; } /* Scoped to #user-profile */
        #user-profile .user-status-dot.processing { background-color: #17a2b8; animation: spin 1s linear infinite; } /* Scoped to #user-profile */
        #user-profile .user-status-dot.completed { background-color: #28a745; animation: none; } /* Scoped to #user-profile */
        #user-profile .user-status-dot.queued { background-color: #6c757d; animation: none; } /* Scoped to #user-profile */
        #user-profile .user-status-dot.failed { background-color: #dc3545; animation: none; } /* Scoped to #user-profile */
        #user-profile .user-status-dot.uploading { background-color: #007bff; animation: pulse 1s infinite ease-in-out; } /* Scoped to #user-profile */

        /* Progress bar container */
        #user-profile .user-progress-bar-container { /* Scoped to #user-profile */
            background-color: #e9ecef;
            border-radius: 5px;
            height: 8px;
            overflow: hidden;
            width: 100px;
            margin-left: 10px;
        }

        /* The progress bar itself */
        #user-profile .user-progress-bar { /* Scoped to #user-profile */
            height: 100%;
            background-color: #007bff;
            border-radius: 5px;
            width: 0%;
            transition: width 0.2s ease;
            position: relative;
        }

        /* Striped animation for the progress bar */
        #user-profile .user-progress-bar.striped { /* Scoped to #user-profile */
            background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
            background-size: 1rem 1rem;
            animation: progress-stripes 1s linear infinite;
        }

        /* Animations */
        @keyframes pulse {
            0% { transform: scale(0.8); opacity: 0.7; }
            50% { transform: scale(1); opacity: 1; }
            100% { transform: scale(0.8); opacity: 0.7; }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes progress-stripes {
            from { background-position: 1rem 0; }
            to { background-position: 0 0; }
        }

        /* Sweet Alert styles to be on top of everything */
        .swal2-container {
            z-index: 10000;
        }