/* --- AI Robot Chatbox Container --- */
.ai-robot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* --- AI Chat Toggle Button (Logo) --- */
.ai-chat-toggle {
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0f2f7; /* Light background for the toggle */
    overflow: hidden;
    animation: float 2s ease-in-out infinite; /* Cute floating animation */
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- The Cute CSS-based Robot (Inspired by your image) --- */
.cute-robot-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #ffffff; /* Main body color */
    border-radius: 50%;
    border: 2px solid #b2ebf2; /* Light blue border */
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1); /* Inner shadow */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Robot's head */
.cute-robot-icon::before {
    content: '';
    position: absolute;
    top: -15px; /* Position above the body */
    width: 35px;
    height: 35px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 2px solid #b2ebf2;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Robot's antenna */
.cute-robot-icon::after {
    content: '';
    position: absolute;
    top: -28px; /* Above the head */
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: #b2ebf2; /* Antenna color */
    border-radius: 2px 2px 0 0;
    z-index: 2;
}

/* Robot's screen/face */
.cute-robot-face {
    position: absolute;
    width: 25px;
    height: 18px;
    background-color: #333333; /* Dark screen */
    border-radius: 5px;
    top: -5px; /* Position on the head */
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Robot's glowing eyes */
.cute-robot-face .eye-light {
    width: 8px;
    height: 8px;
    background-color: #00bcd4; /* Glowing blue */
    border-radius: 50%;
    box-shadow: 0 0 5px #00bcd4, 0 0 10px #00bcd4; /* Glowing effect */
}

/* Robot's chest accent */
.cute-robot-accent {
    position: absolute;
    width: 30px;
    height: 15px;
    background-color: #80deea; /* Light teal accent color */
    border-radius: 0 0 15px 15px; /* Rounded bottom */
    top: 30px; /* Position on the body */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* --- AI Chatbox --- */
.ai-chatbox {
    width: 320px;
    height: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: none; /* Initially hidden */
    flex-direction: column;
    position: absolute;
    bottom: 80px; /* Position above the logo */
    right: 0;
}

.chatbox-header {
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbox-header .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.chatbox-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Message Styles */
.message {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.sent-message {
    background-color: #007bff;
    color: #fff;
    align-self: flex-end;
}

.received-message {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-start;
}

.chatbox-footer {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.chatbox-footer input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
    outline: none;
}

.chatbox-footer button {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
}