﻿body {
    background: linear-gradient(180deg, rgba(13,60,83,1) 0%, rgba(23,54,83,1) 55%, rgba(7,19,37,1) 100%);
    font-family: Arial;
}

hr {
    padding: 0px;
    margin: 0px;
    padding-top: 5px;
    margin-top: 10px;
}

a {
    text-decoration: none;
}

textarea {
    resize: none;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes highlight {
    0% {
        background-color: #0f2651
    }

    100% {
        background-color: none;
    }
}

.highlight {
    animation: highlight 3s;
    border-radius: 5px;    
}

.nav-tabs > li > a {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: none;
    color: white;
    background-color: #2b5978;
    margin: 1px;
}

    .nav-tabs > li > a:hover {
        background-color: #d8d8d8 !important;
        color: #2b5978 !important;
        border-bottom: none;
        cursor: pointer;
    }

.nav-tabs > li.active > a {
    background-color: #FFFFFF !important;
    color: white !important;
    border-bottom: none;
}


.row {
    margin: 0; 
    padding: 0;
}

.dropdown-item:hover {
    background: #e2e1e1;
}

.main {
   display:flex;
   flex-direction: row;
}


/*Begin Contact Style*/
.contact {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    margin: 5px;
    width: 400px;
    padding: 5px;
    background: white;
}

.inbox {
    color: black;
}

.inbox-add {
    color: black;
}

.contact-row {
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
}


    .contact-row:hover {
        background: #dcdcdc;
    }

    .contact-row.active {
        background: #dcdcdc;
    }


.contact-name-message {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    flex: 1;
}

.contact-name {
    font-weight: bold;
    color: black;
    width: 100%;
}

.contact-message {
    color: black;
}

.contact-time {
    color: black;
}

.contact-tag {
    background: #ff6a00;
    border-radius: 20px;
    text-align: center;
    font-size: 12px;
}


.profile-round-frame {
    background: #0f2651;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    text-align: center;
    color: white;
}

.paste-image-container {
    width: 100%;
    max-height: 110px;
    background-color: gainsboro;
    position:relative;
    display:none;
    height: 110px;  
}

.paste-image {
    object-fit: scale-down;    
    height: 100px;
    margin: 5px;
}

.filename {
   font-weight: bold;   
}

.filesize {
    font-weight: normal;
    color: gray;
    font-size: 12pt;
}

.fileext {
    color:gray;
    font-size: 12pt;
}

.fileicon {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}
/*END Contact Style*/

/*Begin Detail Style*/
.detail {
    width: 500px;
    margin: 5px 5px 5px 0;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: white;
}
/*End Detail Style*/



/*Begin Chat Style*/
.chat {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 5px 5px 5px 0;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    height: 99vh;
    flex: 1;
    background: white;
}
.chat-title {
    height: 70px;
    padding: 10px;
    color: black;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #dcdcdc;
}

.chat-title-name {
    font-weight: bold;
    color:black;
}

.chat-title-subtitle {    
    color: black;
}


.chat-action {
    height: 140px;
    padding-top: 5px;
    border-top: 1px solid #dcdcdc;
}

#txtMessage {    
    border: 0px;
}

.group-detail {
    padding: 0 !important;
    margin: 0 !important;
    padding-bottom: 5px !important;
}

.action-button {
    border: 0px solid #dbd8d8;
    height: 45px;
    background: #1f5ea3;
    color: white;
}

.action-button:hover {
    border: 0px solid #dbd8d8;
    height: 45px;    
    background: #c4c4c4;
    color: black;
}
.message {
    display: flex;
    width: 100%;    
}

.audio {
    display: flex;
    width: 100%;
    display:none;    
    height: 84px;
}

.image-upload > input {
    display: none;
}

.imageContainer {
    display:flex;
    flex-direction: row;
}

.chat-content {
    padding: 10px;
    overflow-y: auto;
    width: 100%;   
    display:flex;
    justify-content:center;
}


/*END Chat Style*/
/*BEGIN Bubble Chat Style*/
.chat-container {    
    padding: 20px;
    border-radius: 10px;
    background-color: #f1f1f1;
    max-width: 1200px;     
     width: 100%;
}

.chat-bubble {    
    max-width: 80%;
    padding: 10px;
    margin: 0 10px 0 10px;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;           
}

    .chat-bubble:hover .chat-bubble-action {
        display:block;                
    }

    .chat-bubble.sent {
        background-color: #007bff;
        color: #fff;
        align-self: flex-end;
        border-top-right-radius: 0;        
    }

    .chat-bubble.receive {
        background-color: #e4e4e4;
        align-self: flex-start;
        border-top-left-radius: 0;        
    }



.chat-bubble-receive-repeat {
    background-color: #e0e0e0;
    align-self: flex-start;
    margin-left: 50px;
    margin-top: 1px;
    max-width: 80%;
    padding: 15px 10px 10px 10px;
    border-radius: 15px;
    position: relative;
}

    .chat-bubble-receive-repeat:hover .chat-bubble-action {
        display: block;
    }

    .chat-bubble::after {
        content: "";
        position: absolute;
        top: 0;
        width: 0;
        height: 0;
        border-style: solid;
    }

    .chat-bubble.sent::after {
        top: 0;
        right: -8px;
        border-width: 10px 10px 0 0;
        border-color: #007bff transparent transparent transparent;
    }

    .chat-bubble.receive::after {
        left: -10px;
        top: 0px;
        border-width: 10px 0 0 10px;
        border-color: #e0e0e0 transparent transparent transparent;
    }

