/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light and Dark mode styling */
body.light-mode {
    background-color: #f7f7f7;
    color: #000;
}


/* Fullscreen Chat Container */
body, html {
    height: calc(100% - 25px);
    width: 100%;
}
center{
    height: calc(100% - 20px);
}
.input-container{
    margin: 10px;
}
.chat-container {
    width: 900px;
    max-width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /*padding: 10px;*/
    justify-content: flex-end;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    /*border-radius: 8px;*/
    overflow: hidden;
}

body.dark-mode .chat-container {
    border-color: #444;
    background-color: #444;
}

/* Header Styling */
/*body.dark-mode*/
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    text-align: center;
    background: #C37E1B;
    /*border-radius: 10px 10px 0 0;*/
}

.chat-header h1 {
    font-size: 24px;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    flex-grow: 1;
}


.chatbox {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
    background: #f7f7f7;
}

body.dark-mode .chatbox {
    background-color: #555;
    border-color: #666;
}

.floating-input-container {
    position: fixed;
    bottom: 35px;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    z-index: 10;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #C37E1B;
    margin-right: 10px;
    border-radius: 50px; /* Circular Border */
    font-size: 14px;
}

body.dark-mode input[type="text"] {
    background-color: #666;
    border-color: #C37E1B;
    color: #fff;
}
textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #C37E1B;
    margin-right: 10px;
    border-radius: 50px; /* Circular Border */
    font-size: 14px;
    resize: none; /* Prevent resizing */
    width: calc(100% - 130px);
    vertical-align: middle;
    outline: none;
}

body.dark-mode textarea {
    background-color: #666;
    border-color: #777;
    color: #fff;
}
.chat-container button {
    /*padding: 10px 20px;*/
    background-color: #C37E1B;
    color: #fff;
    border: none;
    border-radius: 50px; /* Circular Border */
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: 50px;
    height: 55px;
}
body.dark-mode .chat-container button {
    background-color: #666;
    border-color: #777;
    color: #fff;
}
.chat-container button:nth-child(2){
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.chat-container button:nth-child(3){
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

button:hover {
    background-color: #C37E1B;
}

body.dark-mode button:hover {
    background-color: #C37E1B;
}

/* Footer Styling */
.chat-footer {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #555;
}

body.dark-mode .chat-footer {
    color: #ccc;
}
/* Gaya umum untuk selector */
#mode-selector {
    font-size: 16px;
      padding: 5px 12px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background-color: #C37E1B;
      color: #fff;
      outline: none;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Gaya saat fokus */
#mode-selector:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

/* Gaya untuk hover */
#mode-selector:hover {
    border-color: #0056b3;
}

/* Gaya untuk container jika diperlukan */
.select-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gaya untuk label */
.select-container label {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

/*#loadingData{
    display: none;
}*/
/* Message Styling */
.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    clear: both; /* Ensures messages do not overlap */
}

.user {
    text-align: right;
  color: #000;
  background-color: #e4e2e2;
  width: max-content;
  max-width: 80%;
  padding: 10px;
  border-radius: 20px;
  float: right;
  text-align: left;
}

body.dark-mode .user {
    color: #fff;
  background-color: #444;
  width: max-content;
  float: right;
  max-width: 80%;
  padding: 10px;
  border-radius: 20px;

}

.bot {
    text-align: left;
  color: #000;
  background-color: #e9ecef;
  max-width: 80%;
  width: max-content;
  padding: 10px;
  border-radius: 20px;
  float: left;
}

body.dark-mode .bot {
    color: #fff;
  background-color: #4f4d4d;
  width: max-content;
  max-width: 80%;
  border-radius: 20px;
  padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        height: 100%;
    }
    input[type="text"], button {
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        max-height: 80vh;
    }

    input[type="text"], button {
        font-size: 12px;
        padding: 6px;
    }

    .message {
        font-size: 12px;
    }
}
