/* Floating Button */
#assistant-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff2d8a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999999;
}

/* Chat Box */
#assistant-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    z-index: 999999;
}

.hidden {
    display: none;
}

/* Header */
.assistant-header {
    background: #ff2d8a;
    color: #fff;
    padding: 10px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Messages */
.assistant-messages {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    font-size: 13px;
}

.assistant-message.bot {
    background: #f1f1f1;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Input *//* Input area container */.assistant-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* 🎤 MIC BUTTON */
.mic-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2d8a, #ff5fa5);
    color: #fff;
    font-size: 20px;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255,47,146,0.4);
}

/* ✏️ INPUT */.assistant-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* 🎤 MIC */
.mic-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2d8a, #ff5fa5);
    color: #fff;
    font-size: 20px;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255,47,146,0.4);
}

/* ✏️ INPUT */
.assistant-input input {
    flex: 1;
    min-width: 0;            /* 🔥 THIS IS THE REAL FIX */
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 14px;
    border: 1px solid #ddd;
    outline: none;
}

/* ➤ SEND */
.send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2d8a, #ff5fa5);
    color: #fff;
    border: none;
    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255,47,146,0.4);
}

.assistant-message.user {
    background: #ff2d8a;
    color: #fff;
    text-align: right;
    margin-left: auto;
}
.mic-btn.listening {
    background: #ff2f92;
    color: #fff;
    animation: pulse 1.2s infinite;
}
.send-btn:active {
    transform: scale(0.94);
}
.mic-btn.listening {
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,47,146,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255,47,146,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,47,146,0); }
}