  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        :root {
            --primary: #ff9900;
            --secondary: #ad1212;
            --accent: #ffbb00;
            --text: #2d3436;
            --light: #f5f6fa;
            --success: #00b894;
            --warning: #fdcb6e;
            --error: #d63031;
            --glass: rgba(4, 6, 34, 0.651);
            --glass-border: rgba(18, 4, 36, 0.3);
            --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
        
        body {
            min-height: 100vh;
            background: url('F.gif') no-repeat center center fixed;
            background-size: cover;
            color: var(--light);
            overflow-x: hidden;
            backdrop-filter: blur(35px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        /* Welcome Page */
        .welcome-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            z-index: 1000;
            transition: all 0.5s ease;
        }
        
        .welcome-logo {
            width: 200px;
            height: 200px;
            margin-bottom: 20px;
            animation: float 3s ease-in-out infinite;
        }
        
        .app-name {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
              text-align: center;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .app-description {
            max-width: 600px;
            text-align: center;
            margin-bottom: 30px;
            line-height: 1.6;
            padding: 0 20px;
        }
        
        .get-started-btn {
            padding: 15px 60px;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            border: none;
            border-radius: 50px;
            color: white;
            font-weight: 600;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
            position: relative;
            overflow: hidden;
        }
        
        .get-started-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
        }
        
        .get-started-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--secondary), var(--primary));
            z-index: -1;
            transition: opacity 0.3s ease;
            opacity: 0;
        }
        
        .get-started-btn:hover::after {
            opacity: 1;
        }
        
        /* Main Dashboard */
        .container {
            display: none;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px;
            background: var(--glass);
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
        }
        
        .app-title {
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .typing-effect {
            font-size: 0.9rem;
            color: var(--light);
            opacity: 0.8;
            margin-top: 5px;
            min-height: 1.2em; /* Prevents layout shift during typing animation */
            display: inline-block; /* Ensures min-height is respected properly */
        }
        
        .auth-buttons {
            display: flex;
            gap: 15px;
        }
        
        .btn {
            padding: 8px 20px;
            border: none;
            border-radius: 50px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            color: white;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
        }
        
        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .btn-success {
            background: var(--success);
            color: white;
        }
        
        .btn-warning {
            background: var(--warning);
            color: var(--text);
        }
        
        .btn-accent {
            background: var(--accent);
            color: white;
        }
        
        .btn-accent:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(253, 121, 168, 0.4);
        }
        
        /* Verification Popup */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1001;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
        }
        
        .popup-overlay.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .popup-card {
            background: var(--glass);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            width: 90%;
            max-width: 400px;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            transform: scale(0.9);
            transition: all 0.3s ease;
            text-align: center;
             position: relative;
        }
        
        .popup-overlay.active .popup-card {
            transform: scale(1);
        }
        
        .popup-title {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: white;
        }
         .popup-close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            line-height: 1;
            padding: 0;
            opacity: 0.7;
            transition: opacity 0.2s ease;
        }

        .popup-close-btn:hover {
            opacity: 1;
        }
        
        .popup-input {
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 20px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .popup-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .register-link {
            display: block;
            margin-top: 15px;
            color: var(--secondary);
            text-decoration: none;
            font-size: 0.9rem;
        }
        
        .register-link:hover {
            text-decoration: underline;
        }
        
        /* Main Content */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        
        .upload-section {
            background: var(--glass);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .upload-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .upload-title {
            font-size: 1.3rem;
            font-weight: 600;
        }
        
        .settings-container {
            position: relative;
        }
        
        .settings-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 8px;
            padding: 8px 12px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s ease;
        }
        
        .settings-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .settings-dropdown {
            position: absolute;
            top: 40px;
            right: 0;
            background: var(--glass);
            backdrop-filter: blur(10px);
            border-radius: 8px;
            padding: 10px 0;
            width: 200px;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            z-index: 10;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }
        
        .settings-dropdown.active {
            opacity: 1;
            pointer-events: all;
            transform: translateY(0);
        }
        
        .dropdown-item {
            padding: 8px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .dropdown-item:hover {
            background: rgba(38, 0, 255, 0.274);
        }
        
        .dropdown-item.locked {
            opacity: 0.6;
            position: relative;
        }
        
        .dropdown-item.locked::after {
             font-family: "Font Awesome 6 Free";
            font-weight: 900; /* Required for solid icons */
            content: '\f023'; /* Unicode for fa-lock */
            position: absolute;
            right: 15px;
        }
        
        .dropdown-item.locked:hover .tooltip {
            display: block;
        }
        
        .tooltip {
            display: none;
            position: absolute;
            top: -40px;
            left: 50%;
            transform: translateX(-50%);
            background: red;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8rem;
            white-space: nowrap;
            z-index: 20;
        }
        
        .tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: red;
        }
        
        .upload-area {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .upload-box {
            flex: 1;
            min-width: 300px;
            min-height: 200px;
            border: 2px dashed rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            background: rgba(255, 255, 255, 0.05);
        }
        
        .upload-box:hover {
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.1);
        }
        
        .upload-icon {
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: rgb(255, 227, 150);
        }
        
        .upload-text {
            margin-bottom: 15px;
        }
        
        .upload-input {
            display: none;
        }
        
        .preview-container {
            flex: 1;
            min-width: 300px;
            min-height: 200px;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .preview-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: none;
        }
        
        .preview-placeholder {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.5);
        }
        
        .input-container {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .url-input {
            flex: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .url-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .url-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }
        
        .send-btn {
            padding: 12px 20px;
            background: linear-gradient(45deg, rgb(19, 6, 131), rgb(3, 12, 49));
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
             align-self: center; /* Prevents the button from stretching to full width */
        }
        
        .send-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(65, 9, 170, 0.4);
        }
        
        .send-btn:disabled {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.5);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .limit-message {
            color: var(--warning);
            font-size: 0.9rem;
            display: none;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
        }
        
        /* Analysis Section */
        .analysis-section {
            background: var(--glass);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            display: none;
        }
        
        .thinking-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .thinking-text {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--accent);
            position: relative;
        }
        
        .thinking-dots {
            display: flex;
            gap: 5px;
        }
        
        .dot {
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            animation: bounce 1.5s infinite ease-in-out;
        }
        
        .dot:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .dot:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        .analysis-content {
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .typing-text {
            border-right: 2px solid var(--accent);
            animation: blink 0.7s infinite;
            white-space: pre-wrap;
        }
        
        .prompt-container {
            background: rgba(0, 0, 0, 0.658);
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
            position: relative;
        }
        
        .prompt-title {
            font-size: 0.9rem;
            margin-bottom: 10px;
            color: rgb(255, 72, 0);
        }
        
        .prompt-text {
            font-family: monospace;
            white-space: pre-wrap;
            word-break: break-word;
        }
        
        .copy-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 5px;
            padding: 5px 10px;
            color: white;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .copy-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .action-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }
        
        /* Footer */
        .footer {
            text-align: center;
            padding: 20px;
            margin-top: 30px;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* Loading Animation */
        .loading-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(1, 1, 24, 0.623);
            backdrop-filter: blur(2px);
           display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            pointer-events: none;
            transition: var(--transition);
        }
        
        .loading-container.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .loading-spinner {
              width: 80px;
            height: 80px;
            border: 4px solid rgb(4, 6, 41);
            border-top: 4px solid #ffee00;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
            position: center;
        }
         .loading::after {
            content: '';
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            bottom: 10px;
            border: 2px solid rgba(118, 75, 162, 0.2);
            border-top: 2px solid #764ba2;
            border-radius: 50%;
            animation: spin 1.5s linear infinite reverse;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-text {
            margin-top: 20px;
            font-size: 1.1rem;
            color: white;
            text-align: center;
        }
           @keyframes loadingPulse {
            0%, 100% { opacity: 0.7; }
            50% { opacity: 1; }
        }
        
        /* API Status Indicator */
        .api-status {
            position: fixed;
            bottom: 20px;
            right: 20px;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 100;
        }
        
        .api-status.connected {
            background: rgba(0, 184, 148, 0.2);
            border: 1px solid var(--success);
            color: var(--success);
        }
        
        .api-status.disconnected {
            background: rgba(214, 48, 49, 0.2);
            border: 1px solid var(--error);
            color: var(--error);
        }
        
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }
        
        .connected .status-dot {
            background: var(--success);
            animation: pulse 2s infinite;
        }
        
        .disconnected .status-dot {
            background: var(--error);
        }
        
        /* Animations */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        @keyframes blink {
            0%, 100% { border-color: var(--accent); }
            50% { border-color: transparent; }
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.3; }
            100% { opacity: 1; }
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .upload-area {
                flex-direction: column;
            }
            
            .upload-box, .preview-container {
                min-width: 100%;
            }
            
            .header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .auth-buttons {
                width: 100%;
                justify-content: center;
            }
        }
         /* Mobile responsiveness for input container */
    @media (max-width: 768px) {
        .input-container {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem; /* Add some space between the stacked items */
        }
    }
