.logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 24px;
            font-weight: 700;
        }
        
        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
        
        /* Main Container - REDUCED WIDTH WITH BORDER */
        .container-edit {
            max-width: 1100px; /* Reduced from 1400px */
            width: 90%; /* Reduced from 100% */
            min-height: calc(100vh - 100px);
            margin: 0 auto;
            padding: 20px 35px 40px;
            display: flex;
            flex-direction: column;
            background: var(--bg-light);
            border: 2px solid var(--border);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        }
        
        /* Hero Section */
        .hero {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .hero h1 {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .hero p {
            font-size: 18px;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* Upload Section */
        .upload-section {
            background: var(--bg);
            border: 2px dashed var(--primary);
            border-radius: 16px;
            padding: 50px;
            text-align: center;
            margin-bottom: 25px;
            transition: all 0.3s;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
        }
        
        .upload-section:hover {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.05);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
        }
        
        .upload-section.dragover {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.1);
            border-style: solid;
        }
        
        .upload-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 36px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }
        
        .upload-section h3 {
            font-size: 24px;
            margin-bottom: 8px;
        }
        
        .upload-section p {
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 14px 32px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
        }
        
        #pdf-input { display: none; }
        
        /* File Info - WITH BORDER */
        .file-info {
            background: var(--bg);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            display: none;
            align-items: center;
            gap: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        .file-info.active { display: flex; }
        
        .file-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 700;
            color: white;
            box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
        }
        
        .file-details {
            flex: 1;
        }
        
        .file-name {
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .file-size {
            color: var(--text-muted);
            font-size: 14px;
        }
        
        .remove-btn {
            background: transparent;
            border: 2px solid var(--border);
            color: var(--text);
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
        }
        
        .remove-btn:hover {
            background: #ef4444;
            border-color: #ef4444;
            color: white;
        }
        
        /* Tabs - WITH BORDER */
        .tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            border-bottom: 2px solid var(--border);
            background: var(--bg);
            padding: 8px 8px 0;
            border-radius: 12px 12px 0 0;
        }
        
        .tab {
            padding: 12px 24px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
            border-radius: 8px 8px 0 0;
        }
        
        .tab:hover {
            background: rgba(102, 126, 234, 0.1);
            color: var(--text);
        }
        
        .tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
            background: rgba(102, 126, 234, 0.05);
        }
        
        /* Preview Section - BEAUTIFUL BORDER */
        .preview-section {
            background: var(--bg);
            border: 2px solid var(--border);
            border-radius: 16px;
            padding: 30px;
            min-height: 600px;
            height: auto;
            margin-bottom: 40px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--border);
        }
        
        .preview-header h3 {
            font-size: 20px;
            font-weight: 600;
            color: var(--text);
        }
        
        .action-btns {
            display: flex;
            gap: 12px;
        }
        
        .btn-secondary {
            background: transparent;
            border: 2px solid var(--border);
            color: var(--text);
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn-secondary:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: var(--primary);
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        .btn-secondary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .btn-secondary:disabled:hover {
            transform: none;
            background: transparent;
            border-color: var(--border);
            color: var(--text);
        }
        
        /* Preview Content - SCROLLABLE WITH BEAUTIFUL BORDER */
        #preview-content {
            color: var(--text);
            line-height: 1.8;
            max-height: 70vh;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px;
            padding-right: 15px;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: var(--bg-light);
        }
        
        /* Beautiful Custom Scrollbar */
        #preview-content::-webkit-scrollbar {
            width: 10px;
        }
        
        #preview-content::-webkit-scrollbar-track {
            background: var(--bg);
            border-radius: 10px;
            margin: 5px 0;
            border: 1px solid var(--border);
        }
        
        #preview-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
            border: 2px solid var(--bg);
            transition: all 0.3s;
        }
        
        #preview-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
        }
        
        /* Firefox Scrollbar */
        #preview-content {
            scrollbar-width: thin;
            scrollbar-color: #667eea var(--bg);
        }
        
        #preview-content h1 {
            font-size: 32px;
            margin: 30px 0 16px;
            color: var(--text);
            font-weight: 700;
            padding-bottom: 10px;
            border-bottom: 3px solid var(--primary);
        }
        
        #preview-content h1:first-child {
            margin-top: 0;
        }
        
        #preview-content h2 {
            font-size: 24px;
            margin: 24px 0 12px;
            color: var(--text);
            font-weight: 600;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--border);
        }
        
        #preview-content h3 {
            font-size: 20px;
            margin: 20px 0 10px;
            color: var(--text);
            font-weight: 600;
        }
        
        #preview-content p {
            margin: 12px 0;
            color: var(--text-muted);
        }
        
        #preview-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 20px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            display: block;
            border: 2px solid var(--border);
        }
        
        #preview-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: var(--bg);
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid var(--border);
        }
        
        #preview-content td, #preview-content th {
            border: 1px solid var(--border);
            padding: 12px;
            text-align: left;
        }
        
        #preview-content th {
            background: var(--bg-light);
            font-weight: 600;
            border-bottom: 2px solid var(--border);
        }
        
        #preview-content ul, #preview-content ol {
            margin: 12px 0;
            padding-left: 24px;
            color: var(--text-muted);
        }
        
        #preview-content li {
            margin: 6px 0;
            padding-left: 8px;
        }
        
        #preview-content blockquote {
            border-left: 4px solid var(--primary);
            padding-left: 16px;
            margin: 16px 0;
            color: var(--text-muted);
            font-style: italic;
            background: rgba(102, 126, 234, 0.05);
            padding: 12px 16px;
            border-radius: 0 8px 8px 0;
        }
        
        #preview-content code {
            background: var(--bg);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            border: 1px solid var(--border);
        }
        
        #preview-content pre {
            background: var(--bg);
            padding: 16px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 16px 0;
            border: 2px solid var(--border);
        }
        
        /* Loading State */
        .loading {
            text-align: center;
            padding: 60px;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--border);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 80px 40px;
            color: var(--text-muted);
        }
        
        .empty-state-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        
        /* Success Message - WITH BORDER */
        .success-msg {
            background: rgba(34, 197, 94, 0.1);
            border: 2px solid rgba(34, 197, 94, 0.4);
            color: #22c55e;
            padding: 12px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: none;
            font-weight: 500;
            box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
        }
        
        .success-msg.show {
            display: block;
            animation: slideIn 0.3s ease-out;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Responsive Design */
        @media (max-width: 968px) {
            .container-edit {
                width: 95%;
                max-width: 100%;
                padding: 20px 25px 35px;
            }
        }
        
        @media (max-width: 768px) {
            .container-edit {
                width: 98%;
                padding: 15px 20px 30px;
                border-radius: 15px;
            }
            
            .hero h1 {
                font-size: 32px;
            }
            
            .upload-section {
                padding: 40px 20px;
            }
            
            .preview-section {
                padding: 20px;
                min-height: 500px;
            }
            
            #preview-content {
                max-height: 60vh;
                padding: 15px;
                padding-right: 10px;
            }
            
            .preview-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .action-btns {
                width: 100%;
            }
            
            .btn-secondary {
                flex: 1;
                font-size: 13px;
                padding: 8px 16px;
            }
        }