 /* Scoped styles for PDF Splitter tool only */
        .pdf-splitter-container {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8f9fa;
            min-height: 100vh;
            padding: 40px 0;
        }

        .pdf-splitter-container * {
            box-sizing: border-box;
        }

        .pdf-tool-wrapper {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .pdf-tool-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .pdf-tool-header h1 {
            color: #333;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .pdf-tool-header p {
            color: #666;
            font-size: 1.1rem;
            margin: 0;
        }

        .pdf-upload-area {
            background: white;
            border: 3px dashed #e5332d;
            border-radius: 12px;
            padding: 60px 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 30px;
        }

        .pdf-upload-area:hover {
            border-color: #c42a26;
            background-color: #fff5f5;
        }

        .pdf-upload-area.drag-over {
            background-color: #fff0f0;
            border-color: #e5332d;
        }

        .pdf-upload-icon {
            font-size: 4rem;
            color: #e5332d;
            margin-bottom: 20px;
        }

        .pdf-upload-text h3 {
            color: #333;
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .pdf-upload-text p {
            color: #666;
            margin-bottom: 20px;
        }

        .pdf-select-btn {
            background-color: #e5332d;
            border: none;
            color: white;
            padding: 12px 40px;
            font-size: 1.1rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .pdf-select-btn:hover {
            background-color: #c42a26;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(229, 51, 45, 0.3);
        }

        .pdf-file-info {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .pdf-file-details {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .pdf-file-icon {
            font-size: 2.5rem;
            color: #e5332d;
        }

        .pdf-file-name {
            flex: 1;
        }

        .pdf-file-name h4 {
            margin: 0 0 5px 0;
            color: #333;
            font-size: 1.1rem;
        }

        .pdf-file-name p {
            margin: 0;
            color: #666;
            font-size: 0.9rem;
        }

        .pdf-remove-btn {
            background: none;
            border: none;
            color: #dc3545;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px 10px;
            transition: all 0.3s ease;
        }

        .pdf-remove-btn:hover {
            color: #c82333;
            transform: scale(1.1);
        }

        .pdf-mode-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .pdf-mode-tab {
            flex: 1;
            min-width: 120px;
            padding: 12px 20px;
            background: white;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            font-weight: 600;
            color: #666;
        }

        .pdf-mode-tab:hover {
            border-color: #e5332d;
            color: #e5332d;
        }

        .pdf-mode-tab.active {
            background-color: #e5332d;
            border-color: #e5332d;
            color: white;
        }

        .pdf-split-options {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .pdf-option-group {
            margin-bottom: 20px;
        }

        .pdf-option-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 600;
        }

        .pdf-option-group input,
        .pdf-option-group select {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .pdf-option-group input:focus,
        .pdf-option-group select:focus {
            outline: none;
            border-color: #e5332d;
            box-shadow: 0 0 0 0.2rem rgba(229, 51, 45, 0.15);
        }

        .pdf-range-list {
            margin-top: 15px;
        }

        .pdf-range-item {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 6px;
        }

        .pdf-range-item input {
            flex: 1;
            padding: 8px 12px;
            border: 2px solid #dee2e6;
            border-radius: 6px;
        }

        .pdf-range-item button {
            background: #dc3545;
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pdf-range-item button:hover {
            background: #c82333;
        }

        .pdf-add-range-btn {
            background-color: #28a745;
            border: none;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
        }

        .pdf-add-range-btn:hover {
            background-color: #218838;
        }

        .pdf-checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 15px;
        }

        .pdf-checkbox-group input[type="checkbox"] {
            width: auto;
            cursor: pointer;
        }

        .pdf-action-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .pdf-action-btn {
            padding: 14px 40px;
            font-size: 1.1rem;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 180px;
        }

        .pdf-split-btn {
            background-color: #e5332d;
            color: white;
        }

        .pdf-split-btn:hover {
            background-color: #c42a26;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(229, 51, 45, 0.3);
        }

        .pdf-split-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .pdf-preview-btn {
            background-color: #6c757d;
            color: white;
        }

        .pdf-preview-btn:hover {
            background-color: #5a6268;
        }

        .pdf-download-btn {
            background-color: #28a745;
            color: white;
        }

        .pdf-download-btn:hover {
            background-color: #218838;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .pdf-processing {
            text-align: center;
            padding: 40px;
        }

        .pdf-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #e5332d;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

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

        .pdf-result-area {
            background: white;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .pdf-result-icon {
            font-size: 4rem;
            color: #28a745;
            margin-bottom: 20px;
        }

        .pdf-result-area h3 {
            color: #333;
            margin-bottom: 15px;
        }

        .pdf-result-files {
            margin: 25px 0;
            text-align: left;
        }

        .pdf-result-file {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 10px;
        }

        .pdf-result-file-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .pdf-result-file-icon {
            font-size: 1.5rem;
            color: #e5332d;
        }

        .pdf-download-single-btn {
            background-color: #e5332d;
            border: none;
            color: white;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .pdf-download-single-btn:hover {
            background-color: #c42a26;
        }

        .pdf-new-file-btn {
            background-color: #007bff;
            border: none;
            color: white;
            padding: 12px 30px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .pdf-new-file-btn:hover {
            background-color: #0056b3;
        }

        .pdf-alert {
            padding: 12px 20px;
            border-radius: 6px;
            margin-bottom: 20px;
        }

        .pdf-alert-info {
            background-color: #d1ecf1;
            border: 1px solid #bee5eb;
            color: #0c5460;
        }

        .pdf-alert-warning {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            color: #856404;
        }

        .pdf-info-text {
            color: #666;
            font-size: 0.95rem;
            margin-top: 10px;
        }

        /* Custom Alert Modal */
        .pdf-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .pdf-modal {
            background: white;
            border-radius: 12px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .pdf-modal-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .pdf-modal-icon {
            font-size: 2.5rem;
            color: #e5332d;
        }

        .pdf-modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #333;
            margin: 0;
        }

        .pdf-modal-body {
            color: #666;
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .pdf-modal-footer {
            display: flex;
            justify-content: flex-end;
        }

        .pdf-modal-btn {
            background-color: #e5332d;
            border: none;
            color: white;
            padding: 10px 30px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .pdf-modal-btn:hover {
            background-color: #c42a26;
        }

        .pdf-modal-btn-secondary {
            background-color: #6c757d;
            border: none;
            color: white;
            padding: 10px 30px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-right: 10px;
        }

        .pdf-modal-btn-secondary:hover {
            background-color: #5a6268;
        }

        /* Large PDF Preview Modal */
        .pdf-preview-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 20px;
        }

        .pdf-preview-modal-content {
            background: white;
            border-radius: 12px;
            width: 95%;
            max-width: 1200px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            animation: modalFadeIn 0.3s ease;
        }

        .pdf-preview-modal-header {
            padding: 20px 30px;
            border-bottom: 2px solid #e5332d;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .pdf-preview-modal-header h3 {
            margin: 0;
            color: #333;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pdf-preview-modal-close {
            background: none;
            border: none;
            font-size: 2rem;
            color: #666;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .pdf-preview-modal-close:hover {
            background-color: #f8f9fa;
            color: #e5332d;
        }

        .pdf-preview-modal-body {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
        }

        .pdf-preview-modal-footer {
            padding: 20px 30px;
            border-top: 2px solid #dee2e6;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .pdf-preview-canvas-wrapper {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }

        .pdf-preview-canvas {
            max-width: 100%;
            height: auto;
            border: 1px solid #dee2e6;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .pdf-preview-navigation {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        .pdf-preview-nav-btn {
            background-color: #e5332d;
            border: none;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pdf-preview-nav-btn:hover:not(:disabled) {
            background-color: #c42a26;
        }

        .pdf-preview-nav-btn:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        .pdf-preview-page-info {
            font-size: 1rem;
            color: #333;
            font-weight: 600;
        }

        .pdf-file-selector {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .pdf-file-selector-btn {
            background: white;
            border: 2px solid #dee2e6;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            color: #666;
            transition: all 0.3s ease;
        }

        .pdf-file-selector-btn:hover {
            border-color: #e5332d;
            color: #e5332d;
        }

        .pdf-file-selector-btn.active {
            background-color: #e5332d;
            border-color: #e5332d;
            color: white;
        }

        /* Preview Section */
        .pdf-preview-section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .pdf-preview-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e5332d;
        }

        .pdf-preview-header h4 {
            margin: 0;
            color: #333;
            font-size: 1.2rem;
        }

        .pdf-preview-pages {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 15px;
            max-height: 400px;
            overflow-y: auto;
            padding: 10px;
        }

        .pdf-preview-page {
            background: #f8f9fa;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            padding: 15px 10px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .pdf-preview-page:hover {
            border-color: #e5332d;
            background: #fff5f5;
            transform: translateY(-2px);
        }

        .pdf-preview-page-icon {
            font-size: 2rem;
            color: #e5332d;
            margin-bottom: 8px;
        }

        .pdf-preview-page-label {
            font-size: 0.9rem;
            color: #333;
            font-weight: 600;
        }

        .pdf-preview-file-group {
            margin-bottom: 25px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #e5332d;
        }

        .pdf-preview-file-title {
            font-weight: 700;
            color: #333;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pdf-preview-page-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .pdf-preview-page-badge {
            background: #e5332d;
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .pdf-tool-header h1 {
                font-size: 2rem;
            }

            .pdf-upload-area {
                padding: 40px 20px;
            }

            .pdf-action-btn {
                width: 100%;
            }

            .pdf-mode-tabs {
                flex-direction: column;
            }

            .pdf-mode-tab {
                width: 100%;
            }

            .pdf-preview-pages {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }
        }