/* Reset dasar untuk margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Struktur utama */
body {
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar.minimized {
    width: 50px;
    overflow: hidden;
}

.sidebar h3 {
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
    color: #333;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar a:hover {
    background-color: #007bff;
    color: white;
}

.sidebar button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: auto;
    text-align: center;
    transition: background-color 0.3s ease;
}

.sidebar button:hover {
    background-color: #0056b3;
}

/* Tombol toggle sidebar */
#toggle-sidebar {
    position: absolute;
    top: 20px;
    left: 260px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: left 0.3s ease, background-color 0.3s ease;
}

.sidebar.minimized + #toggle-sidebar {
    left: 60px;
}

#toggle-sidebar:hover {
    background-color: #0056b3;
}

/* Chatbox */
.chatbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #fff;
    overflow: hidden;
}

.chatbox h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

#messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#messages div.user {
    text-align: left;
    margin-bottom: 10px;
}

#messages div.bot {
    text-align: left;
    margin-bottom: 10px;
}

#messages p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

/* Input area */
.input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

textarea {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}


/* Scrollbar styling */
#messages::-webkit-scrollbar {
    width: 8px;
}

#messages::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

#messages::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}


/* Styling untuk blok kode */
pre code {
    font-family: "Courier New", Courier, monospace;
    background-color: #2d2d2d; /* Warna latar belakang */
    color: #ccc; /* Warna teks */
    padding: 10px;
    border-radius: 21px !important;
    display: block;
    overflow-x: auto; /* Scroll horizontal jika kode terlalu panjang */
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Styling untuk teks biasa */
.user p,
.bot p {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin: 5px 0;
}

/* User dan Bot Styling */
.user {
    margin-bottom: 10px;
    text-align: left;
}

.bot {
    margin-bottom: 10px;
    text-align: left;
}

/* Header Styling */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    color: #007bff;
    margin: 10px 0;
}

h1 {
    font-size: 24px;
}
h2 {
    font-size: 20px;
}
h3 {
    font-size: 18px;
}

/* Poin Styling */
li {
    margin-left: 20px;
    font-size: 14px;
    color: #444;
}

/* Paragraf Styling */
p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 10px 0;
}