       :root {
            --primary: #00008B;
            --primary-hover: #4338ca;
            --secondary: #f3f4f6;
            --text: #111827;
            --text-light: #6b7280;
            --border: #e5e7eb;
            --bg-light: #f9fafb;
            --error: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --page-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
       


        
        #image-upload {
            display: none;
        }
        
        /* Images Grid */
        .images-container {
            display: none;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            margin: 24px 0;
        }
        
        .image-card {
            background: white;
            border-radius: 8px;
            box-shadow: var(--page-shadow);
            overflow: hidden;
            transition: transform 0.2s;
        }
        
        .image-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .image-header {
            padding: 12px 16px;
            background-color: var(--primary);
            color: white;
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .image-number {
            background-color: white;
            color: var(--primary);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }
        
        .image-content {
            padding: 16px;
            background-color: var(--bg-light);
        }
        
        .image-preview {
            width: 100%;
            height: auto;
            max-height: 300px;
            object-fit: contain;
            border: 1px solid var(--border);
            background-color: white;
            margin-bottom: 16px;
        }
        
        /* PDF Options */
        .pdf-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .option-group {
            display: flex;
            flex-direction: column;
        }
        
        .option-label {
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 4px;
        }
        
        .option-input {
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 14px;
            width: 100%;
        }
        
        .option-select {
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 14px;
            width: 100%;
            background-color: white;
        }
        
        .option-input:focus, .option-select:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        /* Action Buttons */
        .action-buttons {
            display: none;
            justify-content: center;
            gap: 16px;
            margin-top: 24px;
            flex-wrap: wrap;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            outline: none;
            font-size: 15px;
            gap: 8px;
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--primary-hover);
        }
        
        .btn-secondary {
            background-color: var(--secondary);
            color: var(--text);
        }
        
        .btn-secondary:hover {
            background-color: #e5e7eb;
        }
        
        .btn-success {
            background-color: var(--success);
            color: white;
        }
        
        .btn-success:hover {
            background-color: #0d9f6e;
        }
        
        /* Global Actions */
        .global-actions {
            display: none;
            justify-content: space-between;
            margin-bottom: 16px;
            align-items: center;
        }
        
        .global-options {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .apply-all-btn {
            background-color: var(--success);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .images-container {
                grid-template-columns: 1fr;
            }
            
            .pdf-options {
                grid-template-columns: 1fr;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 12px;
            }
            
            .btn {
                width: 100%;
            }
            
            .global-actions {
                flex-direction: column;
                gap: 12px;
                align-items: flex-start;
            }
        }
        
        /* Loading indicator */
        .loading {
            display: none;
            margin: 20px 0;
            text-align: center;
            color: var(--primary);
        }
        
        .loading i {
            animation: spin 1s linear infinite;
        }
        
        /* Error message */
        .error-message {
            display: none;
            padding: 12px;
            background-color: #fee2e2;
            color: var(--error);
            border-radius: 6px;
            margin-bottom: 16px;
            text-align: center;
        }
        
        /* Animations */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }