/* Floating Avatar Wrapper */
#avatarFloatingContainer {
    position: fixed; /* Keeps the container floating on screen */
    bottom: 20px; /* Position from bottom */
    right: 20px; /* Position from right */
    width: 350px; /* Similar width to a chat widget */
    height: 500px; /* Adjust height for avatar */
    background: white; /* White background */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Floating shadow effect */
    z-index: 9999; /* Ensures it appears above most content */
    display: flex; /* Center-align video content */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents any content overflow */
    transition: transform 0.3s ease-in-out; /* Smooth animation */
}

/* Floating Video Player */
#avatarFloatingContainer video {
    width: 100%; /* Fit video to container */
    height: 100%;
    object-fit: cover; /* Crop video proportionally to fill */
    background: black; /* Placeholder background */
}

/* Floating Button */
.floating-avatar-button {
    position: fixed; /* Stays in the bottom-left corner */
    bottom: 20px;
    left: 20px;
    z-index: 10000; /* Ensures it stays on top of everything */
}

.floating-avatar-button button {
    background-color: #0078d4; /* Blue background color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.floating-avatar-button button:hover {
    background-color: #005fa3;
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Avatar Status Display */
#avatarFloatingContainer #status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 8px;
}

/* General Resets */
.avatar-container,
.entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Position the Transcription Container */
#transcriptionContainer {
    position: absolute;
    bottom: 15px; /* Anchors transcription at the bottom */
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-size: 0.9em;
    z-index: 10;
}

/* Start Recognition Button */
#startRecognition {
    background: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#startRecognition:hover {
    background: #005fa3;
}

/* Recording Status */
#recordingStatus {
    color: #aaa;
    font-size: 0.9em;
}
