               :root {
            --primary-color: #6366f1;
            --primary-dark: #4f46e5;
            --secondary-color: #8b5cf6;
            --success-color: #10b981;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --bg-light: #f9fafb;
            --white: #ffffff;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --border: #e5e7eb;
            --danger: #ef4444;
            --warning: #f59e0b;
            --download-color: #7c3aed; /* Darker shade of secondary for download buttons */
        }
       .container2 {
            max-width:100%;
            margin: 0 auto;
            background: var(--white);
            border-radius: 16px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .ac {
                       margin-top:80px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            padding: 30px;
            text-align: center;
        }

        .ac h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .ac p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .premium-badge {
            display: inline-block;
            background: var(--warning);
            color: var(--white);
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 20px;
            margin-left: 10px;
            font-weight: 600;
            vertical-align: middle;
        }

        .content {
            padding: 30px;
        }

        .tabs {
            display: flex;
            border-bottom: 2px solid var(--border);
            margin-bottom: 30px;
            overflow-x: auto;
        }

        .tab {
            padding: 15px 25px;
            cursor: pointer;
            font-weight: 600;
            color: var(--text-light);
            border-bottom: 3px solid transparent;
            transition: var(--transition);
            white-space: nowrap;
        }

        .tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

        .tab:hover {
            color: var(--primary-color);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .card {
            background: var(--white);
            border-radius: 12px;
            border: 1px solid var(--border);
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .card-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-dark);
            display: flex;
            align-items: center;
        }

        .card-title i {
            margin-right: 10px;
            color: var(--primary-color);
        }

        .upload-area {
            border: 3px dashed var(--border);
            border-radius: 12px;
            padding: 50px 20px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: var(--bg-light);
        }

        .upload-area:hover, .upload-area.dragover {
            border-color: var(--primary-color);
            background: rgba(99, 102, 241, 0.05);
        }

        .upload-area i {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .upload-area h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .upload-area p {
            color: var(--text-light);
            margin-bottom: 20px;
        }

        .file-input {
            display: none;
        }

        .btn {
            background: var(--primary-color);
            color: var(--white);
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .btn i {
            margin-right: 8px;
        }

        .btn-secondary {
            background: var(--text-light);
        }

        .btn-secondary:hover {
            background: #4b5563;
        }

        .btn-success {
            background: var(--success-color);
            color: var(--white);
        }

        .btn-success:hover {
            background: #059669;
        }

        .btn-danger {
            background: var(--danger);
        }

        .btn-danger:hover {
            background: #dc2626;
        }

        .btn-download {
            background: var(--secondary-color);
            color: var(--white);
        }

        .btn-download:hover {
            background: var(--download-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 0.9rem;
        }

        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .setting-group {
            margin-bottom: 20px;
        }

        .setting-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .size-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .size-option {
            position: relative;
        }

        .size-option input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .size-option label {
            display: block;
            padding: 12px;
            text-align: center;
            border: 2px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            background: var(--white);
            font-weight: 500;
        }

        .size-option input:checked + label {
            background: var(--primary-color);
            color: var(--white);
            border-color: var(--primary-color);
        }

        .size-option label:hover {
            border-color: var(--primary-color);
        }

        .custom-size {
            display: flex;
            align-items: center;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .custom-size input {
            width: 80px;
            padding: 10px;
            border: 2px solid var(--border);
            border-radius: 6px;
            margin-right: 10px;
            font-size: 1rem;
        }

        .quality-slider {
            width: 100%;
            margin: 15px 0;
        }

        .slider {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: var(--border);
            outline: none;
            -webkit-appearance: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
        }

        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
        }

        .quality-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .preview-item {
            text-align: center;
            padding: 15px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--white);
            transition: var(--transition);
        }

        .preview-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-3px);
        }

        .preview-item img {
            width: 100%;
            height: auto;
            border-radius: 6px;
            margin-bottom: 10px;
            border: 1px solid var(--border);
        }

        .preview-size {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .preview-actions {
            display: flex;
            gap: 8px;
            justify-content: center;
        }

        .preview-actions .btn {
            flex: 1;
            padding: 6px 12px;
            font-size: 0.85rem;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .action-buttons .btn {
            flex-grow: 1;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 8px;
            color: var(--white);
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            transform: translateX(150%);
            transition: var(--transition);
            display: flex;
            align-items: center;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.success {
            background: var(--success-color);
            color: var(--white);
        }

        .notification.error {
            background: var(--danger);
        }

        .notification.info {
            background: var(--primary-color);
        }

        .progress-container {
            margin-top: 20px;
            display: none;
        }

        .progress-bar {
            height: 10px;
            background: var(--border);
            border-radius: 5px;
            overflow: hidden;
        }

        .progress {
            height: 100%;
            background: var(--primary-color);
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-text {
            text-align: center;
            margin-top: 10px;
            font-weight: 600;
            color: var(--primary-color);
        }

        footer {
            background: var(--text-dark);
            color: var(--white);
            text-align: center;
            padding: 20px;
            font-size: 0.9rem;
        }

        footer a {
            color: var(--success-color);
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }

        .feature-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .feature-item {
            background: var(--bg-light);
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid var(--primary-color);
        }

        .feature-item h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }

        .feature-item h3 i {
            margin-right: 10px;
        }

        .feature-item p {
            line-height: 1.6;
            color: var(--text-light);
        }

        .steps {
            counter-reset: step-counter;
            margin-top: 30px;
        }

        .step {
            position: relative;
            padding-left: 60px;
            margin-bottom: 30px;
            counter-increment: step-counter;
        }

        .step::before {
            content: counter(step-counter);
            position: absolute;
            left: 0;
            top: 0;
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .step h3 {
            color: var(--text-dark);
            margin-bottom: 10px;
        }

        .step p {
            line-height: 1.6;
            color: var(--text-light);
        }

        .tip-box {
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid var(--primary-color);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
        }

        .tip-box h3 {
            color: var(--primary-color);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }

        .tip-box h3 i {
            margin-right: 10px;
        }

        .tip-box ul {
            padding-left: 20px;
            margin-top: 10px;
        }

        .tip-box li {
            margin-bottom: 8px;
            line-height: 1.5;
        }

        @media (max-width: 768px) {
            .settings-grid {
                grid-template-columns: 1fr;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .tabs {
                overflow-x: auto;
                white-space: nowrap;
            }
            
            .tab {
                padding: 10px 15px;
            }
            
            .preview-actions {
                flex-direction: column;
            }
            
            .custom-size {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .custom-size input {
                margin-bottom: 10px;
                margin-right: 0;
            }
            
            .custom-size span {
                display: none;
            }
        }
