/* assistantButton.css */

#assistantButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#assistantButton button {
    padding: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#assistantPopup {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 300px;
    height: 350px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(24, 100, 171, 0.1);
    padding: 0;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

#assistantFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

/* Jiggle animation */
@keyframes jiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
}

/* Apply the animation */
#assistantButton button img {
    animation: jiggle 4s ease-in-out infinite;
    animation-delay: 5s;
}

/* Pause animation for 10 seconds after each 2-second jiggle */
@keyframes jiggleLoop {
    0%, 80% { transform: rotate(0deg); }
    82% { transform: rotate(-5deg); }
    84% { transform: rotate(5deg); }
    86% { transform: rotate(-5deg); }
    88% { transform: rotate(5deg); }
    90% { transform: rotate(0deg); }
}

#assistantButton button img {
    animation: jiggleLoop 9s ease-in-out infinite; /* 2s jiggle + 10s pause */
}
