/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background: #0d0d0d;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #ffffff;
}

/* Chat Container */
.chat-container {
    width: 70%;
    height: 90vh;
    background: #1a1a1a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Chat Box */
.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

/* Chat Messages */
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;  /* Agar output bisa panjang dan tetap terlihat */
    overflow-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: #007bff;
    color: white;
}

.message.bot {
    align-self: flex-start;
    background: #222;
    color: white;
}

/* Input Chat */
.chat-input {
    display: flex;
    padding: 10px;
    background: #111;
    border-top: 1px solid #222;
    align-items: center;
    gap: 10px;
}

.chat-input textarea {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-size: 14px;
    resize: none;
    height: 36px;
    white-space: pre-wrap; /* Memastikan input tetap dalam format plain text */
}

.chat-input select {
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
}

.chat-input button {
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
/* Chat Messages */
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: #007bff;
    color: white;
}

.message.bot {
    align-self: flex-start;
    background: #222;
    color: white;
}

/* Blok Kode dalam Jawaban */
pre {
    position: relative;
    background: #1e1e1e;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #ffffff;
}

/* Tombol Copy */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #005bb5;
}
