body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
}

.chat-container {
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    position: relative;
    margin: auto;
}

.chat-box{
    flex-grow: 1;
    padding: 20px 20px 60px;
    overflow-y: auto;
    max-height: 100%;
    border-bottom: 1px solid #ddd;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 240px;
    color: #707570;
    line-height: 1.4;
}

.bot-message {
    background-color: #F8FAF8;
    align-self: flex-start;    
    margin-right: auto;
    max-width: max-content;
    white-space: pre-line;
}

.user-message {
    background-color: #E7EAE4;
    align-self: flex-end;
    margin-left: auto;
    max-width: max-content;
}

.attachment-message {
    background-color: #E7EAE4;
    align-self: flex-end;
    font-style: italic;
    margin-left: auto;
    font-size: 12px;
    word-break: break-all;
}
.attachment-message img.image-preview {
    width: 240px;
}

.input-box {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-top: 1px solid #ddd;
    position: relative;
}
.inputFeildBox{
    position: relative;
    background: #CAE7B7;
    border-radius: 10px;
}

input[type="text"]{
    padding: 12px 50px 12px 40px;
    border: none;
    outline: none;
    font-size: 16px;
    margin-bottom: 0px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    color: #707570;
}

button {
    padding: 10px;
    background-color: #0084ff;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
}

button:hover {
    background-color: #0074e0;
}
button#uploadBtn,
button#sendBtn {
    width: 40px;
    height: 40px;
    margin: 0;
    position: absolute;
    background: transparent;
    color: #707570;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
}
button#uploadBtn{
    left: 0;
}
button#sendBtn[disabled]{
    opacity: 0.2;
}
button#sendBtn {
    right: 10px;
    opacity: 1;
}


.attachment-preview {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.attachment-preview span {
    word-break: break-all;
    font-size: 11px;
}

.attachment-preview img {
    max-width: 50px;
    max-height: 50px;
    margin-right: 10px;
    border-radius: 5px;
}
.attachment-preview span.remove-attachment {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: red;
    cursor: pointer;
}
.voiceBox{
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
    margin-top: -10px;
}
button#voiceBtn {
    background-color: #0E7430;
    margin-top: 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 18px;
    align-items: center;
}
button#voiceBtn2 {
    position: absolute;
    right: 10px;
    top: -8px;
    background: transparent;
    filter: invert(1);
    display: none;
}
button#voiceBtn i {
    font-size: 24px;
}
.list-item {
    display: block;
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}
.list-item strong {
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}
.loader {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #6d6868;
    box-shadow: 24px 0 #6b6868, -24px 0 #c0c0c0;
    position: absolute;
    left: 40px;
    bottom: 80px;
    animation: flash 0.5s ease-out infinite alternate;
  }
  
  @keyframes flash {
    0% {
      background-color: #FFF2;
      box-shadow: 24px 0 #FFF2, -24px 0 #c0c0c0;
    }
    50% {
      background-color: #525050;
      box-shadow: 24px 0 #FFF2, -24px 0 #FFF2;
    }
    100% {
      background-color: #FFF2;
      box-shadow: 24px 0 #616060, -24px 0 #FFF2;
    }
  }
  mjx-container.MathJax{
    font-size: 100% !important;
    text-align: left !important;
}
mjx-math.MJX-TEX{
    white-space: unset;
}          
.message-bot a {
    color: #0066cc;
    text-decoration: underline;
}

.message-bot a:hover {
    text-decoration: none;
}
.report-btn {
    background-color: transparent;
    color: black;
    border: none;
    font-size: 12px;
    margin-top: 5px;
    cursor: pointer;
    text-decoration: underline;
}
.report-btn:hover {
    color: black;
    background-color: green;
}
