/* AI Drone Assistant - Clean Version */

.aida-chat {
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f4f4f8;
    font-family: Arial, sans-serif;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aida-msgs {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aida-msg {
    display: inline-block;
    max-width: 70%;
    word-wrap: break-word;
}

.aida-msg-user {
    align-self: flex-end;
}

.aida-msg-bot {
    align-self: flex-start;
}

.aida-bubble {
    padding: 10px 14px;
    line-height: 1.4;
    word-break: break-word;
}

.aida-msg-user .aida-bubble {
    background: #0073aa;
    color: white;
    border-radius: 15px 15px 0 15px;
}

.aida-msg-bot .aida-bubble {
    background: #e0e0e0;
    color: #333;
    border-radius: 15px 15px 15px 0;
}

/* Форматирование текста бота */
.aida-bubble strong {
    font-weight: bold;
}

.aida-bubble em {
    font-style: italic;
}

.aida-bubble a {
    color: inherit;
    text-decoration: underline;
}

/* Индикатор печати */
.aida-thinking-msg .aida-bubble {
    background: #e0e0e0;
    color: #555;
    font-style: italic;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-text {
    font-size: 13px;
}

.dots {
    display: flex;
    gap: 3px;
}

.dots span {
    width: 6px;
    height: 6px;
    background: #555;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    20% { opacity: 1; }
}

/* Поле ввода */
.aida-input {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: #f4f4f8;
    border-top: 1px solid #ddd;
}

.aida-clear {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #d9534f;
    color: white;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aida-clear:hover {
    background: #c9302c;
}

.aida-textarea {
    flex: 1;
    padding: 12px 16px;
    border-radius: 22px;
    border: 1px solid #aaa;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: none;
    outline: none;
    min-height: 44px;
    max-height: 100px;
    line-height: 20px;
    overflow-y: auto;
}

/* Убираем полосу прокрутки */
.aida-textarea::-webkit-scrollbar {
    width: 0;
    display: none;
}

.aida-textarea {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.aida-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 22px;
    background: #0073aa;
    color: white;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aida-send:hover {
    background: #005a87;
}

.aida-send:disabled,
.aida-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
