#gemini-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chatbot-toggle button {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.chatbot-toggle svg path {
    fill: var(--alert-scheme-bg);
}

.chatbot-toggle button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f9fafb;
}

.message {
    margin-bottom: 12px;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.bot {
    background: white;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.message.bot {
    white-space: pre-line; /* Ini akan menampilkan \n sebagai baris baru */
}
.message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.typing {
    background: white;
    color: #6b7280;
}

.message.typing span {
    animation: typing 1.4s infinite;
    display: inline-block;
}

.message.typing span:nth-child(2) { animation-delay: 0.2s; }
.message.typing span:nth-child(3) { animation-delay: 0.4s; }

.message.bot strong {
    font-weight: 600;
    color: var(--primary-color);
}

.message.bot em {
    font-style: italic;
    color: #6b7280;
}

.message.bot code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #dc2626;
}

.message.bot blockquote {
    border-left: 3px solid var(--primary-color);;
    margin: 8px 0;
    padding: 4px 0 4px 12px;
    color: #6b7280;
    font-style: italic;
}

.message.bot ul, .message.bot ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message.bot li {
    margin: 4px 0;
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.chatbot-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.chatbot-input input, .chatbot-input button  {
    font-size: 14px!important;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    outline: none;
}

.chatbot-input button {
    margin-left: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .chatbot-container {
        width: 300px;
        right: -10px;
    }
}