body {
            font-family: Arial, sans-serif;
            background: #f4f4f9;
            text-align: center;
            padding: 0;
            margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Mencegah scroll berlebihan  */
            }
            
      .header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 15px 20px; /* Tambah padding horizontal agar lebih rapi */
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Shadow */
    z-index: 1000;
    display: flex; /* Tambahkan flexbox */
    justify-content: space-between; /* Biar nama dan ikon ada di ujung */
    align-items: center; /* Pusatkan vertikal */
}

.icon-container {
    margin-right:45px;
    font-size: 24px;
    cursor: pointer;
    color: black; /* Sesuaikan warna ikon */
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    right: 65px;
    top: 65px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    width: 150px; /* Lebih kecil agar tidak besar di mobile */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Saat dropdown aktif */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Style untuk username */
/* Style untuk username (diperkecil) */
.dropdown-menu .username {
    padding: 8px;
    font-weight: normal;
    font-size: 14px; /* Ubah dari default ke lebih kecil */
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #333; /* Warna sedikit lebih gelap untuk estetika */
}


/* Style link logout */
.dropdown-menu a {
        font-size: 14px; /* Ubah dari default ke lebih kecil */

    display: block;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: black;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
}

/* Responsif: Perkecil dropdown di mobile */
@media (max-width: 480px) {
    .dropdown-menu {
        width: 120px; /* Lebih kecil */
        right: 55px;
        top: 60px;
    }

    .dropdown-menu a {
        font-size: 12px; /* Ukuran teks lebih kecil */
        padding: 8px; /* Padding dikurangi */
    }
}



        /* Chat container */
       .chat-container {
    width: 100vw; /* Lebar penuh */
    height: 100vh; /* Tinggi penuh */
    background: white;
    display: flex;
    flex-direction: column;
    padding-top: 90px; /* Supaya tidak tertutup header */
    box-sizing: border-box;
}

        /* Chat box */
        .chat-box {
            flex-grow: 1;
            overflow-y: auto;
            padding: 22px 5px;
            border-bottom: 2px solid #ddd;
            text-align: left;
              word-wrap: break-word; /* Pecah kata yang panjang */
    overflow-wrap: break-word; /* Alternatif tambahan */
    white-space: pre-wrap; /* Biarkan spasi dan baris baru tetap terlihat */
        }

        .chat-message {
            margin: 5px;
            padding: 10px;
            border-radius: 10px;
            max-width: 80%;
            
        }

        .user-message {
            background: #007bff;
            color: white;
            align-self: flex-end;
            text-align: right;
            margin-left: auto;
        }

        .ai-message {
            background: #f1f1f1;
            color: black;
            text-align: left;
            margin-right: auto;
        }

        /* Form input dengan tombol */
       .chat-form-container {
                   border-radius: 5px;

        width: 98%;
        margin:auto;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .chat-form {
        width: 100%;
    }

    .input-wrapper {
        display: flex;
        align-items: center;
        background: rgb(53, 57, 53, 0.1);
        border-radius: 5px;
        padding: 5px;
        /*box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);*/
        margin-bottom:15px;
    }

    textarea {
        background:rgb(53, 57, 53, 0);
        flex: 1;
        height:1000px;
        border: none;
        padding: 5px;
        border-radius: 5px;
        resize: none;
        outline: none;
        min-height: 40px;
        max-height: 100px;
    }

    .send-btn, .reset-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        margin-left: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .send-btn {
        background: #007bff;
        color: white;
    }

    .reset-btn {
        background: #dc3545;
        color: white;
    }

        .reset-btn:hover {
            background: #a71d2a;
        }
.code-container {
    background: #000; /* Warna hitam */
    color: #fff; /* Warna putih untuk teks */
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    overflow-x: auto;
    position: relative;
    font-size: 14px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222; /* Warna abu-abu gelap */
    padding: 5px 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 12px;
    color: #ddd;
}

.language-label {
    font-weight: bold;
    text-transform: uppercase;
    background: #444;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
}

.copy-btn {
    background: #007bff; /* Warna biru */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #0056b3; /* Warna biru lebih gelap saat hover */
}

pre {
    margin: 0;
}

code {
    font-family: "Courier New", Courier, monospace;
    white-space: pre-wrap; /* Agar kode tidak melampaui batas layar */
    word-wrap: break-word;
    display: block;
    padding: 10px;
}

.copy-all-btn {
    display: block;
    margin-top: 10px;
    background-color: blue;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.copy-all-btn:hover {
    background-color: darkblue;
}

/* Warna hijau setelah berhasil disalin */
.copy-all-btn.success {
    background-color: green !important;
    color: white;
}


.command {
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2px 5px;
    border-radius: 4px;
}

.start-msg {
    font-weight: bold;
    text-align: center;
    margin-top: 25%; /* Default untuk desktop */
}

/* Atur margin lebih besar untuk mobile */
@media screen and (max-width: 768px) {
    .start-msg {
        margin-top: 75%;
    }
}



