/* BUTTON */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #992109;
    color: white;
    font-size: 22px;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
}

/* CHATBOT BOX */
#chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 10000;
}
/* CHATBOT DEFAULT */
.chatbot {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 10000;

    /* ANIMASI */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* KONDISI TERTUTUP */
.chatbot.closed {
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
}

/* HEADER */
.chat-header {
    background: #992109;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CLOSE BUTTON */
.chat-close {
    cursor: pointer;
}

/* CHAT BODY */
.chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

/* INPUT */
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: none;
}

.chat-input button {
    padding: 8px 12px;
    background: #992109;
    color: white;
    border: none;
    cursor: pointer;
}

/* HIDDEN CLASS (INI KUNCI) */
.hidden {
    display: none !important;
}

/* MESSAGE */
.user {
    text-align: right;
    margin: 5px 0;
    color: #992109;
}

.bot {
    text-align: left;
    margin: 5px 0;
}
.typing {
    font-style: italic;
    color: #6c757d;
    margin: 5px 0;
    animation: blink 1.2s infinite;
}


.cursor {
    display: inline-block;
    width: 6px;
    background: #666;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