.ai-tools-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1500px;
    width: 100%;
    margin-top: 30px;
    animation: expandDown 0.5s ease-out;
}

@keyframes expandDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}



.ai-tool-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.ai-tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ai-tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.ai-tool-icon {
    font-size: 24px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-tool-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.ai-tool-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}
/* Explain Cards */
.explain-cards-section {
    max-width: 1140px;
    margin: 30px auto; /* Use auto margin for horizontal centering */
    padding: 15px;
    background: rgba(0, 0, 0, 0.459);
    backdrop-filter: blur(20px);
    border: 1px solid rgb(3, 3, 85);
    border-radius: 15px;
}

.explain-cards-header {
    display: flex;
    align-items: center;
      justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.explain-cards-header i {
    font-size: 24px;
            margin-bottom: 10px;
            background: rgb(255, 213, 27);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: aurora-flow 5s ease-in-out infinite;
        }

.explain-cards-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: rgb(3, 11, 59);
}

.explain-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.explain-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.explain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(1, 5, 26, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.explain-card:hover::before {
    opacity: 1;
}

.explain-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 119, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.explain-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.explain-card-header i {
    font-size: 18px;
    color: #4ecdc4;
}

.explain-card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.explain-card-description {
    font-size: 13px;
    color: rgb(180, 180, 180);
    line-height: 1.4;
}
/* Add this to your style.css file for the background blur effect */
body.blur-background > #welcomeScreen,
body.blur-background > #mainContainer {
    filter: blur(5px);
    transition: filter 0.2s ease-in-out;
    pointer-events: none;
    user-select: none;
}
