        :root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --secondary: #3f37c9;
            --success: #4cc9f0;
            --danger: #f72585;
            --warning: #f8961e;
            --info: #4895ef;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --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;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: #f5f7fa;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header Styles */
        .headerp {
            text-align: center;
            margin-bottom: 1rem;
            margin-top: 1rem;
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 1rem;
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(63, 55, 201, 0.05) 100%);
            border: 1px solid rgba(67, 97, 238, 0.1);
        }

        .headerp h1 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--primary);
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }

        .headerp .subtitle {
            font-size: 1rem;
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto;
        }

        /* Tool Container */
        .tool-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 40px;
        }

        @media (max-width: 992px) {
            .tool-container {
                grid-template-columns: 1fr;
            }
        }

        /* Panel Styles */
        .panel {
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 25px;
            border-bottom: 1px solid var(--light-gray);
            background-color: rgba(67, 97, 238, 0.03);
        }

        .panel-title {
            display: flex;
            align-items: center;
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--dark);
        }

        .panel-title i {
            margin-right: 12px;
            color: var(--primary);
            font-size: 1.2rem;
        }

        .panel-actions {
            display: flex;
            gap: 10px;
        }

        /* Button Styles */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 18px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            font-size: 0.95rem;
            gap: 8px;
        }

        .btn i {
            font-size: 0.95rem;
        }

        .btn-sm {
            padding: 8px 14px;
            font-size: 0.9rem;
        }

        .btn-lg {
            padding: 12px 24px;
            font-size: 1.1rem;
        }

        .btn-primary {
            background-color: var(--primary);
            color: var(--white);
            box-shadow: 0 2px 5px rgba(67, 97, 238, 0.2);
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
        }

        .btn-secondary {
            background-color: var(--light-gray);
            color: var(--dark);
        }

        .btn-secondary:hover {
            background-color: #d1d7e0;
            transform: translateY(-1px);
        }

        .btn-danger {
            background-color: var(--danger);
            color: var(--white);
            box-shadow: 0 2px 5px rgba(247, 37, 133, 0.2);
        }

        .btn-danger:hover {
            background-color: #e5177b;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(247, 37, 133, 0.3);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--light-gray);
            color: var(--dark);
        }

        .btn-outline:hover {
            background-color: rgba(0, 0, 0, 0.02);
            border-color: var(--gray);
            transform: translateY(-1px);
        }

        /* Upload Section */
        .upload-section {
            padding: 30px 25px;
            text-align: center;
        }

        .upload-option {
            border: 2px dashed var(--light-gray);
            border-radius: 10px;
            padding: 30px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            background-color: rgba(67, 97, 238, 0.02);
        }

        .upload-option:hover {
            border-color: var(--primary);
            background-color: rgba(67, 97, 238, 0.05);
        }

        .upload-icon {
            font-size: 2.8rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .upload-text {
            font-size: 1.2rem;
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--dark);
        }

        .upload-subtext {
            font-size: 0.95rem;
            color: var(--gray);
            margin-bottom: 15px;
        }

        #fileInput {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
        }

        /* Uploaded Files */
        .uploaded-files {
            border-top: 1px solid var(--light-gray);
        }

        .uploaded-files-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 25px;
            border-bottom: 1px solid var(--light-gray);
        }

        .uploaded-files-title {
            font-weight: 500;
            font-size: 1rem;
        }

        .uploaded-files-count {
            background-color: var(--primary);
            color: var(--white);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .uploaded-files-list {
            padding: 15px;
            min-height: 150px;
            max-height: 350px;
            overflow-y: auto;
        }

        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 150px;
            color: var(--gray);
            text-align: center;
        }

        .empty-state i {
            font-size: 2.8rem;
            margin-bottom: 15px;
            color: var(--light-gray);
        }

        .empty-state p {
            font-size: 1rem;
        }

        /* File Item */
        .file-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            background-color: var(--light);
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }

        .file-item:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

        .file-item.selected {
            border-color: var(--primary);
            background-color: rgba(67, 97, 238, 0.1);
        }

        .file-item:last-child {
            margin-bottom: 0;
        }

        .file-thumbnail {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 6px;
            margin-right: 15px;
            border: 1px solid var(--light-gray);
        }

        .file-info {
            flex: 1;
            min-width: 0;
        }

        .file-name {
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 4px;
            font-size: 0.95rem;
        }

        .file-size {
            font-size: 0.85rem;
            color: var(--gray);
        }

        .file-actions {
            display: flex;
            gap: 8px;
        }

        .file-action-btn {
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            font-size: 1rem;
            padding: 5px;
            transition: all 0.2s ease;
        }

        .file-action-btn:hover {
            color: var(--danger);
            transform: scale(1.1);
        }

        /* Preview Container */
        .preview-container {
            padding: 25px;
            text-align: center;
            min-height: 250px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        #previewImage {
            max-width: 100%;
            max-height: 350px;
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--light-gray);
        }

        /* Options Container */
        .options-container {
            padding: 0 25px 25px;
        }

        .option-group {
            margin-bottom: 20px;
        }

        .option-group label {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--dark);
        }

        .option-group label i {
            margin-right: 10px;
            color: var(--primary);
            font-size: 1.1rem;
        }

        .option-group select, 
        .option-group input[type="text"],
        .option-group input[type="number"] {
            width: 100%;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid var(--light-gray);
            font-family: inherit;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            background-color: var(--white);
        }

        .option-group select:focus,
        .option-group input[type="text"]:focus,
        .option-group input[type="number"]:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }

        .custom-size-inputs {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .custom-size-inputs input {
            flex: 1;
        }

        /* Checkbox Styles */
        .checkbox-container {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            cursor: pointer;
        }

        .checkbox-container input {
            margin-right: 10px;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .checkbox-container label {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--dark);
            cursor: pointer;
        }

        /* Controls */
        .controls {
            display: flex;
            justify-content: space-between;
            padding: 0 25px 25px;
            gap: 15px;
        }

        .controls .btn {
            flex: 1;
        }

        /* Loading Indicator */
        .loading {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px;
            text-align: center;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(67, 97, 238, 0.1);
            border-left-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background-color: var(--light-gray);
            border-radius: 4px;
            margin-top: 15px;
            overflow: hidden;
        }

        .progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary) 0%, var(--info) 100%);
            width: 0%;
            transition: width 0.3s ease;
        }

        /* Results Container */
        .results-container {
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            margin-bottom: 40px;
            overflow: hidden;
            border: 1px solid rgba(67, 97, 238, 0.2);
            display: none;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(63, 55, 201, 0.1) 100%);
            border-bottom: 1px solid rgba(67, 97, 238, 0.1);
        }

        .results-title {
            display: flex;
            align-items: center;
            font-weight: 600;
            color: var(--primary);
            font-size: 1.2rem;
            gap: 12px;
        }

        .results-title i {
            font-size: 1.4rem;
        }

        .results-count {
            font-size: 0.95rem;
            color: var(--gray);
        }

        .results-count span {
            font-weight: 600;
            color: var(--primary);
        }

        .results-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            padding: 25px;
        }

        @media (max-width: 992px) {
            .results-content {
                grid-template-columns: 1fr;
            }
        }

        /* Result Preview */
        .result-preview {
            background-color: var(--light);
            border-radius: 10px;
            padding: 20px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .preview-wrapper {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .preview-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .page-counter {
            font-weight: 500;
            color: var(--dark);
            font-size: 0.95rem;
        }

        .pdf-preview {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f5f5f5;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            min-height: 400px;
        }

        .pdf-placeholder {
            text-align: center;
            color: var(--gray);
        }

        .pdf-placeholder i {
            font-size: 3.5rem;
            margin-bottom: 15px;
            color: var(--light-gray);
        }

        .pdf-placeholder p {
            font-size: 1.1rem;
        }

        #pdfCanvas {
            max-width: 100%;
            max-height: 500px;
            box-shadow: var(--shadow-md);
            display: none;
        }

        /* Result Meta */
        .result-meta {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .meta-card {
            background-color: var(--light);
            border-radius: 10px;
            padding: 20px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .meta-icon {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .meta-card h4 {
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: var(--dark);
            border-bottom: 1px solid var(--light-gray);
            padding-bottom: 10px;
        }

        .meta-list {
            list-style: none;
        }

        .meta-list li {
            margin-bottom: 10px;
            display: flex;
            font-size: 0.95rem;
        }

        .meta-list li strong {
            min-width: 100px;
            display: inline-block;
            color: var(--dark);
        }

        .download-options {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .share-options {
            display: flex;
            gap: 10px;
        }

        /* Results Footer */
        .results-footer {
            display: flex;
            justify-content: space-between;
            padding: 20px 25px;
            border-top: 1px solid var(--light-gray);
        }

        /* Blog Container */
        .blog-container {
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 40px;
            margin-bottom: 40px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .blog-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .blog-header h2 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--primary);
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }

        .blog-header h2 i {
            font-size: 1.8rem;
        }

        .blog-meta {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 10px;
            font-size: 0.95rem;
            color: var(--gray);
        }

        .blog-meta i {
            margin-right: 5px;
        }

        .blog-content {
            max-width: 900px;
            margin: 0 auto;
        }

        .blog-intro {
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 40px;
            text-align: center;
        }

        /* Feature Highlight */
        .feature-highlight {
            display: flex;
            align-items: center;
            background-color: rgba(67, 97, 238, 0.05);
            border-left: 4px solid var(--primary);
            padding: 20px;
            border-radius: 0 8px 8px 0;
            margin: 30px 0;
        }

        .feature-icon {
            font-size: 1.8rem;
            color: var(--primary);
            margin-right: 20px;
            flex-shrink: 0;
        }

        .feature-text {
            font-size: 1rem;
            line-height: 1.6;
        }

        .feature-text strong {
            color: var(--primary);
        }

        /* Blog Sections */
        .blog-section {
            margin: 50px 0;
        }

        .blog-section h3 {
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: var(--dark);
            position: relative;
            padding-bottom: 12px;
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }

        .blog-section h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--info) 100%);
            border-radius: 3px;
        }

        .blog-section h3 i {
            font-size: 1.5rem;
        }

        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        .feature-card {
            background-color: var(--light);
            border-radius: 10px;
            padding: 25px;
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }

        .feature-card-icon {
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .feature-card h4 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .feature-card p {
            font-size: 1rem;
            color: var(--gray);
            line-height: 1.6;
        }

        /* Steps Container */
        .steps-container {
            margin-top: 30px;
            position: relative;
        }

        .steps-container:before {
            content: '';
            position: absolute;
            top: 0;
            left: 46px;
            height: 100%;
            width: 2px;
            background-color: var(--light-gray);
            z-index: 1;
        }

        .step {
            display: flex;
            margin-bottom: 30px;
            position: relative;
            z-index: 2;
        }

        .step:last-child {
            margin-bottom: 0;
        }

        .step-number {
            width: 90px;
            height: 90px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: bold;
            flex-shrink: 0;
            margin-right: 30px;
            box-shadow: 0 5px 20px rgba(67, 97, 238, 0.3);
        }

        .step-content {
            padding-top: 20px;
        }

        .step-content h4 {
            font-size: 1.3rem;
            margin-bottom: 12px;
            color: var(--dark);
        }

        .step-content p {
            color: var(--gray);
            line-height: 1.7;
            font-size: 1.05rem;
        }

        /* FAQ Accordion */
        .faq-accordion {
            margin-top: 30px;
            border-radius: 8px;
            overflow: hidden;
        }

        .faq-item {
            margin-bottom: 15px;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            overflow: hidden;
        }

        .faq-item:last-child {
            margin-bottom: 0;
        }

        .faq-question {
            width: 100%;
            padding: 18px 25px;
            background-color: var(--light);
            border: none;
            text-align: left;
            font-size: 1.05rem;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .faq-question:hover {
            background-color: rgba(67, 97, 238, 0.1);
        }

        .faq-question i {
            transition: transform 0.3s ease;
        }

        .faq-question.active i {
            transform: rotate(180deg);
        }

        .faq-answer {
            padding: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
        }

        .faq-answer p {
            padding: 0 25px 0;
            line-height: 1.7;
            color: var(--gray);
            font-size: 1rem;
        }

        .faq-item.active .faq-answer {
            padding: 0 25px 20px;
            max-height: 500px;
        }

        /* Tips Container */
        .tips-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        .tip-card {
            background-color: var(--light);
            border-radius: 10px;
            padding: 25px;
            border: 1px solid rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .tip-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-sm);
        }

        .tip-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .tip-header i {
            font-size: 1.8rem;
            color: var(--primary);
            margin-right: 15px;
        }

        .tip-header h4 {
            font-size: 1.2rem;
            color: var(--dark);
        }

        .tip-card p {
            color: var(--gray);
            line-height: 1.7;
            font-size: 1rem;
        }

        /* Call to Action */
        .call-to-action {
            text-align: center;
            padding: 50px;
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(63, 55, 201, 0.05) 100%);
            border-radius: 12px;
            margin-top: 50px;
            border: 1px dashed var(--primary);
        }

        .call-to-action h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .call-to-action p {
            font-size: 1.1rem;
            color: var(--gray);
            max-width: 600px;
            margin: 0 auto 25px;
            line-height: 1.7;
        }

        /* Toast Notifications */
        .toast-container {
            position: fixed;
            top: 25px;
            right: 25px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .toast {
            padding: 15px 20px;
            border-radius: 8px;
            background-color: var(--dark);
            color: var(--white);
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transform: translateX(150%);
            transition: transform 0.3s ease, opacity 0.3s ease;
            opacity: 0;
            max-width: 350px;
        }

        .toast.show {
            transform: translateX(0);
            opacity: 1;
        }

        .toast.success {
            background-color: #2ecc71;
        }

        .toast.error {
            background-color: var(--danger);
        }

        .toast.warning {
            background-color: var(--warning);
        }

        .toast i {
            margin-right: 12px;
            font-size: 1.2rem;
        }

        .toast-close {
            background: none;
            border: none;
            color: inherit;
            cursor: pointer;
            margin-left: 15px;
            font-size: 1.2rem;
            opacity: 0.7;
            transition: opacity 0.2s ease;
        }

        .toast-close:hover {
            opacity: 1;
        }

        /* Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .results-container.show {
            display: block;
            animation: fadeInUp 0.5s ease forwards;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .headerp h1 {
                font-size: 1.6rem;
            }
            
            .headerp .subtitle {
                font-size: 1rem;
            }
            
            .blog-container {
                padding: 30px 20px;
            }
            
            .blog-header h2 {
                font-size: 1.5rem;
            }
            
            .steps-container:before {
                left: 35px;
            }
            
            .step-number {
                width: 70px;
                height: 70px;
                font-size: 1.5rem;
                margin-right: 20px;
            }
            
            .step-content h4 {
                font-size: 1.2rem;
            }
            
            .call-to-action {
                padding: 30px 20px;
            }
            
            .call-to-action h3 {
                font-size: 1.5rem;
            }
            
            .results-content {
                padding: 20px;
            }
            
            .preview-nav {
                flex-direction: column;
                gap: 10px;
            }
            
            .page-counter {
                order: -1;
            }
        }

        @media (max-width: 576px) {
            .controls {
                flex-direction: column;
            }
            
            .results-footer {
                flex-direction: column;
                gap: 10px;
            }
            
            .download-options, .share-options {
                flex-direction: column;
            }
            
            .step {
                flex-direction: column;
            }
            
            .step-number {
                margin-right: 0;
                margin-bottom: 15px;
            }
            
            .step-content {
                padding-top: 0;
            }
        }
