/* .direct-chat-msg {
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
}

.direct-chat-msg.left {
    justify-content: flex-start;
    
    text-align: left;
}

.direct-chat-msg.right {
    justify-content: flex-end;
   
    text-align: right;
}

.direct-chat-infos {
    display: inline;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #6C757D;
}

.direct-chat-name {
    font-weight: bold;
}

.direct-chat-timestamp {
    font-size: 12px;
    color: #ADB5BD;
   
}

.direct-chat-msg.right>.direct-chat-text {
    color: #ffffff;
    background: #3A3A6A;
    width: fit-content;
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    border-bottom-right-radius: 1px;
}

.right>.direct-chat-text {
    margin-right: 10px;
}

.right>.direct-chat-text {
    float: right;
} */
.chat-container {
    height: 400px;
}

.direct-chat-text {
    width: fit-content;
}

.right .direct-chat-text {
    float: right;
}

.direct-chat-timestamp {
    margin: 0 10px;
}

.direct-chat-text {
    margin: 5px 0 0 10px;
}

.right .direct-chat-text {
    margin-right: 10px;
}

.direct-chat-messages {
    height: 100%;
    overflow-y: auto;
}

.direct-chat-msg.right>.direct-chat-text {
    color: #ffffff;
    background: #3A3A6A;
    width: fit-content;
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    border-bottom-right-radius: 1px;
}

.direct-chat-msg.left>.direct-chat-text {
    color: #ffffff;
    background: var(--primary-color);
    width: fit-content;
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    border-bottom-left-radius: 1px;
}

.direct-chat-msg.right>.direct-chat-text::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: #3A3A6A;
    border-right: 0;
    margin-top: 6px;
    border-bottom-right-radius: 0px;
}

.direct-chat-msg.left>.direct-chat-text::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--primary-color);
    border-left: 0;
    margin-top: 6px;
    border-bottom-left-radius: 0px;
}

.direct-chat-msg::after {
    display: block;
    clear: both;
    content: "";
}

.bg-primary {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(66, 133, 244, 0.12) !important;
    color: var(--bs-primary);
    font-size: 12px;
    font-weight: 400;
    border: 1px solid var(--bs-primary);
}

.bg-warning {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(255, 84, 109, 0.12) !important;
    color: #f48900;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #f48900;
}

.bg-danger {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(181, 32, 70, 0.12) !important;
    color: #b52046;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #b52046;
}

.bg-success {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(52, 168, 83, 0.12) !important;
    color: #34a853;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #34a853;
}

.bg-secondary {
    display: flex;
    width: fit-content;
    display: flex;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(71, 85, 105, 0.1) !important;
    color: #475569;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #475569;
}

.bg-info {
    display: flex;
    width: fit-content;
    display: flex;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(111, 66, 193, 0.12) !important;
    color: #6F42C1;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #6F42C1;
}

.bg-dark {
    width: fit-content;
    display: flex;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(71, 85, 105, 0.1) !important;
    color: #475569;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #475569;
}

.disabled_chat_btn {
    pointer-events: none;
    opacity: 0.5;
}

#bank_transfer_slide {
    display: none;
}

/* QR Scanner Styles */
.qr-scanner-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

#qr-reader {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qr-reader video {
    width: 100% !important;
    max-width: 500px;
    border-radius: 10px;
}

#qr-reader__dashboard {
    display: none;
}

#qr-reader__scan_region {
    border: 2px solid #4285f4;
    border-radius: 10px;
}

/* QR Scanner Modal Overlay */
.qr-scanner-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.qr-scanner-modal-content {
    background: white !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    max-width: 600px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}

#qr-code-display {
    min-height: 300px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}

#qr-code-image canvas {
    max-width: 100% !important;
    height: auto !important;
}

#qr-reader-modal {
    min-height: 400px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    /* background: #000 !important; */
    border-radius: 10px !important;
    overflow: hidden !important;
}

#qr-reader-modal video {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

#qr-code-display-overlay {
    pointer-events: none !important;
}

#qr-code-display-overlay canvas,
#qr-code-display-overlay img {
    pointer-events: auto !important;
}

/* Hide upload and torch buttons */
#qr-reader-modal #qr-reader__dashboard_section,
#qr-reader-modal #qr-reader__dashboard_section_swaplink,
#qr-reader-modal #qr-reader__dashboard_section_csr,
#qr-reader-modal button[class*="torch"],
#qr-reader-modal button[class*="upload"] {
    display: none !important;
}

/* Style the scanning frame corners */
#qr-reader-modal #qr-reader__scan_region {
    border: none !important;
}

#qr-reader-modal #qr-reader__scan_region::before,
#qr-reader-modal #qr-reader__scan_region::after {
    content: '' !important;
    position: absolute !important;
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #9d4edd !important;
}

/* Top-left corner */
#qr-reader-modal #qr-reader__scan_region::before {
    top: 0 !important;
    left: 0 !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top-left-radius: 8px !important;
}

/* Bottom-right corner (using a pseudo-element technique) */
#qr-reader-modal #qr-reader__scan_region::after {
    bottom: 0 !important;
    right: 0 !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom-right-radius: 8px !important;
}

/* Add corners using additional styling */
#qr-reader-modal #qr-reader__scan_region {
    position: relative !important;
}

#qr-reader-modal .qr-corner {
    position: absolute !important;
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #9d4edd !important;
}

#qr-reader-modal .qr-corner-top-left {
    top: 0 !important;
    left: 0 !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top-left-radius: 8px !important;
}

#qr-reader-modal .qr-corner-top-right {
    top: 0 !important;
    right: 0 !important;
    border-left: none !important;
    border-bottom: none !important;
    border-top-right-radius: 8px !important;
}

#qr-reader-modal .qr-corner-bottom-left {
    bottom: 0 !important;
    left: 0 !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom-left-radius: 8px !important;
}

#qr-reader-modal .qr-corner-bottom-right {
    bottom: 0 !important;
    right: 0 !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom-right-radius: 8px !important;
}