.chatbot-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 0;
    height: 56px;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Иконка Edit слева */
.chatbot-edit-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 1;
    transition: transform 0.2s ease;
}

.chatbot-edit-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.chatbot-edit-icon:hover {
    transform: scale(1.05);
}

/* Поле ввода - слева от GIF */
.chatbot-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    flex: 1;
    color: #1d1d1f;
    font-weight: 400;
    order: 2;
    min-width: 0;
}

.chatbot-input::placeholder {
    color: rgba(60, 60, 67, 0.6);
}

/* Иконка GPT в центре - абсолютное позиционирование */
.chatbot-send {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    z-index: 10;
}

.gpt-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.chatbot-send:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

/* Текст "Сказать..." справа */
.chatbot-voice-label {
    font-size: 19px;
    color: rgba(60, 60, 67, 0.6);
    font-weight: 400;
    order: 3;
    flex: 1;
    text-align: right;
    user-select: none;
    pointer-events: none;
}

/* Иконка микрофона справа */
.chatbot-voice {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 4;
    transition: transform 0.2s ease;
}

.chatbot-voice img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.chatbot-voice:hover {
    transform: scale(1.05);
}

/* Кнопка back - скрыта в свернутом состоянии */
.chatbot-back {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 5;
    transition: transform 0.2s ease;
}

.chatbot-back img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chatbot-back:hover {
    transform: scale(1.05);
}