
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1c1e26;
    color: #c5c8d6;
}

.container {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100vh; /* Add this line */
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box; /* Add this line */
}


.left-sidebar {
  display: flex; /* Add this line */
  flex-direction: column; /* Add this line */
  width: 25%;
  /*max-width: 250px;*/
  position: fixed;
  top: 50px;
  left: 0;
  height: calc(100% - 50px);
  overflow-y: auto;
  z-index: 30;
  background-color: #1c1e26;
  transition: transform 0.3s ease-in-out;
  transform: none;
}

.left-sidebar.initialized {
  transition: transform 0.3s ease-in-out;
}


/* hidden is for when the page is loaded */
.left-sidebar.hidden {
  transform: translateX(-100%);
}

.left-sidebar.collapsed {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

/* Right sidebar for profile */


.right-sidebar {
  display: flex;
  flex-direction: column;
  width: 25%;
  position: fixed;
  top: 50px;
  right: 0;
  height: calc(100% - 50px);
  overflow-y: auto;
  z-index: 31;
  background-color: #1c1e26;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}

.right-sidebar.initialized {
  transition: transform 0.3s ease-in-out;
}

.right-sidebar.hidden {
  transform: translateX(100%);
}

.right-sidebar.collapsed {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

@media  (min-width: 500px) {
  .left-sidebar {
      width: 25%;
  }

  .right-sidebar {
    width: 25%;
  }
}

@media (pointer: coarse) and (max-width: 900px), (max-width: 500px) {
    .left-sidebar {
        width: 100%;
    }
    .right-sidebar {
        width: 100%;
    }
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.progress-bar {
  width: 95%;
  height: 20px;
  background-color: #f3f3f3;
  border-radius: 5px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress {
  height: 100%;
  background-color: #007eba;
  border-radius: 5px;
  transition: width 0.4s ease-in-out;
}

h1 {
    text-align: center;
}

.new-chat-button {
    margin-bottom: 20px;
}

.conversations {
  flex: 1; /* Add this line */
  display: flex; /* Add this line */
  flex-direction: column; /* Add this line */
  margin-bottom: 5px;
}

.settings {
  margin-top: auto;
  padding-right: 10px;
  padding-left: 10px;
  box-sizing: border-box;
}

/* adds margin to child elements */
.child-margin > * {
    margin-bottom: 15px;
    margin-top: 5px;
    padding: 3px;
}

.main-content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0px;
    position: relative;
}

.chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 10px;
    width: 100%;
}

.chat {
  border: 1px solid #3a3c46;
  padding: 10px;
  margin-bottom: 0px;
  flex-grow: 1;
  overflow-y: scroll;
  background-color: #2d2f39;
}

form {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.message-input-section {
  position: relative;
  bottom: 0;
  display: flex;
  align-items: center;
  margin-top: 0px;
  margin-bottom: 0px;
  width: 100%;
  max-height: 100px;
  background-color: #1c1e26;
  padding: 0;
  box-sizing: border-box;
  z-index: 20;
}

input[type="text"], input[type="password"], select, textarea {
    flex: 1;
    background-color: #2d2f39;
    color: #c5c8d6;
    border: 1px solid #3a3c46;
    width: 100%;
    box-sizing: border-box;
}

.most-buttons {
    padding: 5px 10px;
    background-color: #007eba;
    color: #fff;
    border: none;
    cursor: pointer;
}

.danger-button {
    background-color: #f44336;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 4px;
    transition-duration: 0.4s;
    width: 100%;
    box-sizing: border-box;
}

.danger-button:hover {
  background-color: #d32f2f;
  color: white;
}

.input-send-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
}

/* conversations pane on the left: */

.conversation-item {
    padding: 5px 10px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
}

.conversation-item:first-child {
    border-top: 1px solid #ccc;
}

.conversation-item-selected {
    background-color: #013852;
}

.conversation-item:hover {
    background-color: #575757;
}
.conversation-list {
    max-height: calc(100vh - 370px);
    overflow-y: auto;
}

.delete-conversation {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
}

.rename-conversation  {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
}

.delete-conversation:hover {
    color: red;
}


.rename-conversation:hover  {
    color: #007eba;
}

.message-form {
    width: 100%;
}

.clear-chat-button {
    z-index: 21;
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    margin-top: 20px;
    margin-right: 25px;
    color: #fff;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.clear-chat-button:hover {
    color: #ff0000;
    background-color: transparent;
}

.cancel-button {
    z-index: 21;
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 5px;
    margin-bottom: 20px;
    margin-right: 25px;
    color: #fff;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
}
.cancel-button:hover {
    color: #ff0000;
    background-color: transparent;
}

.send-button {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    margin-top: 10px;
    margin-right: 25px;
    background-color: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.send-button:hover {
    background-color: transparent;
    color: #007eba;
}

.send-button i {
    font-size: 20px;
}

.message-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Calibri', monospace;
    margin-bottom: 15px;
}

.message-content pre, .message-content code {
    font-size: 1em;
}

.message-input {
    width: 100%;
    box-sizing: border-box;
    height:80px;
    resize: none;
    padding-right: 50px;
    padding-left: 5px;
    padding-top: 5px;
    padding-bottom: 5px;

}

.button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.button-container form {
    margin-right: 10px;
    width: 100%;
    box-sizing: border-box;
}

.button-container form:last-child {
    margin-right: 0;
}

select {
    width: 100%;
    box-sizing: border-box;
}

h2 {
    margin-top: 30px;
    margin-bottom: 5px;
}

.message {
    padding-top: 0px;
    padding-bottom: 0px;
    border-top: 1px solid #eee;
}
.message-sender {
    font-size: 1.3em ; /* Increase the font size */
    font-family: Arial, sans-serif;
    display: inline-block;
    padding-top: 10px ; /* Add padding to the top */
}


.conversation_span {
    font-size: 1em ;
    font-family: Arial, sans-serif;
    width: 90% ;
    align-items: center;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}


.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    margin-bottom: 0px;
}

.drop-zone.dragover {
    border-color: #000;
}


/* Added for menu pane  */

.top-pane {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background-color: #2d2f39;
    border-bottom: 1px solid #3a3c46;
    position: fixed;
    top: 0;
    z-index: 40;
    left: 0;
    justify-content: space-between;
}

.menu-button {
  font-size: 25px;
  background-color: transparent;
  border: none;
  color: #c5c8d6;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
  margin-right: 10px;
}

.menu-button:hover {
  color: #007eba;
}

.left-menu-button {
  font-size: 30px;
}




.main-content {
    flex: 1; /* Add this line */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 50px;
    padding-bottom: 0px;
    margin-left: 25%;
    margin-right: 0%;
    /*position: fixed;*/
}

.main-content.left-collapsed {
  margin-left: 0;
}


.blue-button {
    background-color: #007eba;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 10px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.start-new-chat-btn:hover {
    background-color: #004a6e;
}