/* /services/helper/chatbot.css */
#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1050;
    user-select: none;
}

#chatbot-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
    animation: breathe 3s infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
}

#chatbot-icon.fast-breathe {
    animation: fast-breathe 1.5s infinite;
}

@keyframes fast-breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

#chatbot-speech {
    position: absolute;
    top: -150px;
    left: -250px;
    width: 260px;
    max-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(10px);
    color: #e2ffe7;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    font-family: 'Consolas', 'Monaco', monospace;
    z-index: 1051;
    font-size: 10px;
}

#chatbot-speech::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 78%;
    transform: translateX(-50%) translateY(-40%);
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-top-color: rgba(8, 8, 8, 0.9);
    z-index: 1051;
}

.chatbot-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chatbot-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.chatbot-section__title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.chatbot-section__status {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-section__status--count {
    min-width: 1.5rem;
    text-align: center;
}

.chatbot-messages {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
    min-height: 40px;
    max-height: 70px;
    overflow: hidden;
}

.chatbot-message {
    color: #39ff14;
    font-size: 0.85em;
    line-height: 1.3;
}

.chatbot-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 110px;
    overflow-y: auto;
    padding-right: 4px;
}

.chatbot-task {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.chatbot-task__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.chatbot-task__label {
    font-weight: 600;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
}

.chatbot-task__status {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.chatbot-task__status.is-queued {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.chatbot-task__status.is-running {
    border-color: rgba(57, 255, 20, 0.6);
    color: #39ff14;
}

.chatbot-task__status.is-success {
    border-color: rgba(76, 217, 100, 0.7);
    color: #4cd964;
}

.chatbot-task__status.is-failure {
    border-color: rgba(255, 82, 82, 0.8);
    color: #ff5252;
}

.chatbot-task__status.is-stalled {
    border-color: rgba(255, 196, 0, 0.8);
    color: #ffc107;
}

.chatbot-task__meta {
    margin-top: 0.2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
}

.chatbot-task__timer {
    font-variant-numeric: tabular-nums;
}

.chatbot-task__message {
    margin-top: 0.15rem;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.65);
}

.chatbot-empty {
    text-align: center;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.25rem 0;
}

.hidden {
    display: none !important;
}
