* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: #e2e8f0; /* Abu-abu kebiruan yang lebih maskulin */
    background-image: radial-gradient(#cbd5e1 1px, transparent 0); /* Pola titik-titik tetap dipertahankan */
    background-size: 20px 20px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 450px;
    height: 90vh;
    background-color: #f8fafc;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 4px solid #fff;
}

.header {
    background-color: #1e293b; /* Biru Dongker / Navy gelap */
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.avatar {
    width: 50px;
    height: 50px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid #f97316; /* Aksen pinggiran oranye */
}

.title-info h1 {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc; /* Teks putih agar kontras dengan header navy */
}

.title-info span {
    font-size: 13px;
    color: #f97316; /* Teks oranye */
    font-weight: 600;
}

.chat-box {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    background-color: #f4f4f5; 
    background-image: url('Dadung.jpg'); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    position: relative;
    z-index: 1;
}

/* Overlay agar logo Dadung.jpg jadi watermark transparan */
.chat-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 244, 245, 0.88); /* Warna pudar yang menyesuaikan background */
    z-index: -1;
}

.message {
    display: flex;
    max-width: 80%;
    position: relative;
    z-index: 2; /* Memastikan chat bubble ada di atas watermark */
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.message.user {
    align-self: flex-end;
}

.message.bot {
    align-self: flex-start;
}

.msg-content {
    padding: 12px 18px;
    border-radius: 20px;
    line-height: 1.5;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user .msg-content {
    background-color: #4f46e5; /* Biru Indigo elegan untuk user */
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.bot .msg-content {
    background-color: #334155; /* Abu-abu gelap / Slate untuk bot */
    color: #f8fafc;
    border-top-left-radius: 4px;
}

.input-area {
    display: flex;
    padding: 16px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    gap: 10px;
    align-items: center;
}

#user-input {
    flex: 1;
    background-color: #f1f5f9;
    border: 2px solid transparent;
    padding: 14px 20px;
    border-radius: 30px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
}

#user-input:focus {
    border-color: #1e293b;
    background-color: #ffffff;
}

#send-btn {
    background-color: #1e293b; /* Tombol warna Navy senada dengan header */
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#send-btn:hover {
    transform: scale(1.05);
    background-color: #334155;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.3);
}

#send-btn:active {
    transform: scale(0.95);
}

/* Animasi Typing Bubble warna cerah agar kontras di bubble gelap */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 6px 4px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #cbd5e1;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }