        :root {
            --primary: #4361ee;
            --primary2-light: #eef2ff;
            --secondary: #3f37c9;
            --success: #4cc9f0;
            --danger: #f72585;
            --warning: #f8961e;
            --info: #4895ef;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #057be2;
            --light-gray: #e9ecef;
            --white: #ffffff;
            --black: #000000;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        /* Header */
        .headerp {
            text-align: center;
            margin-bottom: 1rem;
            margin-top: 1rem;
            padding: 1rem;
            background-color: var(--primary);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(67, 97, 238, 0.1);
        }

        .headerp h1 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .headerp p {
            color: var(--light-gray);
            max-width: 700px;
            margin: 0 auto;
        }

        /* Main Tool Layout */
        .tool-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 2rem;
        }

        @media (max-width: 768px) {
            .tool-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Panel Styles */
        .panel {
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            overflow: hidden;
        }

        .panel-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            background-color: #f8f9d5;
            justify-content: space-between;
            align-items: center;
        }

        .panel-title {
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Upload Section */
        .upload-area {
            padding: 2rem;
            text-align: center;
            border: 2px dashed var(--light-gray);
            border-radius: 8px;
            margin: 1.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .upload-area:hover {
            border-color: var(--primary);
            background-color: rgba(67, 97, 238, 0.03);
        }

        .upload-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        /* File List */
        .file-list {
            max-height: 300px;
            overflow-y: auto;
            padding: 0 1.5rem 1.5rem;
        }

        .file-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            margin-bottom: 0.75rem;
            background-color: var(--light);
            border-radius: 8px;
            border: 1px solid var(--light-gray);
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .file-item:hover {
            border-color: var(--primary);
            background-color: rgba(67, 97, 238, 0.05);
        }

        .file-item.active {
            border-color: var(--primary);
            background-color: var(--primary2-light);
        }

        .file-thumb {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 1rem;
        }

        .file-info {
            flex: 1;
            min-width: 0;
        }

        .file-name {
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .file-size {
            font-size: 0.8rem;
            color: var(--gray);
        }

        .file-remove {
            color: var(--danger);
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 2;
        }

        .file-drag-handle {
            color: var(--gray);
            background: none;
            border: none;
            cursor: move;
            padding: 0.5rem;
            margin-right: -0.5rem;
            z-index: 2;
        }

        /* Preview Section */
        .preview-container {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .preview-image {
            max-width: 100%;
            max-height: 300px;
            margin: 0 auto;
            display: block;
            border-radius: 8px;
            box-shadow: var(--shadow-md);
        }

        /* Settings */
        .settings-group {
            margin-bottom: 1.5rem;
        }

        .settings-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        select, input[type="number"] {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            font-family: inherit;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }

        .checkbox-group input {
            margin-right: 0.75rem;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.25rem;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            gap: 8px;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--secondary);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--light-gray);
        }

        .btn-outline:hover {
            background-color: var(--gray);
        }

        .btn-sm {
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
        }

        /* Results Section - Compact Design */
        .results-container {
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 1.5rem;
            margin-top: 2rem;
            display: none;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--light-gray);
        }

        .results-title {
            font-weight: 600;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .results-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        @media (max-width: 768px) {
            .results-content {
                grid-template-columns: 1fr;
            }
        }

        /* PDF Preview */
        .pdf-preview {
            background-color: var(--light);
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
        }

        .pdf-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .pdf-page-count {
            font-weight: 500;
        }

        .pdf-canvas {
            max-width: 100%;
            max-height: 300px;
            box-shadow: var(--shadow-sm);
            display: none;
        }

        /* PDF Meta */
        .pdf-meta {
            background-color: var(--light);
            border-radius: 8px;
            padding: 1rem;
        }

        .meta-item {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--light-gray);
        }

        .meta-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .meta-label {
            font-weight: 500;
            display: block;
            margin-bottom: 0.25rem;
        }

        .meta-value {
            color: var(--gray);
        }

        /* Action Buttons */
        .action-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        /* Loading State */
        .loading {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(67, 97, 238, 0.1);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Toast Notifications */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 1rem;
            background-color: var(--dark);
            color: white;
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
            transform: translateX(200%);
            transition: transform 0.3s ease;
        }

        .toast.show {
            transform: translateX(0);
        }

        .toast.success {
            background-color: #2ecc71;
        }

        .toast.error {
            background-color: var(--danger);
        }

        /* Blog Section */
        .blog-section {
            margin-top: 3rem;
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 2rem;
        }

        .blog-title {
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .blog-content {
            line-height: 1.7;
            color: var(--dark);
        }

        .blog-content h3 {
            margin: 1.5rem 0 1rem;
            color: var(--primary);
        }

        .blog-content p {
            margin-bottom: 1rem;
        }

        .blog-content ul {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }

        .blog-content li {
            margin-bottom: 0.5rem;
        }

        /* Empty State */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            color: var(--gray);
            text-align: center;
        }

        .empty-state i {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: var(--light-gray);
        }

        /* Drag and Drop Styles */
        .file-item.dragging {
            opacity: 0.5;
            background-color: rgba(67, 97, 238, 0.1);
        }

        .file-item.drag-over {
            border: 1px dashed var(--primary);
            background-color: rgba(67, 97, 238, 0.05);
        }
