 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        body {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            color: #1e293b;
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
        }
        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 10px;
        }
        .logo i {
            font-size: 2.5rem;
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        h1 {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 2.8rem;
            font-weight: 800;
        }
        .subtitle {
            color: #64748b;
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 15px;
        }
        .highlight {
            color: #4f46e5;
            font-weight: 700;
            background: #e0e7ff;
            padding: 2px 6px;
            border-radius: 4px;
        }
        .converter-app {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 30px;
        }
        @media (max-width: 1024px) {
            .converter-app { grid-template-columns: 1fr; }
        }
        .input-section, .output-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
            padding: 25px;
            transition: transform 0.3s ease;
        }
        .input-section:hover, .output-section:hover {
            transform: translateY(-5px);
        }
        .section-title {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e2e8f0;
            color: #3730a3;
            font-size: 1.4rem;
        }
        .section-title i {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 1.6rem;
        }
        .input-methods {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .method-btn {
            flex: 1;
            min-width: 140px;
            padding: 12px 15px;
            background: #f1f5f9;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 600;
            color: #475569;
            transition: all 0.2s ease;
        }
        .method-btn:hover {
            background: #e2e8f0;
        }
        .method-btn.active {
            background: #4f46e5;
            color: white;
            border-color: #4f46e5;
        }
        .method-content { display: none; }
        .method-content.active { display: block; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .upload-area {
            border: 3px dashed #e2e8f0;
            border-radius: 10px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 15px;
            position: relative;
        }
        .upload-area:hover {
            border-color: #4f46e5;
            background: rgba(79,70,229,0.03);
        }
        .upload-area i {
            font-size: 3.5rem;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .file-input {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0; left: 0;
            opacity: 0;
            cursor: pointer;
        }
        .editor-container {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 15px;
        }
        .editor-header {
            background: #f8fafc;
            padding: 10px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e2e8f0;
        }
        .editor-tabs {
            display: flex;
            gap: 5px;
        }
        .editor-tab {
            padding: 6px 12px;
            background: #e2e8f0;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
        }
        .editor-tab.active {
            background: #4f46e5;
            color: white;
        }
        .editor-content { height: 300px; }
        .CodeMirror { height: 300px !important; font-size: 14px; }
        .url-input-container {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        .url-input {
            flex: 1;
            padding: 14px 18px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 1rem;
        }
        .url-input:focus {
            outline: none;
            border-color: #4f46e5;
        }
        .file-info {
            background: #f8fafc;
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
            display: none;
        }
        .file-info.active { display: block; }
        .file-details {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        .file-name { font-weight: 600; color: #1e293b; }
        .file-size { color: #64748b; }
        .progress-bar {
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
        }
        .progress {
            height: 100%;
            background: linear-gradient(90deg, #4f46e5, #3730a3);
            width: 0%;
            transition: width 0.5s ease;
        }
        .preview-area {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            height: 400px;
            overflow: hidden;
            margin-bottom: 20px;
            position: relative;
        }
        .preview-frame { width: 100%; height: 100%; border: none; background: white; }
        .preview-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #64748b;
            padding: 20px;
        }
        .preview-placeholder i { font-size: 4rem; color: #cbd5e1; }
        .controls-section {
            background: #f8fafc;
            border-radius: 10px;
            padding: 20px;
        }
        .control-group { margin-bottom: 20px; }
        .control-label { font-weight: 600; margin-bottom: 8px; display: block; }
        .control-row {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        .checkbox-group { display: flex; align-items: center; gap: 8px; }
        .select-control {
            padding: 10px 15px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            flex: 1;
            min-width: 150px;
        }
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 25px;
        }
        .action-btn {
            flex: 1;
            padding: 16px;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
        }
        .convert-btn {
            background: linear-gradient(135deg, #4f46e5, #3730a3);
            color: white;
        }
        .convert-btn:hover:not(:disabled) {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(79,70,229,0.3);
        }
        .convert-btn:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
        }
        .download-btn {
            background: #10b981;
            color: white;
            text-decoration: none;
        }
        .download-btn:hover:not(.disabled) {
            background: #0da271;
            transform: translateY(-3px);
        }
        .download-btn.disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            pointer-events: none;
        }
        .processing-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding: 15px;
            background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
            border-radius: 10px;
        }
        .timer { font-weight: 700; color: #4f46e5; font-size: 1.2rem; }
        .alert {
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: none;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease;
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .alert.success { background: #d1fae5; color: #065f46; border-left: 5px solid #10b981; display: flex; }
        .alert.error { background: #fee2e2; color: #991b1b; border-left: 5px solid #ef4444; display: flex; }
        .alert.info { background: #dbeafe; color: #1e40af; border-left: 5px solid #4f46e5; display: flex; }
        .security-features {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
            padding: 30px;
            margin-top: 30px;
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
            gap: 25px;
            margin-top: 20px;
        }
        .feature-card {
            background: #f8fafc;
            border-radius: 10px;
            padding: 25px;
            transition: transform 0.3s ease;
        }
        .feature-card:hover { transform: translateY(-5px); }
        .feature-icon {
            width: 60px; height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }
        .feature-icon.security { background: linear-gradient(135deg, #dbeafe, #93c5fd); color: #1e40af; }
        .feature-icon.speed { background: linear-gradient(135deg, #fef3c7, #fcd34d); color: #92400e; }
        .feature-icon.size { background: linear-gradient(135deg, #d1fae5, #6ee7b7); color: #065f46; }
        .feature-icon.privacy { background: linear-gradient(135deg, #fce7f3, #f9a8d4); color: #9d174d; }
        footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
            color: #64748b;
        }
        .loading-spinner {
            width: 40px; height: 40px;
            border: 4px solid rgba(79,70,229,0.1);
            border-radius: 50%;
            border-top-color: #4f46e5;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .converting-overlay {
            position: absolute; top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(255,255,255,0.9);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            z-index: 10; display: none;
        }
        .converting-overlay.active { display: flex; }
        
        /* Hidden container for rendering HTML to PDF */
        #pdf-render-container {
            position: absolute;
            left: -9999px;
            top: 0;
            width: 1200px;
            background: white;
            padding: 20px;
            z-index: -1;
        }
         body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        h1 {
            color: #4f46e5;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 10px;
        }
        .content {
            margin: 20px 0;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }
        th {
            background-color: #f1f5f9;
        }
        .footer {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
            text-align: center;
            color: #64748b;
        }