/* CONTAINER UTAMA CHATBOX */
#aiChatbox {
    display: none;
    position: fixed;
    bottom: 165px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: #121324;
    border: 1px solid #2C2D42;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    font-family: Arial, sans-serif;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER CHATBOX */
.rcn-chat-header {
    background-color: #7B61FF;
    padding: 15px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rcn-chat-close {
    cursor: pointer;
    font-size: 18px;
}

/* AREA PESAN / CHAT BODY */
#chatBody {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    color: #E2E8F0;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-bot {
    background-color: #2C2D42;
    padding: 10px;
    border-radius: 8px;
    max-width: 85%;
    line-height: 1.4;
}

.msg-user {
    background-color: #7B61FF;
    padding: 10px;
    border-radius: 8px;
    max-width: 85%;
    align-self: flex-end;
    color: white;
    line-height: 1.4;
}

/* AREA INPUT TEKS */
.rcn-chat-input-area {
    padding: 10px;
    background-color: #1A1B2F;
    display: flex;
    gap: 8px;
    border-top: 1px solid #2C2D42;
}

#userInput {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #2C2D42;
    background-color: #121324;
    color: white;
    font-size: 14px;
    outline: none;
}

.rcn-btn-send {
    background-color: #7B61FF;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* TOMBOL FLOATING ROBOT (KANAN) */
#aiRobotButton {
    position: fixed;
    bottom: 90px;
    right: 30px; 
    z-index: 9999;
    background-color: #7B61FF;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#aiRobotButton:hover {
    transform: scale(1.1) translateY(-3px);
}

/* TOMBOL FLOATING AUDIO (KIRI) */
#audioToggleButton {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background-color: #7B61FF;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}