﻿body {
    color: #525f7f;
    background-color: #ffffff;
    overflow: hidden;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


.loader-inner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8833ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.toastElement {
    display: inline-block;
    box-shadow: 0px 1px 12px #000000;
    border-radius: 10px;
    max-width: 90%;
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.loader-container.show {
    display: block;
}



.animated {
    animation-name: slide-in;
    animation-duration: 2s;
}

@keyframes slide-in {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



.material-symbols-outlined {
    cursor: pointer;
}




.center {
    display: flex;
    justify-content: center;
    align-items: center;
}



.topbar, .page-footer {
    left: 0 !important
}

.page-wrapper {
    margin-left: unset !important;
}

.my-bar {
    color: rgb(82, 95, 127);
    position: static;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0.5px;
    transform: rotate(90deg);
    background-color: transparent;
    border: none;
}

.offcanvas-body a {
    padding: 4px 0px;
    text-decoration: none;
    color: black;
    line-height: 2;
    display: flex;
    align-items: center;
}

    .offcanvas-body a i {
        font-size: large;
    }

    .offcanvas-body a span {
        margin-left: 5px;
    }




.login-footer {
    margin-bottom: 1rem;
}




    .login-footer h1 {
        color: var(--bs-primary) !important;
    }



.badge-position {
    left: unset !important;
    margin-left: 19px;
    top: 15px !important;
}

.page-content {
    padding: 10px;
}

.empty-badge {
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    right: -3px;
    top: -3px;
}

.general-modal-body {
    max-height: 79vh;
    overflow: auto;
}





.hideMe {
    display: none;
}

.message-input {
    width: calc(100% - 14px); /* 14px is double of margin left */
    margin: 0px;
    margin-left: 7px;
    margin-bottom: 5px;
    display: inline-block;
    max-width: unset;
    box-shadow: none;
    border: 1px solid rgb(0, 59, 118);
    border-radius: 20px;
    padding: 6px 12px;
    padding-right: 50px;
    font-size: medium;
    text-indent: 35px;
    min-height: 35px;
}

.send-btn {
    color: rgb(25, 135, 84);
    background-color: white;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    padding: 6px 12px;
    border: none;
    background: transparent;
}

.send-message {
    position: absolute;
    right: 4px;
    bottom: -0.1em;
}

.message-attachment {
    position: absolute;
    left: 4px;
}

.incoming {
    background-color: #f5eeff;
    border-radius: 20px;
    border-bottom-right-radius: 0;
    float: right;
}

.outgoing {
    background-color: #d1ffea;
    border-radius: 20px;
    border-top-left-radius: 0;
    float: left;
}

.chat-container {
    font-size: medium;
    overflow: auto;
    padding: 0.5rem 1rem;
}

.message_group {
    color: black;
    margin-bottom: 10px;
    max-width: 90%;
    padding: 10px 15px;
    transition-duration: 200ms;
}

.message-text {
    overflow-wrap: break-word;
}

.page-content {
    padding: unset;
}

.attachment-box {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    display: inline-block;
    background-color: var(--bs-dark);
    padding: 10px;
    position: fixed;
    animation-duration: 400ms;
}

    .attachment-box button {
        padding: 20px;
    }

.outgoing > div > .senderDisplayName {
    color: var(--bs-green);
    font-size: small;
}

.incoming > div > .senderDisplayName {
    color: var(--bs-indigo);
    font-size: small;
}

.messageTimeStamp {
    font-size: x-small;
    padding-top: 3px;
    position: relative;
    float: right;
    color: var(--bs-gray-600);
}

.sendToServerStatus {
    font-size: 15px;
    position: relative;
    float: right;
    color: var(--bs-primary);
    padding-left: 10px;
}

.loading {
    text-align: center;
    vertical-align: middle;
    font-size: medium;
    position: absolute;
    background: transparent;
    width: 100%;
}

.loadingBottom {
    text-align: center;
    vertical-align: middle;
    font-size: medium;
    position: relative;
    background: transparent;
    top: -50px;
    width: 100%;
}

.dateGroupDiv {
    font-size: x-small;
    color: var(--bs-gray-600);
    text-align: center;
    padding-bottom: 10px;
}

.dateGroup {
}

.fileUploadBtn {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

    .fileUploadBtn + label {
        font-size: 1.25em;
        font-weight: 700;
        display: inline-block;
        padding: 6px 12px;
    }

    .fileUploadBtn + label {
        cursor: pointer;
    }

.att-btn {
    display: inline;
    color: rgb(25, 135, 84);
    border: none;
    background: transparent;
}

.attach_header {
    min-width: 4.8rem;
    max-width: 36.4rem;
    display: inline-flex;
    cursor: pointer;
    margin: 5px;
    border-radius: 4px;
    box-shadow: 1px 1px #888;
    padding: 2px 10px;
    border: 1px solid #888;
    background-color: #e9ecef;
    color: black;
}

    .attach_header:hover {
        background-color: #ccc;
    }

.attach_name {
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    margin-top: 8px;
}

.download_attach {
    color: black;
    text-decoration: none;
}

.file_upload_preview {
    width: calc(100% - 42px); /* 14px is double of margin left */
    margin: 0px;
    margin-left: 21px;
    display: block;
    border: 1px solid #e1e1e1;
    background: white;
    color: black;
    padding: 0px 5px;
}

.attach_header_preview {
    display: inline-flex;
    cursor: pointer;
    margin: 5px 0px;
    padding: 0px;
    border-radius: 4px;
    padding-left: 5px;
}

.attach_content_preview {
    margin: 0px;
    background-color: #e9ecef;
    color: black;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #888;
    box-shadow: 1px 1px #888;
}

.attach_icon_preview {
    float: left;
}

.attach_name_preview {
    width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    margin-top: 16px;
}

.remove_attach {
    border-radius: 6px;
    color: black;
    display: inline-block;
    font-weight: 900;
    float: right;
    height: auto;
}

.datePartionDiv {
    font-size: x-small;
}

.NewMessage {
    box-shadow: 0px 0px 9px 2px #8540f5;
}

.topbar .nav-item {
    line-height: 1;
}

.message-failed-link {
    font-size: x-small;
    padding-top: 3px;
    position: relative;
    color: var(--bs-gray-700);
    float: left;
    padding-right: 5px;
}

.copy-message-content {
    color: var(--bs-gray-700);
    font-size: 25px;
    cursor: pointer;
    float: right;
}

.send-message-content {
    font-size: 15px;
    float: left;
}

.error-message-icon {
    font-size: 30px;
}


#messageInputBox {
    position: fixed;
    bottom: 8px;
    width: calc(100% - 24px);
    left: 0;
    margin: 0px 12px 0 12px;
    background-color: white;
}



.disabled-button {
    cursor: not-allowed;
    opacity: 0.6;
}

#imgEditorModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9997;
    background-color: white;
    overflow: auto;
    opacity: 1;
}


    #imgEditorModal .imgEditorModal-dialog-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    #imgEditorModal .imgEditorModal-body {
        height: calc(100vh - 110px);
        overflow: auto;
    }

    #imgEditorModal .image-cropping-gallery {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2%;
        background-color: aliceblue;
        height: 100%;
        justify-content: space-between;
    }


    #imgEditorModal .main-img {
        height: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #imgEditorModal .main-img img {
        max-width: 100%;
        max-height: 100%
    }

    #imgEditorModal .thumbnail {
        max-width: 70px;
        cursor: pointer;
        margin-right: 10px;
        padding: 10px;
        border: 1px solid;
    }

    #imgEditorModal #backup-img {
        display: none;
    }


    #imgEditorModal .thumbnail-container {
        overflow-x: auto;
        width: 100%;
        margin-top: 20px;
        height: 20%;
    }

    #imgEditorModal button {
        padding: 8px;
    }

