/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* Video Background */
#background-video {
    position: fixed;
    top: 0; 
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

/* Glass Container */
.chatbot-container {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    overflow: hidden;
}

/* Chat Container */
.chat-container {
    width: 100%;
    height: 60vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Chat Bubbles */
.user-chat-box {
    width: 60%;
    position: relative;
    left: 40%;
}

.ai-chat-box {
    width: 60%;
    position: relative;
}

.user-chat-area {
    width: 90%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 40px 0px 40px 40px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 10px;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.ai-chat-area {
    width: 90%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    left: 10%;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0px 40px 40px 40px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Avatar Images */
#userImage, #aiImage {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

#userImage {
    position: absolute;
    right: 0;
}

#aiImage {
    position: absolute;
    left: 0;
}

/* Input Area */
.prompt-area {
    width: 100%;
    padding: 20px;
    background-color: rgba(45, 52, 59, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prompt-area input {
    width: 70%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    outline: none;
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    color: white;
    font-size: 18px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.prompt-area button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prompt-area button:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.prompt-area button img {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .user-chat-box, .ai-chat-box {
        width: 80%;
    }
    
    .user-chat-box {
        left: 20%;
    }
    
    .prompt-area input {
        width: 60%;
        height: 50px;
        font-size: 16px;
    }
    
    .prompt-area button {
        width: 50px;
        height: 50px;
    }
}