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

.girabot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--girabot-float-button-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 99998;
    font-size: var(--girabot-float-font-size, 16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: girabot-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.girabot-toggle-btn:hover {
    background: var(--girabot-float-button-hover-color);
    transform: scale(1.05);
    animation: none;
}

.girabot-whatsapp-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="white" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.girabot-chat {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    height: 560px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow: hidden;
    z-index: 99998;
}

.girabot-chat.active {
    display: flex;
}

.girabot-header {
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.girabot-header h4 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.girabot-close {
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px 6px 5px;
    line-height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2); /* Preto semi-transparente */
}

.girabot-close:hover {
    background-color: rgba(0, 0, 0, 0.4); /* Preto semi-transparente */
}

.girabot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.girabot-message {
    margin: 8px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    background: #f0f0f0;
}

.girabot-message.user-message {
    background: #E8F5E9;
    color: black;
    margin-left: auto;
}

.girabot-input {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.girabot-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.girabot-input-wrapper input {
    flex: 1;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    margin: 0;
}

.girabot-input-wrapper input:focus {
    border-color: #25d366;
}

.girabot-send-btn {
    border: none;
    border-radius: 8%;
    min-width: 36px;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
    opacity: 0.9;
}

.girabot-send-btn:hover {
    opacity: 1;
}

.girabot-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
}

.girabot-option {
    border: none;
    border-radius: 8px;
    padding: 10px 8px;
    margin: 5px 0;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s ease;
    text-align: center;
    width: 48%;
    opacity: 0.9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.girabot-option:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.girabot-bot-message {
    background: #E8F5E9;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.girabot-user-message {
    background: #E3F2FD;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.girabot-yes-no {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.girabot-yes-no button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.girabot-yes {
    background: #25D366;
    color: white;
}

.girabot-yes:hover {
    background: #128C7E;
}

.girabot-yes:active {
    background: #1a1925;
}

.girabot-no {
    background: #C82333;
    color: white;
}

.girabot-no:hover {
    background: #C82333;
}

.girabot-whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.girabot-whatsapp-button:hover {
    background: #128C7E;
    color: white;
}

.girabot-welcome-audio {
    margin: 8px 0;
    text-align: center;
}

.girabot-audio-play {
    background: transparent;
    width: 100%;
    color: #000;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.girabot-audio-play:hover {
    background: #e0e0e0;
    color: #000;
    opacity: 1;
}

.girabot-audio-play i {
    font-size: 12px;
}

/* Animação pulsante */
@keyframes girabot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .girabot-chat {
        width: calc(100% - 40px);
        max-width: 355px;
        height: 70vh;
        max-height: 570px;
    }
}

@media screen and (max-width: 480px) {
    .girabot-chat {
        width: calc(100% - 40px);
        height: 60vh;
        bottom: 80px !important;
        right: 10px !important;
    }

    .girabot-container {
        bottom: 20px !important;
        right: 20px !important;
    }

    .girabot-option {
        font-size: 13px;
        padding: 8px 6px;
    }

    .girabot-input-wrapper input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .girabot-chat {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 10px;
    }
    
    .girabot-toggle-btn {
        padding: 8px 16px;
        right: 10px !important;
    }
}