#imgEditorModal .thumbnail-container div {
    white-space: nowrap;
}

#imgEditorModal .btnClose {
    border: none;
    display: grid;
    align-content: center;
    background-color: transparent;
}


#imgEditorModal .modal-header {
    border-bottom: 0px;
    padding: 4px;
    height: 55px;
}

#imgEditorModal .img-editor-modal-footer {
    border-top: 0px;
    padding: 10px;
    height: 55px;
    bottom: 0;
    position: fixed;
    width: 100%;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

#imgEditorToolbar {
    width: 100%;
    text-align: center;
}

#imgEditorModal #imgEditorToolbar button {
    border: 0px;
    background-color: #fff;
}

    #imgEditorModal #imgEditorToolbar button:hover {
        border: 1px solid;
        background-color: var(--bs-modal-border-color);
    }


#imgEditorModal .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Cropping Modal */
#croppingModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 9998;
    background-color: #383838;
}

    #croppingModal .editorWrapper {
        height: calc(100vh - 55px);
        padding: 20px;
        overflow: scroll;
    }

    #croppingModal #editor {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #croppingModal .actions {
        padding: 10px 20px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        width: 100%;
        bottom: 0px;
    }

        #croppingModal .actions button {
            background-color: white;
            border-radius: 50%;
            border-top-left-radius: 50%;
            border-top-right-radius: 50%;
            border-bottom-right-radius: 50%;
            border-bottom-left-radius: 50%;
            border: 1px solid black;
            display: grid;
            padding: 12px;
            align-items: center;
        }

    #croppingModal .resize-handle {
        position: absolute;
        z-index: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
    }

    #croppingModal .resize-handler-vc {
        width: 10px;
        height: 10px;
        position: absolute;
        background-color: white;
    }


.no-msg-in-chat {
    width: 100%;
    /*background-color: #f0f0f0;*/
    text-align: center;
    padding: 10px;
    margin-top: 30px;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);*/
    /*animation: bounce 1s infinite alternate;*/
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

#divInstallPwa {
    text-align: center;
    padding: 4px 8px;
    background-color: #abf1ff;
    position: absolute;
    z-index: 11;
    top: 0;
    left: calc(50vw - 60px);
    width: 120px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    border-radius: 5px;
}

    #divInstallPwa a {
        font-weight: bolder;
        text-decoration: underline;
        color: black;
        display: block;
        width: 100%;
    }

#suggest p{
    padding: 10px 30px;
}

#suggest img {
    width: 32px;
}

#suggest button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px;
    padding: 6px 12px;
}

#suggest span {
    padding-right: 6px;
    font-size: 18px;
}

.SendMessageBtn {
    transition: transform 300ms ease-in-out 0s;
}

.not-ready-to-send {
    color: var(--bs-gray-300);
    transform: scale(0.7);
}



#btnLoadToBottom {
    position: fixed;
    bottom: 96px;
    right: 24px;
    border: 0px;
    display: none;
    transition: all 1s ease-out 1s;
}

#spanLoadToBottom {
    padding: 8px;
}
.p-l-0 {
    padding-left: 4px !important;
}
.m-t-2{
    margin-top: 0.5rem
}