.agenteape-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.agenteape-float-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
    animation: pulse 2s infinite;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.agenteape-float-button:hover {
    transform: scale(1.1);
}

.agenteape-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: 5;
    animation: ripple 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes ripple {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.6); }
}

.agenteape-float-button .agenteape-icon .emoji{
    max-width: unset!important;
}

.agenteape-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.agenteape-hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.agenteape-chat-header {
    background: #007cba;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agenteape-chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenteape-status-indicator {
    width: 8px;
    height: 8px;
    background: #46b450;
    border-radius: 50%;
}

.agenteape-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 19px;
    cursor: pointer;
    height: 50px;
    width: 50px;
}

.agenteape-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
}

.agenteape-message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.4;
}

.agenteape-message-assistant {
    align-self: flex-start;
    background: #e1e1e1;
    color: #333;
    border-bottom-left-radius: 2px;
}

.agenteape-message-user {
    align-self: flex-end;
    background: #007cba;
    color: white;
    border-bottom-right-radius: 2px;
}

/* Typing Indicator */
.agenteape-typing {
    align-self: flex-start;
    background: #e1e1e1;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 2px;
    display: flex;
    gap: 4px;
    align-items: center;
    width: fit-content;
}

.agenteape-typing span {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: agenteape-typing-animation 1.4s infinite ease-in-out both;
}

.agenteape-typing span:nth-child(1) { animation-delay: -0.32s; }
.agenteape-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes agenteape-typing-animation {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.agenteape-chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.agenteape-chat-form {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.agenteape-chat-form input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

.agenteape-chat-form button {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .agenteape-chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 70px;
    }
}
