
        :root {
            --primary: rgb(126, 110, 246);
            --primary-dark: rgb(100, 85, 220);
            --primary-light: rgba(126, 110, 246, 0.1);
            --white: #ffffff;
            --light: #f9fafb;
            --dark: #1f2937;
            --gray: #6b7280;
            --light-gray: #e5e7eb;
            --radius: 16px;
        }

        body {
            background: linear-gradient(135deg, #f9fafb 0%, #f0f2f5 100%);
            color: var(--dark);
            min-height: 100vh;
            font-family: 'Inter', 'Segoe UI', sans-serif;
        }

        .hero-section {
            background: linear-gradient(135deg, rgba(126, 110, 246, 0.05) 0%, rgba(109, 93, 252, 0.02) 100%);
            padding: 1rem 0 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-light) 0%, rgba(109, 93, 252, 0.05) 100%);
            z-index: -1;
        }

        .hero-section::after {
            content: '';
            position: absolute;
            bottom: -150px;
            left: -100px;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(109, 93, 252, 0.05) 0%, var(--primary-light) 100%);
            z-index: -1;
        }

        .hero-title {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 1.5rem;
        }

        .upload-section {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            padding: 2rem;
            margin: -3rem auto 2rem;
            width: 90%;
            max-width: 900px;
            position: relative;
            z-index: 10;
            border: 1px solid var(--light-gray);
        }

        .upload-area {
            border: 2px dashed var(--light-gray);
            border-radius: var(--radius);
            padding: 3rem 1.5rem;
            background-color: var(--light);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .upload-area:hover,
        .upload-area.dragover {
            border-color: var(--primary);
            background-color: var(--primary-light);
        }

        .upload-icon {
            font-size: 3.5rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
        }

        .source-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.25rem;
            background-color: var(--light);
            border-radius: 50px;
            font-size: 0.9rem;
            color: var(--gray);
            transition: all 0.3s ease;
            border: 1px solid var(--light-gray);
            flex-shrink: 0;
        }

        .source-item:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .btn-upload {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
        }

        .btn-outline-primary {
            color: var(--primary);
            border-color: var(--primary);
        }

        .btn-outline-primary:hover {
            background-color: var(--primary);
            border-color: var(--primary);
        }

        /* Feature Cards - Modern Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .feature-card {
            background-color: var(--white);
            border-radius: var(--radius);
            padding: 2rem;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(229, 231, 235, 0.5);
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }

        .feature-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .feature-text {
            color: var(--gray);
            margin-bottom: 0;
        }


        /* How It Works - Timeline Style */
        .timeline {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
        }

        .timeline::after {
            content: '';
            position: absolute;
            width: 4px;
            background-color: var(--primary-light);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
            border-radius: 2px;
        }

        .step-card {
            padding: 1.5rem 2rem;
            position: relative;
            background-color: var(--white);
            width: 46%;
            border-radius: var(--radius);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 2rem;
        }

        .step-card.left {
            left: 0;
        }

        .step-card.right {
            left: 54%;
        }

        .step-number {
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(126, 110, 246, 0.3);
            top: 1.5rem;
            z-index: 1;
        }

        .step-card.left .step-number {
            right: -75px;
        }

        .step-card.right .step-number {
            left: -75px;
        }

        .step-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .step-text {
            color: var(--gray);
            margin-bottom: 0;
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .step-card {
            background-color: var(--white);
            border-radius: var(--radius);
            padding: 2rem;
            text-align: center;
            height: 100%;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--light-gray);
        }

        .step-number {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0 auto 1.25rem;
            box-shadow: 0 5px 15px rgba(126, 110, 246, 0.3);
        }

        .timeline-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-light) 0%, rgba(126, 110, 246, 0.05) 100%);
            border-radius: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        footer {
            background-color: #4b4291;
            color: var(--white);
            padding: 5rem 0 2rem;
            margin-top: 5rem;
        }

        /* Conversion Options Styles */
        .conversion-section,
        .resultnew {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            padding: 2rem;
            margin: 2.5rem auto;
            width: 90%;
            max-width: 900px;
            border: 1px solid var(--light-gray);
            display: none;
        }

        .conversion-section.active {
            display: block;
        }

        .conversion-options {
            background: var(--light);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-top: 1.25rem;
        }

        .option-group {
            margin-bottom: 1.5rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--light-gray);
        }

        .option-title {
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.625rem;
        }

        .option-title i {
            color: var(--primary);
        }

        .option-card {
            background: var(--white);
            border: 2px solid var(--light-gray);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 0.625rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .option-card.active {
            border-color: var(--primary);
            background-color: var(--primary-light);
        }

        .format-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.625rem;
            margin-top: 0.625rem;
        }

        .format-option {
            background: var(--white);
            border: 2px solid var(--light-gray);
            border-radius: 10px;
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 0.625rem;
            transition: all 0.3s ease;
        }

        .format-option.active {
            border-color: var(--primary);
            background-color: var(--primary-light);
        }

        .format-option input {
            accent-color: var(--primary);
        }

        .convert-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 0.75rem 1.875rem;
            font-size: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.625rem;
            margin: 1.875rem auto 0;
            transition: all 0.3s ease;
        }

        .convert-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .result-section {
            background: var(--light);
            border-radius: var(--radius);
            padding: 1.875rem;
            margin-top: 1.875rem;
            display: none;
        }

        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.25rem;
        }

        .share-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-weight: 500;
        }

        .share-btn i {
            font-size: 1.1rem;
        }

        .uploaded-file-info {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            text-align: center;
        }

        .file-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .download-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 300px;
            margin: 50px auto;
        }

        button {
            padding: 10px;
            cursor: pointer;
        }

        .file-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-size {
            color: var(--gray);
            margin-bottom: 1.25rem;
        }

        .change-file-btn {
            background-color: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            border-radius: 50px;
            padding: 0.5rem 1.25rem;
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .change-file-btn:hover {
            background-color: var(--primary);
            color: white;
        }

        .logo-wrapper {
            height: 30px;
        }

        /* URL Input Styles */
        .url-input-container {
            display: none;
            width: 100%;
            margin-top: 1rem;
            position: relative;
        }

        .url-input-group {
            display: flex;
            width: 100%;
        }

        .url-input {
            flex: 1;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 0.5rem 1rem;
            outline: none;
            padding-right: 2.5rem;
        }

        .url-submit-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 0 8px 8px 0;
            padding: 0.5rem 1rem;
            cursor: pointer;
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
        }

        .url-submit-btn:hover {
            background-color: var(--primary-dark);
        }

        .url-close-btn {
            position: absolute;
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            font-size: 1rem;
        }

        .url-close-btn:hover {
            color: var(--dark);
        }

        /* Responsive dropdown styles */
        .dropdown-menu.language-dropdown {
            width: 100%;
            left: 0 !important;
            right: 0 !important;
            margin-top: 0.5rem !important;
            padding: 1rem;
            max-height: 70vh;
            overflow-y: auto;
        }

        .language-grid {
            display: grid;
            gap: 0.5rem;
        }

        /* Mobile (default) */
        .language-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        /* Small tablets */
        @media (min-width: 576px) {
            .language-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Tablets and small desktops (900px range) */
        @media (min-width: 768px) {
            .dropdown-menu.language-dropdown {
                width: 90vw;
                max-width: 1200px;
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
            }

            .language-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Medium desktops (900-1199px) */
        @media (min-width: 900px) and (max-width: 1199px) {
            .dropdown-menu.language-dropdown {
                width: 95vw;
                max-width: 1100px;
            }

            .language-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        /* Large desktops (1200px and up) */
        @media (min-width: 1200px) {
            .dropdown-menu.language-dropdown {
                width: 1300px;
                left: auto !important;
                right: 0 !important;
                transform: none !important;
            }

            .language-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        .language-item {
            width: 100%;
        }

        .language-item .dropdown-item {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0.5rem 1rem;
        }

        .card-body i {
            color: var(--primary);
        }

        /* Mobile navbar specific adjustments */
        @media (max-width: 767.98px) {
            .navbar-collapse {
                padding-bottom: 1rem;
            }

            .navbar-collapse .dropdown-menu.language-dropdown {
                position: static !important;
                transform: none !important;
                margin-top: 0.5rem;
                width: 100% !important;
            }
        }

        /* Responsive improvements */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }

            .upload-section {
                width: 95%;
                padding: 1.25rem;
            }

            .upload-area {
                padding: 2rem 1rem;
            }

            .source-item {
                padding: 0.5rem 1rem;
                font-size: 0.875rem;
            }

            .feature-card,
            .step-card {
                padding: 1.5rem;
            }

            .format-options {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .hero-section {
                padding: 3rem 0 1.5rem;
            }

            .hero-title {
                font-size: 1.75rem;
            }

            .source-item {
                padding: 0.5rem 0.75rem;
                font-size: 0.75rem;
            }

            .btn-upload {
                padding: 0.375rem 0.75rem;
                font-size: 0.8125rem;
            }

            .col-md-4,
            .col-md-6,
            .col-lg-3,
            .col-lg-4 {
                margin-bottom: 1.25rem;
            }

            .d-flex .timeline-icon {
                margin-right: 1rem;
                margin-bottom: 0;
            }

            footer {
                padding: 3rem 0 1.25rem;
            }

            .conversion-section {
                padding: 1.5rem;
                width: 95%;
            }
        }

        /* Add this to your style section */
        .language-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 0.75rem;
        }

        /* New Sections */
        .comparison-section {
            background-color: var(--white);
            padding: 4rem 0;
            border-top: 1px solid var(--light-gray);
            border-bottom: 1px solid var(--light-gray);
        }

        .comparison-table {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .comparison-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 1rem;
            font-weight: 600;
        }

        .comparison-row {
            display: flex;
            border-bottom: 1px solid var(--light-gray);
        }

        .comparison-row:last-child {
            border-bottom: none;
        }

        .comparison-feature {
            flex: 1;
            padding: 1rem;
            font-weight: 500;
        }

        .comparison-value {
            flex: 1;
            padding: 1rem;
            text-align: center;
        }

        .comparison-value.good {
            color: var(--primary);
            font-weight: 600;
        }

        .faq-section {
            padding: 4rem 0;
            background-color: var(--light);
        }

        .faq-card {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .faq-header {
            padding: 1.25rem;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
        }

        .faq-header i {
            color: var(--primary);
        }

        .faq-content {
            padding: 0 1.25rem;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-content.show {
            padding: 0 1.25rem 1.25rem;
            max-height: 500px;
        }

        .use-cases-section {
            padding: 4rem 0;
        }

        .use-case-card {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            padding: 1.5rem;
            height: 100%;
            transition: all 0.3s ease;
        }

        .use-case-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .use-case-icon {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }


        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--light-gray);
            margin-right: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 600;
        }


        .preview-section {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            padding: 2rem;
            margin: 2.5rem auto;
            width: 95%;
            max-width: 1200px;
            border: 1px solid var(--light-gray);
            display: none;
        }

        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .preview-container {
            display: flex;
            gap: 1.5rem;
            min-height: 500px;
        }

        .preview-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--light-gray);
            border-radius: var(--radius);
            overflow: hidden;
        }

        .preview-header-bar {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 0.75rem 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .preview-content {
            flex: 1;
            padding: 1.5rem;
            overflow-y: auto;
            background-color: var(--light);
            position: relative;
        }

        .preview-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            text-align: center;
            color: var(--gray);
        }

        .preview-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .preview-placeholder.pdf .preview-icon {
            color: #ff5252;
        }

        .preview-placeholder.word .preview-icon {
            color: #2b579a;
        }

        .preview-actions {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .preview-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .preview-btn.download {
            background-color: var(--primary);
            color: white;
            border: none;
        }

        .preview-btn.download:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
        }

        .preview-btn.convert-another {
            background-color: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .preview-btn.convert-another:hover {
            background-color: var(--primary-light);
        }

        .preview-info {
            background-color: var(--light);
            padding: 0.75rem;
            border-top: 1px solid var(--light-gray);
            font-size: 0.9rem;
            color: var(--gray);
            display: flex;
            justify-content: space-between;
        }

        .comparison-section {
            background-color: var(--white);
            padding: 4rem 0;
            border-top: 1px solid var(--light-gray);
            border-bottom: 1px solid var(--light-gray);
        }

        .comparison-table {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .comparison-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 1rem;
            font-weight: 600;
        }

        .comparison-row {
            display: flex;
            border-bottom: 1px solid var(--light-gray);
        }

        .comparison-row:last-child {
            border-bottom: none;
        }

        .comparison-feature {
            flex: 1;
            padding: 1rem;
            font-weight: 500;
        }

        .comparison-value {
            flex: 1;
            padding: 1rem;
            text-align: center;
        }

        .comparison-value.good {
            color: var(--primary);
            font-weight: 600;
        }

        .uploaded-files-container {
            width: 100%;
        }

        .files-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .files-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }

        .uploaded-file-box {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            background: #f8f9fa;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .file-info {
            display: flex;
            align-items: center;
            flex: 1;
            flex-direction: column;
        }

        .file-details {
            margin-left: 10px;
        }

        .remove-file-btn {
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .word-wrap {
            white-space: normal;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }


        .remove-file-btn:hover {
            background: #c82333;
        }

        /* Responsive adjustments */
        @media (max-width: 992px) {
            .preview-container {
                flex-direction: column;
            }

            .preview-column {
                min-height: 300px;
            }
        }

        @media (max-width: 768px) {
            .preview-section {
                width: 100%;
                padding: 1.5rem;
            }

            .preview-container {
                min-height: auto;
            }

            .preview-info {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

        .custom-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: #8B0000;
            /* dark red */
            color: #fff;
            padding: 15px 20px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 500;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            z-index: 9999;
            display: none;
            /* hidden by default */
            animation: slideIn 0.5s ease;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }


        /* css for progress bar */
        /* PDF to Word Progress Section Styles */
        .progress-section {
            background-color: var(--white);
            border-radius: var(--radius);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            padding: 3rem 2rem;
            margin: 2.5rem auto;
            width: 90%;
            max-width: 900px;
            border: 1px solid var(--light-gray);
            position: relative;
            overflow: hidden;
        }

        /* Background decoration for progress section */
        .progress-section::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-light) 0%, rgba(109, 93, 252, 0.05) 100%);
            z-index: -1;
        }

        .progress-section::after {
            content: '';
            position: absolute;
            bottom: -50px;
            left: -50px;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(109, 93, 252, 0.05) 0%, var(--primary-light) 100%);
            z-index: -1;
        }

        .progress-container {
            position: relative;
            z-index: 1;
        }

        /* Progress bar styling */
        .progress {
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
            border: 2px solid var(--light-gray);
        }

        .progress-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
        }

        /* Animated shine effect on progress bar */
        .progress-bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shine 2s infinite;
        }

        @keyframes shine {
            0% {
                left: -100%;
            }

            100% {
                left: 100%;
            }
        }

        /* Progress text styling */
        .progress-text {
            text-align: center;
        }

        .progress-text p {
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .progress-text small {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary) !important;
        }

        /* Spinner styling */
        .spinner-border {
            width: 3rem;
            height: 3rem;
            border-width: 0.3em;
            animation: spin-pulse 1.5s linear infinite;
        }

        @keyframes spin-pulse {
            0% {
                transform: rotate(0deg) scale(1);
                opacity: 1;
            }

            50% {
                transform: rotate(180deg) scale(1.1);
                opacity: 0.8;
            }

            100% {
                transform: rotate(360deg) scale(1);
                opacity: 1;
            }
        }

        /* Progress section title */
        .progress-section h4 {
            font-weight: 700;
            background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 2rem;
        }

        /* Icon animation */
        .fa-spin {
            animation: fa-spin-custom 2s infinite linear;
        }

        @keyframes fa-spin-custom {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Conversion specific icon styling */
        .fa-exchange-alt {
            color: var(--primary);
            text-shadow: 0 2px 4px rgba(126, 110, 246, 0.3);
        }

        /* Enhanced progress container */
        .progress-container {
            background: var(--light);
            padding: 2rem;
            border-radius: calc(var(--radius) - 4px);
            border: 1px solid rgba(126, 110, 246, 0.1);
        }

        /* Pulsing effect for the container */
        @keyframes container-pulse {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(126, 110, 246, 0.3);
            }

            50% {
                box-shadow: 0 0 0 10px rgba(126, 110, 246, 0.1);
            }
        }

        .progress-container {
            animation: container-pulse 3s infinite;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .progress-section {
                width: 95%;
                padding: 2rem 1.5rem;
                margin: 1.5rem auto;
            }

            .progress-container {
                padding: 1.5rem;
            }

            .progress {
                height: 20px !important;
            }

            .progress-bar {
                font-size: 0.8rem;
            }

            .progress-section h4 {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
            }

            .spinner-border {
                width: 2.5rem;
                height: 2.5rem;
            }
        }

        @media (max-width: 576px) {
            .progress-section {
                padding: 1.5rem 1rem;
            }

            .progress-container {
                padding: 1rem;
            }

            .progress {
                height: 18px !important;
            }

            .progress-text p {
                font-size: 0.9rem;
            }

            .progress-text small {
                font-size: 1rem;
            }

            .progress-section h4 {
                font-size: 1.25rem;
            }
        }

        /* Success state styling */
        .progress-complete {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        }

        .progress-complete::before {
            animation: shine-success 1s ease-out;
        }

        @keyframes shine-success {
            0% {
                left: -100%;
            }

            100% {
                left: 100%;
            }
        }

        /* Loading dots animation for text */
        .loading-dots::after {
            content: '';
            animation: loading-dots 1.5s infinite;
        }

        @keyframes loading-dots {

            0%,
            20% {
                content: '';
            }

            40% {
                content: '.';
            }

            60% {
                content: '..';
            }

            80%,
            100% {
                content: '...';
            }
        }

        /* for styling of generated summary from api  */
        .summary-text {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #333;
            line-height: 1.8;
        }

        .summary-text .heading-1 {
            color: #1a73e8;
            font-size: 1.6em;
            font-weight: 700;
            margin: 2rem 0 1rem 0;
            padding-bottom: 0.5rem;
            border-bottom: 3px solid #1a73e8;
        }

        .summary-text .heading-1:first-child {
            margin-top: 0;
        }

        .summary-text .heading-2 {
            color: #0d6efd;
            font-size: 1.35em;
            font-weight: 600;
            margin: 1.5rem 0 0.8rem 0;
            padding-left: 0.5rem;
            border-left: 4px solid #0d6efd;
        }

        .summary-text .heading-3 {
            color: #495057;
            font-size: 1.15em;
            font-weight: 600;
            margin: 1.2rem 0 0.6rem 0;
        }

        .summary-text strong {
            color: #0d6efd;
            font-weight: 600;
        }

        .summary-text em {
            color: #6c757d;
            font-style: italic;
        }

        .summary-text .custom-list {
            margin: 0.8rem 0 0.8rem 1.5rem;
            padding-left: 0.5rem;
        }

        .summary-text .custom-list li {
            margin-bottom: 0.5rem;
            line-height: 1.7;
            list-style-type: disc;
            color: #495057;
        }

        .summary-text .custom-list li strong {
            color: #212529;
        }

        .summary-text .blockquote-box {
            background: #f8f9fa;
            border-left: 4px solid #ffc107;
            padding: 1rem 1.5rem;
            margin: 1rem 0;
            font-style: italic;
            color: #6c757d;
            border-radius: 0.25rem;
        }

        .summary-text p {
            margin-bottom: 0.8rem;
        }
        /* for tools hover */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}
