/* widgetAI/style.css */

/* Tombol Bulat di Pojok Kanan Bawah */
.chat-toggler {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-toggler:hover {
    transform: scale(1.1);
}

/* Kotak Chat */
.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none; /* Sembunyi default */
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: sans-serif;
}

/* Header Chat */
.chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Area Pesan */
#chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    font-size: 14px;
}

/* Pesan User (Pengunjung) - Hijau Teks Putih */
.user-msg { 
    background: #007bff; /* Biru cerah agar kontras */
    color: #ffffff !important; /* Teks Putih Tebal */
    padding: 10px 15px; 
    border-radius: 15px 15px 0 15px; 
    margin: 5px 0; 
    align-self: flex-end; 
    max-width: 80%; 
    margin-left: auto; 
    float: right; 
    clear: both;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Pesan AI (Tama) - Putih Teks Hitam */
.ai-msg { 
    background: #ffffff; 
    color: #000000 !important; /* Teks Hitam Pekat */
    border: 1px solid #e5e5e5; 
    padding: 10px 15px; 
    border-radius: 15px 15px 15px 0; 
    margin: 5px 0; 
    align-self: flex-start; 
    max-width: 80%; 
    float: left; 
    clear: both;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Area Input */
.input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 10px;
    background: white;
}
.input-area input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; outline: none; }
.input-area button { margin-left: 10px; background: #007bff; color: white; border: none; padding: 10px 15px; border-radius: 50%; cursor: pointer; }