.code-editor {
            font-family: 'Courier New', Consolas, monospace;
            font-size: 0.9rem;
            background: #1e1e2e;
            color: #cdd6f4;
            border: 1px solid #45475a;
            border-radius: 8px;
            padding: 1rem;
            width: 100%;
            min-height: 220px;
            resize: vertical;
            tab-size: 2;
            line-height: 1.6;
        }
        .code-editor:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }
        .preview-frame {
            width: 100%;
            min-height: 380px;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            background: #ffffff;
            transition: border-color 0.3s;
        }
        .preview-frame.loading {
            border-color: var(--primary-color);
            background: #f8f9fa;
        }
        .pdf-settings {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 1.2rem 1.5rem;
            margin: 1rem 0;
        }
        .pdf-settings .pdf-settings .form-select,
        .pdf-settings .btn-pdf {
            background: #e74c3c;
            border-color: #e74c3c;
            color: #fff;
            font-weight: 600;
            transition: all 0.2s;
        }
        .btn-pdf:hover {
            background: #c0392b;
            border-color: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
        }
        .btn-preview {
            background: #2d3436;
            border-color: #2d3436;
            color: #fff;
            font-weight: 500;
        }
        .btn-preview:hover {
            background: #1e272e;
            border-color: #1e272e;
            color: #fff;
        }
        .btn-sample {
            background: #0984e3;
            border-color: #0984e3;
            color: #fff;
            font-size: 0.85rem;
        }
        .btn-sample:hover {
            background: #0770c0;
            border-color: #0770c0;
            color: #fff;
        }
        .status-badge {
            font-size: 0.85rem;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            background: #e9ecef;
            color: #495057;
        }
        .status-badge.success {
            background: #d4edda;
            color: #155724;
        }
        .status-badge.error {
            background: #f8d7da;
            color: #721c24;
        }
        .status-badge.info {
            background: #d1ecf1;
            color: #0c5460;
        }
        .example-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-chip {
            background: rgba(9, 132, 227, 0.08);
            border: 1px solid rgba(9, 132, 227, 0.2);
            border-radius: 20px;
            padding: 0.3rem 1rem;
            font-size: 0.8rem;
            color: #0984e3;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Courier New', monospace;
        }
        .example-chip:hover {
            background: rgba(9, 132, 227, 0.18);
            transform: translateY(-2px);
        }
        .result-pdf-preview {
            background: #f1f2f6;
            border-radius: 8px;
            padding: 1.5rem;
            text-align: center;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .result-pdf-preview img {
            max-width: 100%;
            max-height: 400px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .result-pdf-preview .placeholder-icon {
            font-size: 3rem;
            color: #b2bec3;
            margin-bottom: 0.5rem;
        }
        .result-pdf-preview .placeholder-text {
            color: #636e72;
            font-size: 0.95rem;
        }
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .feature-item {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 1.2rem;
            text-align: center;
            border: 1px solid #e9ecef;
            transition: all 0.2s;
        }
        .feature-item:hover {
            border-color: var(--primary-color);
            box-shadow: 0 2px 12px rgba(70,130,180,0.08);
        }
        .feature-item i {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        .feature-item h6 {
            font-weight: 600;
            font-size: 0.95rem;
        }
        .feature-item p {
            font-size: 0.85rem;
            color: #636e72;
            margin-bottom: 0;
        }
        .privacy-note-pdf {
            background: #e7f3ff;
            border: 1px solid #b8daff;
            color: #004085;
            padding: 0.75rem 1.2rem;
            border-radius: 6px;
            margin: 1rem 0;
            font-size: 0.9rem;
        }
        .warning-note-pdf {
            background: #fff3cd;
            border: 1px solid #ffeeba;
            color: #856404;
            padding: 0.75rem 1.2rem;
            border-radius: 6px;
            margin: 1rem 0;
            font-size: 0.9rem;
        }
        .authority-box {
            background: #f0f4f8;
            border-left: 4px solid var(--primary-color);
            padding: 1.2rem 1.5rem;
            border-radius: 0 8px 8px 0;
            margin: 1.8rem 0;
        }
        .math-equation-pdf {
            font-size: 1.1rem;
            padding: 1rem 1.5rem;
            background: rgba(70,130,180,0.04);
            border-left: 3px solid var(--primary-color);
            border-radius: 4px;
            margin: 1rem 0;
            font-family: 'Courier New', monospace;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .property-table-pdf {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.9rem;
        }
        .property-table-pdf th,
        .property-table-pdf td {
            padding: 0.6rem 0.8rem;
            border: 1px solid #dee2e6;
            text-align: left;
        }
        .property-table-pdf th {
            background: #f1f3f5;
            font-weight: 600;
        }
        .property-table-pdf tr:nth-child(even) {
            background: rgba(70,130,180,0.03);
        }
        .download-btn-group {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin: 1rem 0;
        }
        .canvas-thumb {
            max-width: 100%;
            border-radius: 6px;
            border: 1px solid #dee2e6;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .url-loader {
            background: #f0f7ff;
            border-radius: 8px;
            padding: 0.8rem 1.2rem;
            margin-bottom: 1rem;
            border: 1px solid #cce5ff;
        }
        .url-status {
            font-size: 0.85rem;
            margin-top: 0.25rem;
        }
        @media (max-width: 768px) {
            .code-editor {
                min-height: 160px;
                font-size: 0.8rem;
            }
            .preview-frame {
                min-height: 260px;
            }
            .pdf-settings {
                padding: 1rem;
            }
            .feature-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        @media (max-width: 480px) {
            .feature-grid {
                grid-template-columns: 1fr;
            }
        } 
            
          
                .item { display: flex; justify-content: space-between; margin: 0.5rem 0; }
                .item .title { font-weight: 600; }
                .item .date { color: #636e72; font-size: 0.9rem; } 
                .summary { background: #f0f4f8; padding: 1rem; border-radius: 8px; margin: 1.5rem 0; }
                table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
                th { background: #0984e3; color: #fff; padding: 0.6rem; text-align: left; }
                td { padding: 0.5rem 0.6rem; border-bottom: 1px solid #dfe6e9; }
                .highlight { font-weight: 600; color: #0984e3; }
                .invoice-header { display: flex; justify-content: space-between; border-bottom: 2px solid #2d3436; padding-bottom: 1rem; }
                .invoice-header h1 { margin: 0; font-size: 2rem; }
                .invoice-header .meta { text-align: right; font-size: 0.85rem; color: #636e72; }
                table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
                th { text-align: left; border-bottom: 1px solid #2d3436; padding: 0.4rem 0; }
                td { padding: 0.4rem 0; border-bottom: 1px solid #dfe6e9; }
                .total { font-weight: 600; font-size: 1.2rem; text-align: right; border-top: 2px solid #2d3436; padding-top: 0.5rem; }
                .post-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.2rem; }
                .post-meta { color: #636e72; font-size: 0.9rem; border-bottom: 1px solid #dfe6e9; padding-bottom: 0.8rem; }
                blockquote { border-left: 4px solid #0984e3; padding-left: 1.2rem; margin: 1.5rem 0; color: #555; }
                code { background: #f0f4f8; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.9rem; }