/* Scoped styles for PDF Organiser tool only */
        .pdf-organiser-wrapper {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            min-height: 100vh;
            padding: 40px 0;
        }

        .pdf-organiser-wrapper * {
            box-sizing: border-box;
        }

        .pdf-organiser-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

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

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

        .pdf-organiser-header p {
            color: #636e72;
            font-size: 1.1rem;
            margin: 0;
        }

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

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

        .pdf-upload-area.dragover {
            border-color: #e5332d;
            background-color: #fff5f5;
            transform: scale(1.02);
        }

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

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

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

        .btn-pdf-primary {
            background-color: #e5332d;
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

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

        .btn-pdf-secondary {
            background-color: white;
            color: #e5332d;
            border: 2px solid #e5332d;
            padding: 10px 25px;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 5px;
        }

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

        .btn-pdf-danger {
            background-color: #ff6b6b;
            color: white;
            border: none;
            padding: 10px 25px;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 0 5px;
        }

        .btn-pdf-danger:hover {
            background-color: #ee5a52;
        }

        .pdf-workspace {
            display: none;
            margin-top: 30px;
        }

        .pdf-workspace.active {
            display: block;
        }

        .pdf-controls {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

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

        .pdf-file-icon {
            background-color: #fff5f5;
            color: #e5332d;
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .pdf-file-details h4 {
            margin: 0;
            font-size: 1rem;
            color: #2d3436;
            font-weight: 600;
        }

        .pdf-file-details p {
            margin: 0;
            font-size: 0.85rem;
            color: #636e72;
        }

        .pdf-pages-grid {
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            min-height: 400px;
        }

        .pdf-pages-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .pdf-page-item {
            background: white;
            border: 2px solid #dfe6e9;
            border-radius: 10px;
            padding: 15px;
            cursor: move;
            transition: all 0.3s ease;
            position: relative;
        }

        .pdf-page-item:hover {
            border-color: #e5332d;
            box-shadow: 0 4px 12px rgba(229, 51, 45, 0.15);
            transform: translateY(-5px);
        }

        .pdf-page-item.dragging {
            opacity: 0.5;
            transform: rotate(5deg);
        }

        .pdf-page-item.drag-over {
            border-color: #e5332d;
            background-color: #fff5f5;
        }

        .pdf-page-item.selected {
            border-color: #e5332d;
            background-color: #fff5f5;
        }

        .pdf-page-preview {
            width: 100%;
            height: 200px;
            background-color: #f8f9fa;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .pdf-page-preview canvas {
            max-width: 100%;
            max-height: 100%;
        }

        .pdf-page-number {
            text-align: center;
            font-weight: 600;
            color: #2d3436;
            font-size: 0.95rem;
            margin-bottom: 8px;
        }

        .pdf-page-actions {
            display: flex;
            justify-content: center;
            gap: 8px;
        }

        .pdf-page-action-btn {
            background: none;
            border: none;
            color: #636e72;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .pdf-page-action-btn:hover {
            background-color: #f8f9fa;
            color: #e5332d;
        }

        .pdf-page-checkbox {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .pdf-empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #636e72;
        }

        .pdf-empty-state i {
            font-size: 4rem;
            color: #dfe6e9;
            margin-bottom: 20px;
        }

        .pdf-loading {
            display: none;
            text-align: center;
            padding: 40px;
        }

        .pdf-loading.active {
            display: block;
        }

        .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-instructions {
            background: white;
            padding: 40px;
            border-radius: 12px;
            margin-top: 40px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .pdf-instructions h2 {
            color: #2d3436;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 30px;
            text-align: center;
        }

        .pdf-instruction-step {
            margin-bottom: 30px;
        }

        .pdf-instruction-step h3 {
            color: #e5332d;
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .pdf-instruction-step p {
            color: #636e72;
            font-size: 1rem;
            line-height: 1.6;
            margin: 0;
        }

        .pdf-features {
            background: #fff5f5;
            padding: 30px;
            border-radius: 12px;
            margin-top: 20px;
        }

        .pdf-features h3 {
            color: #2d3436;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .pdf-features ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .pdf-features li {
            color: #636e72;
            padding: 10px 0;
            border-bottom: 1px solid #fde8e8;
        }

        .pdf-features li:last-child {
            border-bottom: none;
        }

        .pdf-features li i {
            color: #e5332d;
            margin-right: 10px;
        }

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

            .pdf-pages-container {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 15px;
            }

            .pdf-controls {
                flex-direction: column;
                align-items: stretch;
            }
        }