 
button {
  color: inherit;
  background-color: transparent;
  border: 0;
  outline: 0 !important;
  cursor: pointer;
}
button.chatbox-open {
  position: fixed;
  bottom: 70px;
  right: 36px;
  width: 52px;
  height: 52px;
  color: #fff;
  background-color: #090031;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.15);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  margin: 16px;
  z-index: 99999;
}
button.chatbox-close {
  position: fixed;
  bottom: 70px;
  right: 36px;
  width: 52px;
  height: 52px;
  color: #fff;
  background-color: #090031;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.15);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  margin: 16px calc(2 * 16px + 52px) 16px 16px;
  z-index: 99999;
}

textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  height: calc(16px + 16px / 2);
  padding: 0 calc(16px / 2);
  font-family: inherit;
  font-size: 16px;
  line-height: calc(16px + 16px / 2);
  color: #888;
  background-color: none;
  border: 0;
  outline: 0 !important;
  resize: none;
  overflow: hidden;
}
textarea::-moz-placeholder {
  color: #888;
}
textarea:-ms-input-placeholder {
  color: #888;
}
textarea::placeholder {
  color: #888;
}

.chatbox-popup {
  display: flex;
  position: fixed;
  box-shadow: 5px 5px 25px 0 rgba(46, 61, 73, 0.2);
  flex-direction: column;
  display: none;
  bottom: calc(2 * 16px + 116px);
  right: 16px;
  width: 340px;
  height: auto;
  background-color: #fff;
  border-radius: 16px;
  z-index: 9999;
}
.chatbox-popup .chatbox-popup__header {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 16px;
  color: #fff;
  background-color: #090031;
  align-items: center;
  justify-content: space-around;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
}
.chatbox-popup .chatbox-popup__header .chatbox-popup__avatar {
  margin-top: -32px;
  background-color: #090031;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}
.chatbox-popup .chatbox-popup__main {
  box-sizing: border-box;
  width: 100%;
  padding: calc(2 * 16px) 16px;
  line-height: calc(16px + 16px / 2);
  color: #888;
  text-align: center;
  height: 150px;
  overflow-y: scroll;
}
.chatbox-popup .chatbox-popup__footer {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 16px;
  border-top: 1px solid #ddd;
  align-items: center;
  justify-content: space-around;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

.chatbox-panel {
  display: flex;
  position: fixed;
  box-shadow: 5px 5px 25px 0 rgba(46, 61, 73, 0.2);
  flex-direction: column;
  display: none;
  top: 0;
  right: 0;
  bottom: 0;
  width: 377px;
  background-color: #fff;
  z-index: 9999;
}
.chatbox-panel .chatbox-panel__header {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 16px;
  color: #fff;
  background-color: #090031;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
}
.chatbox-panel .chatbox-panel__main {
  box-sizing: border-box;
  width: 100%;
  padding: calc(2 * 16px) 16px;
  line-height: calc(16px + 16px / 2);
  color: #888;
  text-align: center;
  flex: 1 1 auto;
}
.chatbox-panel .chatbox-panel__footer {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 16px;
  border-top: 1px solid #ddd;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 auto;
}
/*.bg-primary
{
  background-color: #090031 !important;
}*/

/* Admin message styles */
.admin-message {
    background-color: #f1f1f1;
    color: #333;
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    text-align: left; /* Align messages to the left */
    max-width: 70%;
}

/* User message styles */
.user-message {
    background-color: #323232 !important;
    color: white;
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    text-align: right; /* Align messages to the right */
    max-width: 70%;
    margin-left: auto; /* Push user messages to the right */
}
@media only screen and (max-width: 600px) {
  .chatbox-popup{
    width: 340px;
  }
}


    .chat-container {
        max-width: 600px;
        margin: 0 auto;
        border: 1px solid #ddd;
        border-radius: 10px;
        background-color: #f9f9f9;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .chat-header {
        /* background-color: #16002f;
        color: white; */
        padding: 10px 15px;
        font-size: 18px;
        text-align: center;
    }

    .chat-body {
        height: 300px;
        overflow-y: auto;
        padding: 15px;
        background-color: #ffffff;
    }

    .message-container {
        margin-bottom: 10px;
    }

    .message {
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 10px;
        max-width: 75%;
    }

    .sender {
        background-color: #d1ecf1;
        margin-left: auto;
        text-align: right;
    }

    .receiver {
        background-color: #f8d7da;
        margin-right: auto;
    }

    .image-preview {
        max-width: 150px; /* Smaller image size */
        max-height: 150px; /* Constrain height as well */
        margin-top: 10px;
        border-radius: 5px;
        object-fit: cover;
    }

    .file-link {
        display: block;
        margin-top: 5px;
        text-decoration: none;
        color: #16002f;
        font-size: 14px;
    }

    .file-link:hover {
        text-decoration: underline;
    }

    .chat-footer {
        display: flex;
        align-items: center;
        padding: 10px 15px;
        background-color: #f1f1f1;
        border-top: 1px solid #ddd;
        border-radius: 0 0 10px 10px;
    }

    .chat-footer textarea {
        flex-grow: 1;
        margin-right: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 10px;
        resize: none;
    }

    .file-icon {
        color: #16002f;
        font-size: 18px; /* Smaller icon */
        cursor: pointer;
        margin-right: 10px;
    }

    .file-icon:hover {
        color: #16002f;
    }

    .btn-primary {
        background-color: #16002f;
        border-color: #16002f;
        font-size: 14px; /* Smaller button text */
        border-radius: 5px;
    }

    .btn-primary:hover {
        background-color: #16002f;
        border-color: #16002f;
    }


 .input-container {
        position: relative;
        width: 100%;
    }

    .file-name-container {
        position: absolute;
        bottom: -25px; /* Adjust based on spacing */
        left: 10px;
        font-size: 12px;
        color: #6c757d;
        background-color: #f8f9fa;
        padding: 5px 10px;
        border-radius: 5px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 20px);
    }

    .file-name-container.hidden {
        display: none;
    }

    textarea.form-control {
        resize: none;
    }
    .send-btn{
      background: #16002f !important;
      color: #fff;
      margin-left: 6px;
    }

        /* footer */

        .footer-area {
          background: #000;
          color: #fff;
          padding: 50px 0;
      }
      .footer-widget h5 {
          color: #fff;
          margin-bottom: 20px;
      }
      .footer-links {
          list-style: none;
          padding: 0;
      }
      .footer-links li {
          margin-bottom: 10px;
      }
      .footer-links a {
          color: #ccc;
          text-decoration: none;
      }
      .footer-links a:hover {
          color: #fff;
      }
      .social-icons {
          display: flex;
          gap: 15px;
      }
      .social-icons a {
          color: #ccc;
          font-size: 18px;
      }
      .social-icons a:hover {
          color: #fff;
      }
      .copy-right-area {
          text-align: center;
          padding: 20px 0;
      }

/* services */
      .prevbtn1 {
        left: 0 !important;
        top: 95px;
        padding: 10px 10px !important;
    }
    .nextbtn1 {
        right: 0 !important;
        top: 95px;
        padding: 10px 10px !important;
    }