.chat-profile-round-frame {
    background: #0f2651;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    text-align: center;
    color: white;
}

.chat-wrapper.receive {
    display:flex;
    flex-direction: row;      
}

.chat-wrapper.sent {
    display: flex;
    flex-direction: row-reverse;    
}

.chat-name.receive {
    font-size: 12px;
    color: #0f2651;
    font-weight: bold;
}

.chat-name.sent {
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.chat-time {
    font-size: 11px;    
    width: 100%;
    font-weight: bold;
    text-align: end;
    padding-top: 5px;
    display: block;
}

.chat-bubble-sent-repeat {
    background-color: #007bff;
    align-self: flex-end;
    margin-right: 50px;
    margin-top: 1px;
    max-width: 80%;
    padding: 15px 10px 10px 10px;
    border-radius: 15px;
    color: white;
    position:relative;    
}

.chat-bubble-sent-repeat:hover .chat-bubble-action {
    display: block;
    cursor: pointer;
}

.chat-bubble-action.receive {
 position:absolute;
 right: 0px;
 top: -5px;
 display:none;
 border:none;
}

.chat-bubble-action.sent {
    position: absolute;
    left: 0px;
    top: -5px;
    display: none;
    border: none;
    color: white;
}

.chat-image-container {
    position: relative;
    max-width: 300px;
}

.chat-image {
    background-color: white;
    border-radius: 10px;
    max-width: 300px;
    min-width: 100px;
    max-height: 150px;
    z-index: 1;
}

.chat-image-text {
    bottom: 0px;
    position: absolute;
    z-index: 10;
    padding-left: 10px;
    padding-right: 10px;
    background-color: black;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 10pt;
    text-wrap:normal;
    overflow-x: auto;    
}

.chat-image-loading {
    
    border-radius: 10px; 
    background-color: white;   
}


.chat-address-name {
    font-weight: bold;
}

.chat-address {
    color: gray;
}

.chat-doc-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.chat-doc-text-sent {
    color: white;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.chat-doc-text-receive {
    color: black;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}


.chat-doc-button {
    background: rgba(255, 255, 255, .9);
    color: black;
    padding: 10px;
    margin-right: 5px;
    border-radius: 10px;
    border-color: silver;
    min-width: 100px;
    text-align: center;  
    width: 100%;     
    font-size: 14px;
    cursor: pointer;
}
.chat-doc-button:hover {
    background-color: rgba(23,54,83,1);
    color: white;  
}


.chat-blank-image-container {
    width: 300px;
    height: 150px;    
    background: #1d1d1d;
    text-align: center;
    border-radius: 10px;
}

.chat-blank-image-button {
    color: white;
    background-color: black;
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
}

.chat-blank-image-download {
      color: white;
      padding: 8px;
}

.chat-blank-image-download-text {

    padding: 8px;
}

.chat-blank-audio-container {
    width: 200px;
    height: 50px;
    background: white;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    color: black;
}

.chat-date-container {
    width: 100%;      
    text-align:center;    
    padding: 5px;
    display:flex;
    justify-content: center;
}

.chat-date {
    width: 100px;
    background-color: #152368;
    color: white;    
    border-radius: 10px;
    padding: 2px;
    font-size: 14px;
}

.forward-text {
    color: #9d9d9d;
    font-size: 12px;
    margin-bottom: 5px;
}
.forward-text.receive {
    color: #4d4d4d;    
}

.forward-text.sent {
    color: #d4d4d4;
}

.chat-blank-audio-button {
    color: black;
}

.chat-blank-audio-download {
    color: black;
    padding: 8px;
}

.reply_container {
    background-color: #cfcfcf;
    border-radius: 5px;
    border-left: 4px solid green;
    padding: 5px;
    font-size: 14px;  
    cursor: pointer;
    width: 100%;
    color:black;
}

.reply_contact {
    color: darkgreen;
    font-weight: bold;
}

.videoplayer {
    max-width: 300px;
    max-height: 150px;
}



/* END Bubble Chat Style*/
/*Message Context Menu*/
.context-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 150px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu-item:hover {
        background-color: rgba(23,54,83,1);
        color:white;
}
/*END Message Context Menu*/

/*Emoji Context Menu*/
.context-emoji {
    width: 530px;
    height: 500px;
    border-radius: 10px;
    padding: 10px;    
}
.emoji-order-list {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
    max-width: 500px;
    position: relative;
    display: block;    

}

.emoji-order-list-item {
    margin: 0px !important;
    /*display: inline !important;*/
    font-size: 2em;
    display: inline-block;    
}

.emoji-order-list-item:hover {
    background-color: #d8d8d8;
    cursor: pointer;
    border-radius: 15px;
}
/*END Emoji Context Menu*/