/* AI Agent Tab */
.floating-tab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.tab-icon {
    background-color: #007bff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
}

.tab-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
}

/* Avatar Container */
#avatar-container {
    position: fixed;
    bottom: 90px; /* Adjust based on your layout */
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    margin-bottom: 10px;
}

/* AI Agent Popup */
.ai-agent-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
}

/* Popup Header */
.popup-header {
    display: flex;
    align-items: center; /* Center items vertically */
    background-color: #007bff; /* Header background color */
    color: white; /* Text color */
    padding: 10px 15px; /* Padding for the header */
    justify-content: space-between; /* Space between avatar and close button */
    border-top-left-radius: 10px; /* Rounded corners */
    border-top-right-radius: 10px; /* Rounded corners */
}

/* Avatar Container */
.avatar-container {
    width: 100px; /* Increased width for the avatar */
    height: 100px; /* Increased height for the avatar */
    border-radius: 50%; /* Keep it circular */
    overflow: hidden; /* Hide overflow */
    border: 2px solid white; /* Optional: white border for better visibility */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional: shadow for depth */
}

/* Avatar Image */
#avatar {
    width: 100%; /* Make image fill the container */
    height: auto; /* Maintain aspect ratio */
}

/* Close Button */
.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Chat Messages */
.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
}

/* Input Area */
.input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}

.input-area input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.input-area button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 5px;
}

/* Ad Popup */
.ad-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1002;
    text-align: center;
    padding: 20px;
}

.ad-content {
    position: relative;
}

.ad-inner {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    padding: 30px;
    border-radius: 10px;
}

/* Loading Message */
#loading-message {
    color: red; /* Set text color to red */
    font-weight: bold; /* Optional: make the text bold */
    margin-top: 10px; /* Optional: add some space above the message */
}

.chat-background {
    background-image: url('../img/Areteai-Avatar.webp'); /* Ensure the path is correct */
    background-size: cover; /* Cover the entire chat window */
    background-position: center; /* Center the image */
    width: 100%; /* Full width */
    height: 400px; /* Increase the height to make it larger */
    position: relative; /* Position relative for absolute positioning of text */
    padding: 20px; /* Padding around the chat content */
    overflow-y: auto; /* Allow scrolling if content overflows */
    border-radius: 10px; /* Optional: rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: add shadow for depth */
}

.conversation {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 10px; /* Rounded corners for the conversation area */
    padding: 10px; /* Padding inside the conversation area */
    height: 100%; /* Full height of the chat window */
    color: white; /* Text color */
}

.message {
    margin: 10px 0; /* Space between messages */
}

.user-message {
    text-align: left; /* Align user messages to the left */
}

.ai-message {
    text-align: right; /* Align AI messages to the right */
}