@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
:root {
/* Dark mode colors */
--text-color: #E3E3E3;
--subheading-color: #828282;
--placeholder-color: #A6A6A6;
--primary-color: #242424;
--secondary-color: #383838;
--secondary-hover-color: #444;
}
.light_mode {
/* Light mode colors */
--text-color: #222;
--subheading-color: #A0A0A0;
--placeholder-color: #6C6C6C;
--primary-color: #FFF;
--secondary-color: #E9EEF6;
--secondary-hover-color: #DBE1EA;
}
body {
background: var(--primary-color);
}
.header, .chat-list .message {
margin: 0 auto;
max-width: 1000px;
}
.header {
margin-top: 1vh;
padding: 1rem;
overflow-x: hidden;
flex: 0 0 70%; /* Header menempati 70% lebar layar */
padding: 1rem;
overflow-y: auto; /* Scroll jika konten melebihi tinggi layar */
background: var(--primary-color);
}
body.hide-header .header {
margin: 0;
display: none;
}
.header :where(.title, .subtitle) {
color: var(--text-color);
font-weight: 400;
}
.header .title {
width: fit-content;
font-size: 3rem;
background-clip: text;
background: linear-gradient(to right, #4285f4, #d96570);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.header .subtitle {
font-size: 1.6rem;
color: var(--subheading-color);
}

/* New CSS for chat history sidebar */
.chat-history-sidebar {
flex: 0 0 30%; /* Chat history menempati 30% lebar layar */
height: 100vh;
background: var(--secondary-color);
border-left: 1px solid var(--secondary-hover-color);
}
.chat-history-sidebar .history-title {
font-size: 1.2rem;
font-weight: 600;
color: var(--text-color);
margin-bottom: 1rem;
}

.chat-history-sidebar .history-item {
margin-bottom: 1rem;
padding: 0.5rem;
background: var(--primary-color);
border-radius: 0.5rem;
cursor: pointer;
}

.chat-history-sidebar .history-item .question {
font-size: 0.9rem;
color: var(--text-color);
margin-bottom: 0.5rem;
}

.chat-history-sidebar .history-item .answer {
font-size: 0.8rem;
color: var(--subheading-color);
}
/* New CSS for suggetsion list */
.suggestion-list {
width: 100%;
height: 100%;
list-style: none;
display: flex;
justify-content: center; /* Center the content */
gap: 1.25rem;
margin-top: 5.5vh;
overflow: hidden;
overflow-x: hidden;
scroll-snap-type: x mandatory;
scrollbar-width: none;
}
.suggestion-list .suggestion {
cursor: pointer;
padding: 1.25rem;
width: 800px;
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 0.75rem;
justify-content: center;
background: var(--secondary-color);
transition: 0.2s ease;
text-align: center; /* Center the text */
color: white; /* Set text color to white */
}
.suggestion-list .suggestion:hover {
background: var(--secondary-hover-color);
}
.suggestion-list .suggestion :where(.text, .icon) {
font-weight: 400;
color: var(--text-color);
}
.suggestion-list .suggestion .icon {
width: 42px;
height: 42px;
display: flex;
font-size: 1.3rem;
margin-top: 2.5rem;
align-self: flex-end;
align-items: center;
border-radius: 50%;
justify-content: center;
color: var(--text-color);
background: var(--primary-color);
}
.chat-list {
padding: 2rem 1rem 12rem;
max-height: 100vh;
overflow-y: auto;
scrollbar-color: #999 transparent;
}
.chat-list .message.incoming {
margin-top: 1.5rem;
}
.chat-list .message .message-content {
display: flex;
gap: 1.5rem;
width: 100%;
align-items: center;
}
.chat-list .message .text {
color: var(--text-color);
white-space: pre-wrap;
}   
.chat-list .message.error .text {
color: #e55865;
}
.chat-list .message.loading .text {
display: none;
}
.chat-list .message .avatar {
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 50%;
align-self: flex-start;
}
.chat-list .message.loading .avatar {
animation: rotate 3s linear infinite;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
.chat-list .message .icon {
color: var(--text-color);
cursor: pointer;
height: 35px;
width: 35px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: none;
font-size: 1.25rem;
margin-left: 3.5rem;
visibility: hidden;
}
.chat-list .message .icon.hide {
visibility: hidden;
}
.chat-list .message:not(.loading, .error):hover .icon:not(.hide){
visibility: visible;
}
.chat-list .message .icon:hover {
background: var(--secondary-hover-color);
}
.chat-list .message .loading-indicator {
display: none;
gap: 0.8rem;
width: 100%;
flex-direction: column;
}
.chat-list .message.loading .loading-indicator {
display: flex;
}
.chat-list .message .loading-indicator .loading-bar {
height: 11px;
width: 100%;
border-radius: 0.135rem;
background-position: -800px 0;
background: linear-gradient(to right, #4285f4, var(--primary-color), #4285f4);
animation: loading 3s linear infinite;
}
.chat-list .message .loading-indicator .loading-bar:last-child {
width: 70%;
}
@keyframes loading {
0% {
background-position: -800px 0;
}
100% {
background-position: 800px 0;
}
}
.typing-area {
position: fixed;
width: 100%;
left: 0;
bottom: 0;
padding: 1rem;
background: var(--primary-color);
}
.typing-area :where(.action-buttons) {
display: flex;
gap: 0.75rem;
}
.typing-area .action-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.typing-area .icon {
width: 56px;
height: 56px;
flex-shrink: 0;
cursor: pointer;
border-radius: 50%;
display: flex;
font-size: 1.4rem;
color: var(--text-color);
align-items: center;
justify-content: center;
background: var(--secondary-color);
transition: 0.2s ease;
}
.typing-area .icon:hover {
background: var(--secondary-hover-color);
}
.typing-area .disclaimer-text {
text-align: center;
font-size: 0.85rem;
margin-top: 1rem;
color: var(--placeholder-color);
}
/* Responsive media query code for small screen */
@media (max-width: 768px) {
.header :is(.title, .subtitle) {
font-size: 2rem;
line-height: 2.6rem;
}
.header .subtitle {
font-size: 1.7rem;
}
.typing-area :where(.action-buttons) {
gap: 0.4rem;
}
.typing-area .icon {
height: 50px;
width: 50px;
}
.typing-area .disclaimer-text {
font-size: 0.75rem;
margin-top: 0.5rem;
}
.suggestion-list {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.suggestion-list .suggestion {
  flex: 1 1 calc(50% - 0.5rem); /* Two items per row */
}
}

/* New CSS for tombol  */
.button {
  background-color: rgb(129, 228, 98); /* Green */
  border: none;
  color: black;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}
.button5 {border-radius: 60%;}
.button:disabled {
    background-color: #8b8181;
    cursor: not-allowed;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.input-section {
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  color: var(--subheading-color);
  font-size: 0.9rem;
}

.large-input {
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--primary-color);
  color: var(--text-color);
  font-size: 1rem;
}

.large-select {
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--primary-color);
  color: var(--text-color);
  font-size: 1rem;
  appearance: none;
}

.pillar-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pillar-tab {
  padding: 0.8rem 1.2rem;
  background: var(--secondary-color);
  color: var(--text-color);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.pillar-tab.active {
  background: #4285f4;
}

.pillar-content {
  background: var(--secondary-color);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.pillar-group {
  background: var(--primary-color);
  padding: 1rem;
  border-radius: 0.5rem;
}

.pillar-group h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.pillar-input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--secondary-hover-color);
  background: transparent;
  color: var(--text-color);
  text-align: center;
}

.primary-button {
  background: #4285f4;
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

.secondary-button {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .input-grid {
    grid-template-columns: 1fr;
  }
  
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  
  .pillar-tabs {
    flex-direction: column;
  }
}
input, select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  margin: 10px 0;
}
.button:hover {
  background-color: #0056b3;
}
@media (max-width: 600px) {
  /* General table styles */
  table, th, td {
    display: block;
    width: 100%;
  }
  
  /* Button styles */
  .button {
    width: 100%;
  }

  /* Luckpillar table specific styles */
  table {
    margin-bottom: 1.5rem;
  }
  
  tr {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary-hover-color);
    padding-bottom: 0.5rem;
  }
  
  td {
    flex: 1 1 100%;
    padding: 0.5rem;
    position: relative;
    padding-left: 50%;
    border: none;
  }
  
  td:before {
    content: attr(data-label);
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 45%;
    padding-left: 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
  }
  
  td input {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Stack multiple tables vertically */
  table + table {
    margin-top: 2rem;
  }
}
.conclusion {
  margin-top: 20px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
}