
body {
    /* background-color: #0b3d91; */
    color: #f5f5f5;
    font-family: 'Arial', sans-serif;
}

.hidden {
   display: none;
}

.user-message {
    background-color: rgb(86, 144, 163);
	color: white;
    padding: 10px;
    border-radius: 10px;
    white-space: pre-wrap;
    margin-left: auto;
    margin-right: 0;
    max-width: 90%;
     }

  /* Style for received messages */
  .response-message {
    background-color: rgb(62, 62, 62);
	  color: white;
    padding: 10px;
    border-radius: 10px;
    padding-right: 20px;
    position: relative;
    margin-right: auto;
    max-width: 90%;
  }

  .response-message p {
    margin-right: 40px;
    /* Add more styles here */
  }

  /* Style for the chat container */
  #chat-container {
    display: none;
    margin: 0 auto;
    overflow: auto;
  }

.host-address-select {
  background-color: red;
	color: white;
    padding: 1000px;
    border-radius: 1000px;
}

#chat-history {
    display: flex;
    flex-direction: column;
}

.copy-button {
  position: absolute;
  bottom: 5px;
  right: 5px;
  margin: 0 5px 5px 0;
}

#scroll-wrapper {
  padding-top: 180px;
  padding-bottom: 5.5rem;
}

#input-area {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

#user-input {
  overflow-y: auto;
  resize: none;         /* Prevent user from manually resizing */
  height: 40px;
  max-height: 200px;    /* Set your desired max height here */
}

@media (max-width: 600px) { /* Adjust 600px to the breakpoint you desire */
  .d-flex h1 {
    display: none; /* This will hide the h1 when the window width is 600px or less */
  }
}

/* File attachment styles */
#file-attachment-area {
  padding: 10px;
  border-top: 1px solid #444;
  background-color: #2a2a2a;
  margin-bottom: 10px;
  border-radius: 5px;
}

.file-preview {
  display: inline-block;
  position: relative;
  margin: 5px;
  padding: 5px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #3a3a3a;
  transition: all 0.2s ease;
}

.file-preview:hover {
  border-color: #777;
  background-color: #4a4a4a;
}

.file-preview img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 3px;
  display: block;
}

.file-icon {
  padding: 10px;
  color: #ccc;
  font-size: 14px;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-file {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.remove-file:hover {
  background: #c82333;
}

#file-attach-button {
  border-color: #555;
  background-color: #2a2a2a;
  color: #ccc;
  transition: all 0.2s ease;
}

#file-attach-button:hover {
  background-color: #3a3a3a;
  border-color: #777;
}

.drag-over {
  border: 2px dashed #86c1d4 !important;
  background-color: rgba(134, 193, 212, 0.1) !important;
}

.attachment-indicator {
  margin-top: 5px;
  color: #aaa;
  font-style: italic;
}

/* Message attachment styles */
.message-attachments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.message-image {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  object-fit: cover;
}

.message-image:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.message-files {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-indicator {
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: 14px;
  color: #ddd;
  display: inline-block;
  max-width: fit-content;
}

/* Responsive image sizing */
@media (max-width: 768px) {
  .message-image {
    max-width: 150px;
    max-height: 150px;
  }
}

@media (max-width: 480px) {
  .message-image {
    max-width: 100px;
    max-height: 100px;
  }

  .message-images {
    gap: 5px;
  }
}
