        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
      
        svg {
            fill: none !important;
            width: auto;
            height: auto;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #fff;
            color: #333;
            overflow-x: hidden;
        }
        
        /* Loading Screen */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 20px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .loading-screen.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .loading-bar-container {
            width: 300px;
            height: 4px;
            background: #e0e0e0;
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }
        
        .loading-bar {
            position: absolute;
            height: 100%;
            background: #ff6154;
            border-radius: 2px;
            width: 40%;
            will-change: transform;
            animation: loading 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }
        
        @keyframes loading {
            0% {
                transform: translateX(-100%);
            }
            50% {
                transform: translateX(200%);
            }
            100% {
                transform: translateX(500%);
            }
        }
        
        .loading-text {
            font-size: 15px;
            color: #666;
            font-weight: 500;
        }
        
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        /* Step Content */
        .step-content {
            min-height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .step-panel {
            display: none;
            width: 100%;
            text-align: center;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        
        .step-panel.active {
            display: block;
        }
        
        .step-panel.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .step-title {
            font-size: 28px;
            font-weight: 600;
            margin-top: 10px !important;
            margin-bottom: 10px;
        }
        
        .step-description {
            font-size: 16px;
            color: #999;
            margin-bottom: 40px !important;
        }
        
        /* Step 1: Import */
        .upload-area {
            max-width: 400px;
            margin: 40px auto;
        }
        
        .upload-button {
            background: #ff6154;
            color: white;
            border: none;
            border-radius: 12px;
            padding: 20px 40px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 400px;
        }
        
        .upload-button:hover {
            background: #e5554a;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 97, 84, 0.3);
        }
        
        .file-input {
            display: none;
        }
        
        /* Step 2: Preview */
        .preview-container {
            max-width: 900px;
            margin: 0 auto;
        }
        
        .preview-quality-wrapper {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .pdf-preview {
            background: #cccccc10;
            border: 1px solid #e0e0e0;
            border-radius: 16px;
            padding: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 300px;
            overflow: hidden;
        }
        
        .pdf-preview canvas {
            max-width: 100%;
            max-height: 220px;
            width: auto;
            height: auto;
            border-radius: 8px;
            object-fit: contain;
        }
        
        .preview-placeholder {
            color: #666;
            font-size: 16px;
        }
        
        .quality-options {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .quality-option {
            border: 2px solid #f0f0f0;
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: transparent;
            text-align: left;
        }
        
        .quality-option:hover {
            border-color: #ff6154;
            transform: translateX(4px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }
        
        .quality-option.selected {
            border-color: #ff6154;
            background: #ff615410;
            transform: translateX(4px);
            box-shadow: 0 4px 15px rgba(255, 97, 84, 0.25);
        }
        
        .quality-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }
        
        .quality-description {
            font-size: 13px;
            color: #666;
        }
        
        @media (max-width: 768px) {
            .preview-quality-wrapper {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .pdf-preview {
                min-height: 300px;
            }
            
            .quality-options {
                flex-direction: row;
                gap: 12px;
            }
            
            .quality-option {
                flex: 1;
                text-align: center;
            }
            
            .quality-option:hover {
                transform: translateY(-4px);
            }
            
            .quality-option.selected {
                transform: translateY(-4px);
            }
        }
        
        /* Step 3: Download */
        .download-container {
            max-width: 450px;
            margin: 0 auto;
            text-align: center;
        }
        
        .file-result-card {
            background: #f8f9fa;
            border: 2px solid #e5e7eb;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .file-icon {
            width: 48px;
            height: 48px;
            background: white;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .file-icon svg {
            width: 28px;
            height: 28px;
            stroke: #ff6154;
        }
        
        .file-details {
            flex: 1;
            text-align: left;
            min-width: 0;
        }
        
        .file-name {
            font-size: 1rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .file-meta {
            font-size: 0.875rem;
            color: #6b7280;
        }
        
        .status-badge {
            background: #10b981;
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        
        .status-badge svg {
            width: 16px;
            height: 16px;
            stroke: white;
        }
        
        .download-btn-group {
            margin-bottom: 16px;
            position: relative;
        }
        
        .download-btn-wrapper {
            display: flex;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .btn-download-main {
            background: #ff6154;
            color: white;
            border: none;
            border-radius: 0;
            padding: 18px 24px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .btn-download-main:hover {
            background: #e5554a;
        }
        
        .btn-download-main svg {
            width: 20px;
            height: 20px;
            stroke: white;
        }
        
        .btn-download-dropdown {
            background: #ff6154;
            color: white;
            border: none;
            border-left: 1px solid rgba(255, 255, 255, 0.2);
            padding: 18px 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-download-dropdown:hover {
            background: #e5554a;
        }
        
        .btn-download-dropdown svg {
            width: 20px;
            height: 20px;
            stroke: white;
        }
        
        .download-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            min-width: 240px;
            z-index: 1000;
            display: none;
            overflow: hidden;
        }
        
        .download-dropdown-menu.show {
            display: block;
        }
        
        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            background: white;
            width: 100%;
            text-align: left;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .dropdown-item:last-child {
            border-bottom: none;
        }
        
        .dropdown-item:hover {
            background: #f8f9fa;
        }
        
        .dropdown-item svg {
            width: 20px;
            height: 20px;
            stroke: #6b7280;
            flex-shrink: 0;
        }
        
        .dropdown-item:hover svg {
            stroke: #ff6154;
        }
        
        .dropdown-item-content {
            flex: 1;
        }
        
        .dropdown-item-title {
            font-size: 15px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 2px;
        }
        
        .dropdown-item:hover .dropdown-item-title {
            color: #ff6154;
        }
        
        .dropdown-item-subtitle {
            font-size: 13px;
            color: #9ca3af;
        }
        
        /* Action buttons - Icon only, horizontal layout */
        .action-buttons {
            display: flex;
            gap: 10px;
            justify-content: flex-start;
            margin-bottom: 20px;
        }
        
        .action-btn {
            background: #f7f8f9;
            border: none;
            color: #374151;
            padding: 12px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
            width: 48px;
            height: 48px;
        }
        
        /* Make share button larger */
        .action-btn:first-child {
            flex: 2;
        }
        
        /* Keep print and delete buttons smaller and equal */
        .action-btn:nth-child(2),
        .action-btn:nth-child(3) {
            flex: 1;
        }
        
        .action-btn:hover {
            background: #fff5f4;
        }
        
        .action-btn svg {
            width: 24px;
            height: 24px;
            stroke: #6b7280;
        }
        
        .action-btn:hover svg {
            stroke: #ff6154;
        }
        
        .btn-flatten-another {
            background: transparent;
            color: #ff6154;
            border: 2px solid #ff6154;
            border-radius: 12px;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s ease;
        }
        
        .btn-flatten-another:hover {
            background: #fff5f4;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 97, 84, 0.1);
        }
        
        /* Buttons */
        .btn {
            background: #ff6154;
            color: white !important;
            border: none;
            border-radius: 12px;
            padding: 14px 28px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            margin: 8px;
        }
        
        .btn:hover {
            background: #e5554a;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 97, 84, 0.3);
        }
        
        .btn-secondary {
            background: transparent;
            color: #ff6154 !important;
            border: 2px solid #ff6154;
        }
        
        .btn-secondary:hover {
            background: transparent !important;
            box-shadow: 0 4px 15px rgba(255, 97, 84, 0.1);
        }
        
        .btn:disabled {
            background: #cccccc20;
            color: #ccc !important;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .btn-loading {
            position: relative;
            pointer-events: none;
        }
        
        .btn-loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            top: 50%;
            left: 50%;
            margin-left: -8px;
            margin-top: -8px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spinner 0.6s linear infinite;
        }
        
        .btn-loading span {
            visibility: hidden;
        }
        
        @keyframes spinner {
            to { transform: rotate(360deg); }
        }
        
        .error-message {
            color: #d93025;
            background: #fce8e6;
            border-radius: 12px;
            padding: 16px;
            margin: 20px auto;
            display: none;
            max-width: 400px;
        }
        
        .file-info {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 20px;
            margin: 20px auto;
            text-align: left;
            display: none;
            max-width: 500px;
        }
        
        .file-info-content {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .file-info-preview {
            width: 80px;
            height: 100px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .file-info-preview canvas {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
        }
        
        .file-info-details {
            flex: 1;
        }
        
        .file-info h4 {
            color: #ff6154;
            margin-bottom: 12px;
        }
        
        .file-info p {
            color: #666;
            margin: 4px 0;
        }
        
        .continue-btn-wrapper {
            margin-top: 20px;
            text-align: center;
        }