        /* Root Variables */
        :root {
            --primary: #3a86ff;
            --primary-dark: #2667cc;
            --secondary: #6c757d;
            --success: #38b000;
            --danger: #d90429;
            --light: #f8f9fa;
            --dark: #212529;
            --gray-100: #f8f9fa;
            --gray-200: #e9ecef;
            --gray-300: #dee2e6;
            --gray-800: #343a40;
        }
        
        /* Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--dark);
            background-color: var(--gray-100);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* Header Styles */
        header {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 20px 0;
        }
        
        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .w-full{
            width:100%;
            height:30px;
            
        }
        .logo {
            font-size: 40px;
            font-weight: bold;
            color: var(--primary);
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 10px;
            font-size: 28px;
        }
        
        /* Main Content Styles */
        main {
            flex-grow: 1;
            padding: 40px 0;
        }
        
        /* Card Component Styles */
        .card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            margin-bottom: 30px;
            overflow: hidden;
        }
        
        .card-header {
            padding: 20px 30px;
            border-bottom: 1px solid var(--gray-200);
            background-color: rgba(58, 134, 255, 0.03);
        }
        
        .card-header h2 {
            font-size: 20px;
            color: var(--primary);
            margin: 0;
        }
        
        .card-body {
            padding: 30px;
        }
        
        /* Upload Zone Styles */
        .upload-zone {
            border: 2px dashed var(--gray-300);
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            transition: all 0.3s ease;
            background-color: var(--gray-100);
            position: relative;
            cursor: pointer;
        }
        
        .upload-zone:hover {
            border-color: var(--primary);
            background-color: rgba(58, 134, 255, 0.05);
        }
        
        .upload-zone i {
            font-size: 48px;
            color: var(--primary);
            margin-bottom: 15px;
            display: block;
        }
        
        .upload-zone h3 {
            margin-bottom: 10px;
            color: var(--dark);
        }
        
        .upload-zone p {
            color: var(--secondary);
            margin-bottom: 20px;
        }
        
        .upload-zone input[type="file"] {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
        }
        
        /* Button Styles */
        .btn {
            display: inline-block;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 500;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
        }
        
        .btn-primary:disabled {
            background-color: var(--gray-300);
            cursor: not-allowed;
        }
        
        /* File Info Styles */
        .file-info {
            margin-top: 20px;
            padding: 10px;
            border-radius: 6px;
            background-color: var(--gray-100);
            display: none;
        }
        
        .file-info.show {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .file-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 60%;
        }
        
        /* Process Button Wrapper */
        .process-btn-wrapper {
            text-align: center;
            margin-top: 30px;
        }
        
        /* Results Grid Styles */
        .result-grid-container {
            max-height: 400px;
            overflow-y: auto;
            margin-bottom: 30px;
            border-radius: 8px;
            border: 1px solid var(--gray-200);
        }
        
        .result-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            padding: 20px;
        }
        
        .result-card {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            background-color: white;
        }
        
        .result-card-header {
            padding: 15px;
            background-color: var(--primary);
            color: white;
            font-weight: 500;
        }
        
        .result-card-body {
            padding: 15px;
        }
        
        .result-card img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 4px;
        }
        
        /* Text Output Styles */
        .text-output {
            margin-top: 20px;
        }
        
        .text-output h3 {
            margin-bottom: 15px;
            color: var(--dark);
            display: flex;
            align-items: center;
        }
        
        .text-output h3 i {
            margin-right: 10px;
            color: var(--primary);
        }
        
        .text-content-wrapper {
            position: relative;
        }
        
        .text-content {
            background-color: var(--dark);
            color: white;
            padding: 20px;
            border-radius: 8px;
            white-space: pre-wrap;
            overflow-y: auto;
            max-height: 300px;
            font-family: 'Courier New', monospace;
            line-height: 1.5;
        }
        
        .text-content::-webkit-scrollbar {
            width: 8px;
        }
        
        .text-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }
        
        .text-content::-webkit-scrollbar-thumb {
            background-color: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
        }
        
        .text-content::-webkit-scrollbar-thumb:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }
        
        /* Loading Indicator Styles */
        .loading-indicator {
            display: none;
            text-align: center;
            padding: 20px;
        }
        
        .loading-indicator.show {
            display: block;
        }
        
        .spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top: 4px solid var(--primary);
            width: 40px;
            height: 40px;
            margin: 0 auto 15px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Error Alert Styles */
        .error-alert {
            padding: 15px;
            background-color: rgba(217, 4, 41, 0.1);
            color: var(--danger);
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
        }
        
        .error-alert.show {
            display: block;
        }
        
        /* Footer Styles */
        footer {
            background-color: white;
            padding: 25px 0;
            text-align: center;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            margin-top: auto;
        }
        
        footer p {
            color: var(--secondary);
            font-size: 14px;
        }

        /* Copy Button Styles */
        .copy-btn {
            background-color: var(--gray-800);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 5px 10px;
            font-size: 12px;
            cursor: pointer;
            float: right;
            position: relative;
            z-index:999;
        }

        .copy-btn:hover {
            background-color: var(--primary);
        }

        /* Result Actions Styles */
        .result-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        
        .result-actions button {
            flex: 1;
            margin: 0 5px;
        }
        
        /* Scrollbar Indicator Styles */
        .scrollbar-indicator {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background-color: rgba(58, 134, 255, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            display: none;
        }
        
        .scrollbar-indicator.show {
            display: block;
            animation: fadeOut 2s forwards;
            animation-delay: 3s;
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }
            
            .result-grid {
                grid-template-columns: 1fr;
            }
        }