        :root {
            --primary-color: #6366f1;
            --secondary-color: #4f46e5;
            --tertiary-color: #6FB1FC;
            --accent-color: #00e1ff;
            --background-light: #f8f9fa;
            --background-dark: #1a1a2e;
            --text-light: #ffffff;
            --text-dark: #343a40;
            --text-muted-light: rgba(255, 255, 255, 0.7);
            --text-muted-dark: #6c757d;
            --border-color: rgba(255, 255, 255, 0.1);
            --font-primary: 'Poppins', sans-serif;
            --font-secondary: 'Inter', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-secondary);
            background: black;
            color: var(--text-light);
            overflow-x: hidden;
            height: 100vh;
        }

        /* Modern Navbar */
        .navbar-modern {
            background: rgba(26, 26, 46, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .navbar-brand {
            font-family: var(--font-primary);
            font-weight: 700;
            font-size: 1.5rem;
            background: white;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-decoration: none;
        }

        .nav-link {
            color: var(--text-light) !important;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 50%;
            background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        /* Main Chat Layout */
        .chat-layout {
            display: flex;
            flex-direction: column;
            height: 100vh;
            padding-top: 80px;
        }

        /* Messages Container */
        .messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 2rem 0;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) transparent;
        }

        .messages-container::-webkit-scrollbar {
            width: 6px;
        }

        .messages-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .messages-container::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }

        .messages-wrapper {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .messages {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Chat Messages */
        .chat-message {
            padding: 1rem 1.5rem;
            border-radius: 18px;
            max-width: 80%;
            position: relative;
            word-wrap: break-word;
            animation: messageSlide 0.4s ease-out;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .user-message {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: var(--text-light);
            margin-left: auto;
            box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
            border-bottom-right-radius: 4px;
        }

        .ai-message {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-light);
            margin-right: auto;
            cursor: pointer;
            transition: all 0.3s ease;
            border-bottom-left-radius: 4px;
        }

        .ai-message:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
        }

        .typing-indicator {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        .click-message {
            font-size: 0.8rem;
            color: var(--text-muted-light);
            text-align: center;
            margin-top: 0.5rem;
            font-style: italic;
        }

        /* Input Section - Fixed at Bottom */
        .input-section {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(26, 26, 46, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem 0;
            z-index: 100;
        }

        .input-wrapper {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .image-preview {
            max-width: 200px;
            max-height: 200px;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            margin-bottom: 1rem;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        /* Modern Input Container */
        .input-container {
            display: flex;
            align-items: end;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 0.5rem;
            transition: all 0.3s ease;
        }

        .input-container:focus-within {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }

        .message-input {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-light);
            padding: 0.75rem 1rem;
            resize: none;
            min-height: 44px;
            max-height: 120px;
            font-family: var(--font-secondary);
            font-size: 1rem;
            line-height: 1.5;
        }

        .message-input:focus {
            outline: none;
        }

        .message-input::placeholder {
            color: var(--text-muted-light);
        }

        .input-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .action-btn {
            background: none;
            border: none;
            color: var(--text-muted-light);
            padding: 0.5rem;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-light);
        }

        .send-btn {
            background: rgba(99, 102, 241, 0.3);
            color: var(--text-light);
            border: none;
            padding: 1rem;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
        }

        .send-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
        }

        .send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Chat Controls */
        .chat-controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }

        .control-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-light);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .clear-btn {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            border: none;
            box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
        }

        .clear-btn:hover {
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
        }

        /* Disclaimer */
        .chat-disclaimer {
            text-align: center;
            color: var(--text-muted-light);
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }

        /* Modal Styles */
        .modal-content {
            background: rgba(26, 26, 46, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            color: var(--text-light);
        }

        .modal-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem 2rem;
        }

        .modal-body {
            padding: 2rem;
        }

        .modal-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem 2rem;
        }

        .btn-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-light);
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }

        .btn-close:hover {
            opacity: 1;
        }

        .modern-btn {
            padding: 0.8rem 1.5rem;
            border-radius: 12px;
            font-weight: 600;
            font-family: var(--font-secondary);
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }

        .modern-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .modern-btn:hover::before {
            left: 100%;
        }

        /* Footer */
        .footer-modern {
            background: rgba(26, 26, 46, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-light);
            padding: 2rem 0;
            margin-top: 2rem;
        }

        .social-link {
            color: var(--text-light);
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            color: var(--accent-color);
            transform: translateY(-2px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .navbar-brand {
                font-size: 1.2rem;
            }

            .messages-wrapper {
                padding: 0 0.5rem;
            }

            .chat-message {
                max-width: 85%;
                padding: 1rem;
            }

            .input-wrapper {
                padding: 0 0.5rem;
            }

            .chat-controls {
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .control-btn {
                font-size: 0.8rem;
                padding: 0.4rem 0.8rem;
            }
        }

        /* Floating Animation */
        @keyframes float {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .floating {
            animation: float 3s ease-in-out infinite;
        }

        /* Gradient Animation */
        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .gradient-animate {
            background-size: 200% 200%;
            animation: gradientShift 3s ease infinite;
        }

        /* Add padding to prevent content from being hidden behind fixed input */
        .messages-container {
            padding-bottom: 200px;
        }