.card:hover i {
    color: #4b27eb;
}
.card:hover .card-title {
    color: #4b27eb;
}
.card-title{
    font-size: 1.25rem;
}
/* Round buttons with perfectly centered icons */
.share-btn {
    border-radius: 50%;       /* Circle */
    width: 40px;              /* Button size */
    height: 40px;
    display: flex;
    align-items: center;      /* Vertical center */
    justify-content: center;  /* Horizontal center */
    padding: 0;
    margin: 5px;
    border: 1px solid #0d6efd;
    background: white;
    transition: all 0.3s ease;
}

/* Images & SVG inside buttons */
.share-btn img, .share-btn svg {
    width: 20px;
    height: 20px;
    display: block;   /* Centering */
    margin: 0;        /* Remove inline margin */
}

/* QR code icon black */
#qrBtn svg {
    fill: black;
}

/* Hover effect: purple background + white icons */
.share-btn:hover {
    background-color: #4b27eb;
    border-color: #4b27eb;
}

.share-btn:hover img, .share-btn:hover svg {
    filter: brightness(0) invert(1);
}
/* for QR model */
#qrcode {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.source-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-right: 10px;
    font-size: 15px;
    color: #333;
}

.source-item img,
.source-item svg {
    vertical-align: middle;
}

.source-item:hover {
    background-color: #f8f9fb;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.source-item span {
    font-weight: 500;
}

#googleDriveBtn:hover {
    border-color: #4285F4;
    color: #4285F4;
}

#dropboxBtn:hover {
    border-color: #0061FF;
    color: #0061FF;
}

#urlSourceBtn:hover {
    border-color: #6c757d;
    color: #6c757d;
}
.rotate-icon {
    display: inline-block;
    animation: spin 1.2s linear infinite;
    vertical-align: middle; /* text ke sath center align */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.url-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.url-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  background-color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-input:focus {
  outline: none;
  border-color: #795ef1;
}

/* Buttons (Equal size, aligned) */
.url-close-btn,
.url-submit-btn {
  background: #795ef1;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.url-close-btn:hover,
.url-submit-btn:hover {
  background: #6a4ee0;
}

/* SVG icons — same size for both */
.url-close-btn svg {
  width: 20px;
  height: 20px;
}
.url-submit-btn svg {
  width: 30px;
  height: 30px;
  transform: scale(1.3);
}