.ai-assistant-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #222f6e;
    color: white;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ai-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
}

.ai-panel-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow: hidden;
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.ai-message {
    background: #f0f2ff;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 85%;
}

.ai-message.user {
    background: #e9ecef;
    margin-left: auto;
}

.ai-message.human-support {
    background: #d4edda;
}

.ai-message.ai-escalated {
    background: #f8d7da;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #f0f2ff;
    border-radius: 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background: #222f6e;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}
