
        /* --- Unique Container --- */
        .pdfm-main-container {
            width: 100%;
            max-width: 100%; /* Large page width */
            background: var(--white);
            border-radius: 24px;
            box-shadow: var(--shadow);
            padding: 40px;
            position: relative;
            margin-bottom: 60px;
            border: 1px solid #e5e7eb;
        }

        /* --- Header --- */
        .pdfm-header {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 15px;
            margin-top: 50px;
        }

        .pdfm-title { 
            margin: 0; 
            font-size: 2.5rem; 
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
            -webkit-background-clip: text; 
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        /* --- Unique Upload Zone --- */
        .pdfm-upload-zone {
            border: 2px dashed var(--primary-color);
            border-radius: 16px;
            padding: 60px 20px;
            text-align: center;
            background: rgba(99, 102, 241, 0.03);
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 30px;
            position: relative;
        }
        .pdfm-upload-zone:hover { 
            background: rgba(99, 102, 241, 0.08); 
            border-color: var(--primary-dark);
            transform: translateY(-2px); 
        }
        .pdfm-upload-zone.dragover { 
            background: rgba(99, 102, 241, 0.12); 
            border-style: solid; 
            transform: scale(1.01);
        }

        .pdfm-upload-icon {
            font-size: 3.5rem;
            margin-bottom: 15px;
            display: block;
            filter: drop-shadow(0 4px 10px rgba(99,102,241,0.3));
            animation: pdfm-float 3s ease-in-out infinite;
        }

        @keyframes pdfm-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .pdfm-file-input { display: none; }

        /* --- Unique Toolbar --- */
        .pdfm-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding: 15px 20px;
            background: var(--bg-light);
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
            transition: var(--transition);
            flex-wrap: wrap;
            gap: 15px;
        }
        .pdfm-toolbar.active { opacity: 1; pointer-events: auto; transform: translateY(0); }

        .pdfm-filename-group { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
        
        .pdfm-filename-label { font-size: 0.85rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

        .pdfm-filename-input {
            padding: 10px 16px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background: var(--white);
            color: var(--text-dark);
            font-size: 0.95rem;
            font-weight: 500;
            width: 100%;
            max-width: 240px;
            outline: none;
            transition: var(--transition);
        }
        .pdfm-filename-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }

        .pdfm-btn-reset {
            background: transparent;
            border: 1px solid #ef4444; /* Red for reset/delete actions */
            color: #ef4444;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 600;
            transition: var(--transition);
            white-space: nowrap;
        }
        .pdfm-btn-reset:hover { background: #ef4444; color: white; }

        /* --- Unique File List --- */
        .pdfm-file-list { 
            list-style: none; 
            padding: 0; 
            margin: 0; 
            display: flex; 
            flex-direction: column; 
            gap: 12px; 
        }

        .pdfm-file-item {
            display: grid;
            grid-template-columns: 64px minmax(200px, 1fr) auto;
            align-items: center; 
            background: var(--white);
            padding: 12px;
            border-radius: 16px;
            gap: 16px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            transition: var(--transition);
            animation: pdfm-slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            opacity: 0;
            transform: scale(0.95);
            position: relative;
        }

        @keyframes pdfm-slideIn {
            to { opacity: 1; transform: scale(1); }
        }

        .pdfm-file-item:hover {
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
        }

        .pdfm-preview-fallback { 
            width: 54px; 
            height: 74px; 
            background: var(--bg-light);
            display: flex; 
            align-items: center; 
            justify-content: center; 
            border-radius: 6px; 
            color: var(--text-light); 
            font-size: 1.8rem;
            flex-shrink: 0;
            border: 1px solid #e5e7eb;
        }
        
        .pdfm-preview-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
            border-radius: 6px;
        }

        .pdfm-file-details { 
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
            padding-right: 5px;
        }

        .pdfm-file-name { 
            font-weight: 700; 
            color: var(--text-dark); 
            font-size: 0.95rem;
            line-height: 1.4;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
        }
        
        .pdfm-file-meta { 
            font-size: 0.75rem; 
            color: var(--text-light); 
            font-weight: 500;
            background: var(--bg-light);
            padding: 4px 8px;
            border-radius: 6px;
            width: fit-content;
        }

        .pdfm-file-actions { 
            display: flex; 
            gap: 6px; 
            min-width: 90px; 
            justify-content: flex-end;
        }

        .pdfm-action-btn {
            border: none;
            background: var(--bg-light);
            color: var(--text-light);
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .pdfm-action-btn:hover:not(:disabled) { 
            background: #e5e7eb; 
            color: var(--text-dark); 
            transform: translateY(-2px);
        }
        
        .pdfm-action-btn.delete:hover:not(:disabled) { 
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444; 
        }

        .pdfm-action-btn:disabled { 
            opacity: 0.4; 
            cursor: default; 
            transform: none !important;
        }

        /* --- Footer Actions --- */
        .pdfm-footer {
            margin-top: 35px;
            padding-top: 25px;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .pdfm-status { font-size: 0.9rem; color: var(--text-light); width: 100%; margin-bottom: 5px; text-align: center; }

        .pdfm-btn-main {
            background: var(--primary-color);
            color: var(--white);
            border: none;
            padding: 16px 48px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            font-size: 1.1rem;
            letter-spacing: 0.5px;
        }
        .pdfm-btn-main:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4); }
        .pdfm-btn-main:disabled { background: #d1d5db; cursor: not-allowed; transform: none; box-shadow: none; }

        .pdfm-btn-download {
            background: var(--success-color);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
            display: none;
        }
        .pdfm-btn-download:hover { background: #059669; }

        /* --- Progress Animation --- */
        .pdfm-progress-container {
            width: 100%;
            height: 12px;
            background-color: #e5e7eb;
            border-radius: 6px;
            margin: 25px 0;
            overflow: hidden;
            display: none;
            position: relative;
        }
        .pdfm-progress-container.active { display: block; }
        
        .pdfm-progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 6px;
            transition: width 0.3s ease, background 0.5s ease;
            position: relative;
        }
        /* Striped effect */
        .pdfm-progress-bar::after {
            content: "";
            position: absolute;
            top: 0; left: 0; bottom: 0; right: 0;
            background-image: linear-gradient(
                45deg,
                rgba(255, 255, 255, 0.15) 25%,
                transparent 25%,
                transparent 50%,
                rgba(255, 255, 255, 0.15) 50%,
                rgba(255, 255, 255, 0.15) 75%,
                transparent 75%,
                transparent
            );
            background-size: 1rem 1rem;
            animation: pdfm-moveStripes 1s linear infinite;
        }
        @keyframes pdfm-moveStripes { 0% { background-position: 0 0; } 100% { background-position: 1rem 0; } }
        
        .pdfm-progress-bar.stage-parsing { background: var(--primary-color); }
        .pdfm-progress-bar.stage-merging { background: var(--secondary-color); }
        .pdfm-progress-bar.stage-finalizing { background: var(--success-color); }

        .pdfm-process-text {
            text-align: center;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--primary-color);
            height: 24px;
            margin-bottom: 10px;
            opacity: 0;
            transition: opacity 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .pdfm-process-text.active { opacity: 1; }

        /* --- 10 UNIQUE CARDS (Info Section) --- */
        .pdfm-info-section {
            width: 100%;
            max-width: 1200px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
            padding-bottom: 80px;
            padding-top:20px;
        }

        .pdfm-info-card {
            background: var(--white);
            padding: 30px 20px;
            border-radius: 20px;
            box-shadow: var(--shadow);
            border: 1px solid #e5e7eb;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            height: 100%;
        }

        .pdfm-info-card:hover {
            transform: translateY(-8px);
            border-color: var(--primary-color);
        }

        .pdfm-card-icon {
            font-size: 2.5rem;
            margin-bottom: 20px;
            background: var(--bg-light);
            width: 70px;
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .pdfm-card-title {
            margin: 0 0 12px 0;
            color: var(--text-dark);
            font-size: 1.1rem;
            font-weight: 700;
        }

        .pdfm-card-desc {
            margin: 0;
            font-size: 0.9rem;
            color: var(--text-light);
            line-height: 1.6;
        }

        /* --- Toast Notification --- */
        .pdfm-toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 90%;
        }
        .pdfm-toast {
            background: var(--white);
            color: var(--text-dark);
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: var(--shadow);
            border-left: 5px solid var(--primary-color);
            transform: translateX(120%);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            font-size: 0.9rem;
        }
        .pdfm-toast.show { transform: translateX(0); }
        .pdfm-toast.success { border-left-color: var(--success-color); }
        .pdfm-toast.error { border-left-color: #ef4444; }

        /* --- Responsive --- */
        @media (max-width: 600px) {
            .pdfm-main-container { padding: 25px; }
            .pdfm-title { font-size: 1.8rem; }
            .pdfm-toolbar { flex-direction: column; }
            .pdfm-filename-group { width: 100%; flex-direction: column; }
            .pdfm-filename-input { max-width: 100%; }
            .pdfm-btn-reset { width: 100%; }
            .pdfm-file-item { grid-template-columns: 50px 1fr auto; padding: 10px; gap: 10px; }
            .pdfm-preview-fallback { width: 44px; height: 60px; font-size: 1.4rem; }
            .pdfm-file-name { font-size: 0.85rem; }
            .pdfm-action-btn { width: 32px; height: 32px; }
            .pdfm-footer { flex-direction: column; }
            .pdfm-info-section { grid-template-columns: 1fr 1fr; }
        }
