.chat-header {
            text-align: center;
            margin: 20px 0;
        }
        
        .chat-header h1 {
            font-size: 2.2rem;
            font-weight: 800;
            letter-spacing: 1px;
            margin: 0;
            background: linear-gradient(45deg, #0d6efd, #00c6ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .chat-header .powered-by {
            display: block;
            margin-top: 6px;
            font-size: 0.75rem;
            color: #666;
            letter-spacing: 0.5px;
        }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: #f5f5f5;
            display: flex;
            flex-direction: column;
            height: 100vh;
	   margin-bottom:10px;
        }

        /* Chat container */
        #chatbox {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 80vh; /* or any fixed height */
        }

        /* Bubbles */
        .msg {
            max-width: 70%;
            padding: 12px 16px;
            border-radius: 12px;
            line-height: 1.4;
            font-size: 15px;
            animation: fadeIn 0.2s ease-in-out;
        }

        .you {
            align-self: flex-end;
            background: #007bff;
            color: white;
            border-bottom-right-radius: 0;
        }

        .bot {
            align-self: flex-start;
            background: white;
            color: #333;
            border-bottom-left-radius: 0;
            border: 1px solid #ddd;
        }

        /* Input area */
        #inputArea {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            
            display: flex;
            padding: 10px;
            background: #fff;
            border-top: 1px solid #ddd;
        
            box-sizing: border-box; /* prevents overflow on mobile */
            z-index: 9999; /* stay on top */
        }
        
        h1 {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(45deg, #007bff, #00c6ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
            margin: 20px 0;
        }


        #msg {
            flex: 1;
            padding: 12px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 6px;
        }

        #sendBtn {
            margin-left: 10px;
            padding: 12px 18px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        #sendBtn:hover {
            background: #218838;
        }

        /* Fade animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Typing indicator */
        .typing {
            width: 60px;
            height: 20px;
            background: white;
            border-radius: 10px;
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .dot {
            width: 6px;
            height: 6px;
            background: #999;
            border-radius: 50%;
            animation: blink 1s infinite;
        }

        .dot:nth-child(2) { animation-delay: 0.2s; }
        .dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes blink {
            0% { opacity: .2; }
            50% { opacity: 1; }
            100% { opacity: .2; }
        }