/* Стиль круглой кнопки-стрелки и микрофона для Ded AI Chat */

.ded-ai-send-icon-btn {
    border-radius: 999px;
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border: none;
    background: #008f4b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 143, 75, 0.35);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.ded-ai-send-icon-btn:hover {
    background: #00a65a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 143, 75, 0.45);
}

.ded-ai-send-icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 143, 75, 0.3);
}

.ded-ai-send-icon-btn .ded-ai-send-icon {
    pointer-events: none;
    font-weight: 600;
}

/* Кнопка микрофона */
.ded-ai-mic-btn {
    margin-right: 8px;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    border: 1px solid rgba(0, 143, 75, 0.35);
    background: #ffffff;
    color: #008f4b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.ded-ai-mic-btn:hover {
    background: #e9f7f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ded-ai-mic-btn.ded-ai-mic-listening {
    background: #008f4b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 143, 75, 0.55);
    transform: translateY(-1px);
}

.ded-ai-mic-btn .ded-ai-mic-icon {
    pointer-events: none;
}

@media (max-width: 600px) {
    .ded-ai-send-icon-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .ded-ai-mic-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}


/* Афина — мини-аватар сбоку от шапки чата */
.ded-ai-chat-header {
    position: relative;
}

.ded-ai-afina-avatar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 3px solid #0b5b33;
    background: #f5f7f4;
}

.ded-ai-afina-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Лёгкая "живость" — мягкое покачивание */
.ded-ai-afina-avatar {
    animation: dedAfinaFloat 3s ease-in-out infinite;
    transform-origin: 50% 100%;
}

@keyframes dedAfinaFloat {
    0%   { transform: translateY(-50%) translateY(0); }
    50%  { transform: translateY(-50%) translateY(-4px); }
    100% { transform: translateY(-50%) translateY(0); }
}

/* На очень узких экранах уменьшим немного размер */
@media (max-width: 480px) {
    .ded-ai-afina-avatar {
        width: 48px;
        height: 48px;
    }
}
