html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            background: transparent !important;
            width: 100vw;
            min-height: 100vh;
            overflow: hidden;
                overflow-x: hidden;
    overflow-y: auto;
        }
        body {
            font-family: 'Cairo', Arial, sans-serif;
            background: transparent !important;
            width: 100vw;
            min-height: 100vh;
            display: flex;
            align-items: stretch;
            justify-content: stretch;
            flex-direction: column;
        }


.header {
    display: flex;
    background: linear-gradient(90deg, #a16ae8 0%, #6700a3 100%);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-family: 'Cairo', Arial, sans-serif;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header img {

    height: 36px;
    max-width: 100%;

}

.about-btn {
    color: #fff;
    align-items: center;
    display: flex;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 100%;
    padding: 8px 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.18s;
}

.about-btn:hover {
    background: linear-gradient(90deg, #A855F7 0%, #8B5CF6 100%);
    transform: translateY(-2px) scale(1.04);
}

.about-dialog {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31, 41, 55, 0.45);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.about-dialog.active {
    display: flex;
}

.about-dialog-content {
    background: #fff;
    border-radius: 22px;
    padding: 38px 32px 28px 32px;
    max-width: 400px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.18);
    position: relative;
    text-align: center;
    animation: fadeInUp 0.4s cubic-bezier(.4,2,.6,1);
}

.about-dialog-content h2 {
    color: black;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.6rem;

    background-clip: text;
    font-weight: 800;
}

.about-dialog-content p {
    color: var(--text-light, #6B7280);
    font-size: 1.08rem;
    line-height: 1.7;
}

.about-dialog-close {
    position: absolute;
    top: 14px;
    left: 18px;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #a16ae8;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

.about-dialog-close:hover {
    color: #8B5CF6;
}



@media (max-width: 600px) {
    .header img {
        height: 28px;
        width: auto;
    }

    .about-dialog-content {
        padding: 22px 10px 18px 10px;
        max-width: 95vw;
    }
}
       .chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px); /* Subtract header height */
    max-height: calc(100vh - 60px);
    padding-top: 60px; /* Header height */
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: none;
}

@media (max-width: 800px) {
    .chat-container {
        height: calc(100vh - 44px); /* Adjust if your header is smaller on mobile */
        max-height: calc(100vh - 44px);
        padding-top: 44px; /* Match mobile header height */
    }
    .chat-box {
        padding: 12px 4px 0 4px;
    }
}
.chat-box {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 22px 10px 0 10px;
    background: transparent !important;
    scroll-behavior: smooth;
    transition: background 0.3s;
}

.input-area {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: transparent !important;
    margin: 0;
}
        .input-box {
            display: flex;
            padding: 10px 10px 0 10px;
            border-top: 2px solid #e0d7f7;
            background: transparent !important;
            gap: 0.5rem;
            margin: 0;
        }
        input {
            flex: 1;
            padding: 12px 16px;
            border: 1.5px solid #a16ae8;
            border-radius: 24px;
            outline: none;
            font-size: 1rem;
            background: #faf7ff;
            transition: border 0.2s, box-shadow 0.2s;
            box-shadow: 0 1px 4px 0 #a16ae822;
            text-align: right;
        }
        input:focus {
            border: 1.5px solid #6700a3;
            box-shadow: 0 2px 12px 0 #a16ae855;
        }
        .send-btn {
            background: linear-gradient(90deg, #a16ae8 0%, #6700a3 100%);
            color: white;
            border: none;
            padding: 12px 22px;
            border-radius: 24px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1rem;
            box-shadow: 0 2px 8px 0 #a16ae822;
            transition: background 0.2s, transform 0.15s;
            outline: none;
        }
        .send:hover {
            background: linear-gradient(90deg, #6700a3 0%, #a16ae8 100%);
            transform: scale(1.08) translateY(-2px);
            box-shadow: 0 4px 16px 0 #a16ae855;
        }
        .message {
            display: inline-block;
            padding: 12px 18px;
            margin: 10px 0;
            border-radius: 20px;
            max-width: 80%;
            word-wrap: break-word;
            font-size: 1.05rem;
            box-shadow: 0 1px 8px 0 #a16ae822;
            position: relative;
            animation: fadeIn 0.5s;
            background-clip: padding-box;
        }
        .user-message {
            background: linear-gradient(90deg, #a16ae8 0%, #6700a3 100%);
            color: white;
            align-self: flex-end;
            margin-left: auto;
            border-bottom-right-radius: 6px;
        }
        .user-message::after {
            content: "";
            position: absolute;
            right: -10px;
            bottom: 10px;
            border-width: 8px 0 8px 10px;
            border-style: solid;
            border-color: transparent transparent transparent #a16ae8;
            filter: blur(0.5px);
        }
        .bot-message {
            background: #f3e6fa;
            color: #6700a3;
            align-self: flex-start;
            margin-right: auto;
            border-bottom-left-radius: 6px;
        }
        .bot-message::after {
            content: "";
            position: absolute;
            left: -10px;
            bottom: 10px;
            border-width: 8px 10px 8px 0;
            border-style: solid;
            border-color: transparent #e0d7f7 transparent transparent;
            filter: blur(0.5px);
        }
        .message-container {
            display: flex;
            flex-direction: column;
        }
        .powered-by {
            width: 100%;
            text-align: center;
            font-size: 12px;
            color: #a16ae8;
            opacity: 0.85;
            z-index: 2;
            letter-spacing: 0.5px;
            margin: 6px 0 0 0;
            position: static;
            background: none;
            padding: 0 0 8px 0;
        }
        .powered-by a {
            color: #6700a3;
            text-decoration: none;
            font-weight: bold;
            transition: color 0.2s;
        }
        .powered-by a:hover {
            color: #a16ae8;
        }
        @media (max-width: 800px) {
            .about-btn-container {
                top: 18px;
                right: 12px;
            }
            .about-dialog-content {
                padding: 22px 10px 18px 10px;
                max-width: 95vw;
            }
            .chat-header {
                font-size: 1.1rem;
                padding: 12px 6px 10px 6px;
            }
            .chat-logo {
                width: 28px;
                height: 28px;
                margin-left: 6px;
            }
            .chat-title {
                font-size: 1.05rem;
                margin: 0 4px;
            }
           
            .input-area {
                gap: 0.1rem;
            }
            .powered-by {
                font-size: 11px;
                margin: 4px 0 0 0;
                padding-bottom: 4px;
            }
        }