* {
    scroll-behavior: smooth;
}

label.lw-validation-error {
    color: red;
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
}

div.lw-validation-error {
    color: red;
    font-weight: 600;
    font-size: 12px;
    margin: 5px 0;
    text-transform: uppercase;
}

.avatar {
    border: 1px solid #ebebeb;
    background: #c1c1c1;
    color: white;
    border-radius: 50%;
    text-align: center;
    padding-top: 5px;
}

.avatar-name {
    margin: 7px 4px;
    font-size: 1rem;
    text-transform: capitalize;

}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    content: "▶"
}

#toast-container > .toast-success .toast-close-button {
    background-color: #696cff !important;
}

.modal-footer {
    display: block !important;
}

.app-chat .app-chat-history .chat-history-header {
    padding: 0.65rem 1rem !important;
}

.no-padding {
    padding: 0 !important;
}

.note .note-action {
    display: none;
}

.note:hover .note-action {
    display: block;
}

.filepond--drop-label {
    background-color: white;
    border-radius: 8px;
    border: 1px solid lightgray;
}

.filepond--drip {
    background-color: blue;
}

.spinner-grow {
    position: absolute;
    align-items: center;
    display: flex;
    z-index: 1;
}

[dir=rtl] #do_search {
    border-top-left-radius: --bs-border-radius !important;
    border-bottom-left-radius: --bs-border-radius !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[dir=rtl] #search_chat {
    border-top-right-radius: --bs-border-radius !important;
    border-bottom-right-radius: --bs-border-radius !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

table.dataTable .btn {
    margin-bottom: 5px;
}

body.modal-open {
    overflow: hidden !important;
}

[type="select-one"],
[type="select-multiple"] {
    border: 0 !important;
    width: 100% !important;
    padding: 0;
    outline: 0 !important;
}

.selectize-dropdown {
    position: absolute;
    background-image: none !important;
    padding: 0.4375rem 0.875rem;
}

.selectize-dropdown-content .option {
    padding: 10px;
    cursor: pointer;
}

.chat-message-text .card {
    box-shadow: none !important;
}

.lw-whatsapp-header-image {
    max-width: 100%;
}

.alert-normal {
    background: white !important;
}


.alert-normal .alert-heading {
    color: #1ba9e7 !important;
}

.chat-actions.dropdown-menu {
    transform: translate3d(-45%, 31px, 0px) !important;
}

.lw-whatsapp-header-image {
    width: 200px !important;
    border-radius: 6px;
}

.swal2-image {
    padding: 40px;
}

.lw-whatsapp-header-image {
    cursor: pointer;
}

/* Customize website's scrollbar like Mac OS
Not supports in Firefox and IE */

/* total width */
.scrollbar::-webkit-scrollbar {
    background-color: #fff;
    width: 16px
}

/* background of the scrollbar except button or resizer */
.scrollbar::-webkit-scrollbar-track {
    background-color: #fff
}

.scrollbar::-webkit-scrollbar-track:hover {
    background-color: #f4f4f4
}

/* scrollbar itself */
.scrollbar::-webkit-scrollbar-thumb {
    background-color: #babac0;
    border-radius: 16px;
    border: 5px solid #fff
}

.scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a5;
    border: 4px solid #f4f4f4
}

/* set button(top and bottom of the scrollbar) */
.scrollbar::-webkit-scrollbar-button {
    display: none
}

.scrollbar {
    height: 75vh;
    width: 25vw;
    min-width: 150px;
    background: #fff;
    overflow-y: scroll
}

.overflow {
    min-height: 100vh
}

.show_count {
    width: 25px;
    height: 25px;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 12px !important;
}

/*i.fa, i.fab {*/
/*    margin-inline-end: 4px;*/
/*}*/

.lw-contact.active .unread_count {
    background-color: white !important;
    color: var(--primary) !important;
}

thead th, tbody td {
    text-wrap: nowrap !important;
}

#createTemplateWizardForm {
    max-height: 80vh;
    overflow-y: auto;
}

.swal2-container {
    z-index: 100000000 !important;
}

.send-broadcast-template .hidden-on-broadcast {
    display: none;
}

#welcome-chat-page {
    /*background-image: url('../../../imgs/wa-chat-message-bg.jpeg');*/
    background: whitesmoke;
    text-align: center;
}

/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 5px; /* For vertical scrollbars */
    height: 5px; /* For horizontal scrollbars */
}

/* Background of the scrollbar track */
::-webkit-scrollbar-track {
    background: none !important;
    border-radius: 10px;
}

/* Background of the scrollbar handle */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Background of the scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.search-chat-message {
    border-radius: .375rem;
    padding: .543rem 1rem;
    background-color: #ffe89d !important;
    color: grey;
}

.search-chat-message .card {
    box-shadow: unset !important;
    color: gray !important;
}

.chat-message-wrapper {
    max-width: 30vw;
}

.lw-whatsapp-preview .lw-whatsapp-footer {
    padding: 0 6px 9px 10px !important;
    text-shadow: 0 0 black !important;
}

.remove-tooltip-background,
.remove-tooltip-background .tooltip-inner {
    /*background: none !important;*/
    box-shadow: none !important;
    -moz-appearance: none;
    background: transparent;
    color: black;
}

#lwBotFlowBuilder {
    width: 500vw !important;
}

.label-node {
    background-color: #e9e9e9 !important;
    color: #000000 !important;
    margin: 0 !important;
    text-align: center !important;
}

ul.group-node {
    padding: 10px 35px;
}

.chat-direction {
    font-size: 30px;
    vertical-align: middle;
}

#qr-code-image > svg {
    width: 100%;
    height: 100%;
}

#chat-body-container {
    scroll-behavior: initial !important;
}

.day {
    color: white;
    text-transform: capitalize;
}

.card-library-template {
    box-shadow: none !important;
    border: 1px solid #d8d8d8 !important;
}

.smartphone {
    position: relative;
    width: 320px;
    height: 640px;
    margin: auto;
    border: 16px black solid;
    border-radius: 36px;
}

.smartphone .smartphone-content {
    width: 100%;
    height: 100%;
    background: rgba(229, 221, 213, 0.6);
    background-size: contain;
    border-radius: 20px;
}

.smartphone .smartphone-content .template-content {
    border-radius: 12px 12px 12px 0;
    box-shadow: rgba(0, 0, 0, 0.56) 0 22px 70px 4px;
}

#phone-simulator-message {
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: none;
}

.notch {
    display: flex;
    justify-content: center;
}

.notch .inside-notch {
    width: 60%;
    height: 20px;
    background-color: black;
    border-radius: 0 0 20px 20px;
}

.template-create-modal-form {
    max-height: 40rem;
    overflow-y: auto;
}

.template-card {
    width: 20% !important;
    display: inline-block;
    vertical-align: top;
}

.template-card p {
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;
}

.header-media-template {
    background-color: #e8e8e8 !important;
    height: 100px;
    text-align: center;
    vertical-align: middle;
    font-size: 4rem;
    object-fit: contain !important;
}

.template-card .card-body {
    font-size: 0.8rem;
    line-height: 20px;
}

.template-card .card-title {
    background-color: #e8e8e8 !important;
    height: 100px;
    text-align: center;
    vertical-align: middle;
    font-size: 1rem;
}

.day {
    color: white;
    text-transform: capitalize;
}

.text-red {
    color: #dc3545 !important;
}

.select2-dropdown {
    z-index: 1000000 !important;
}

.interactive-checkbox:checked + label {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

#quick-filters-container::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.context-menu {
    display: none;
    position: absolute;
}

.inner-menu {
    background: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    position: relative;
    z-index: 1000;
    font-size: 14px;
    border-radius: 4px;
}

.menu-rectangle {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    transform: rotate(45deg);
    top: -8px;
    left: 20px;
    background-color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu ul li {
    padding: 8px 12px;
    cursor: pointer;
    z-index: 100000;
}

.context-menu ul li i {
    font-size: 16px;
}

.context-menu ul li:hover {
    background: #F1F2F3;
    border-radius: 4px;
}

.bg-light-gray {
    background-color: #F1F2F3;
}

.cursor-pointer.message-input {
    width: 70%;
    white-space: break-spaces;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
}

.large-check-box {
    width: 20px !important;
    height: 20px !important;
}

.lw-contact.active .dnd-icon {
    color: lightgray !important;
}

.sms-provider-tabs:not(.checked) {
    box-shadow: none !important;
}

.app-email {
    height: 88vh;
}

.app-email-view {
    max-width: 100%;
}

.email-list {
    height: 86vh;
    overflow-y: auto;
}

.email-list-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.email-list-item:hover {
    background-color: #f8f9fa;
}

.email-list-item.email-marked-active {
    background-color: #f4f4f4;
    border-left: 3px solid grey;
}

.email-list-item.email-marked-read .email-list-item-username {
    font-weight: 400;
}

#email-subject {
    margin-top: 20px;
    font-family: "STIX Two Math", serif;
}

.email-view-content {
    height: calc(100vh - 250px);
    overflow-y: auto;
}

.email-view-body thead th, .email-view-body tbody td {
    text-wrap: wrap !important;
}

.email-filter-folders li,
.email-filter-labels li {
    cursor: pointer;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.email-filter-folders li:hover,
.email-filter-labels li:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.email-filter-folders li.active {
    background-color: #2196f3;
    color: white;
}

.email-filter-folders li.active a {
    color: white;
}

@media (max-width: 992px) {
    .app-email-view {
        position: absolute;
        z-index: 1000;
        height: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .app-email-view.show {
        transform: translateX(0);
    }
}

.avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

#sender-name:hover {
    color: #007bff !important;
    text-decoration: underline;
}

.tooltip .tooltip-inner {
    background-color: #f4f4f9;
    color: black;
    max-width: 300px;
    text-align: left;
    padding: 20px;
    font-size: 0.875rem;
    border-radius: 6px;
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.15);
}

.tooltip .tooltip-arrow::before {
    border-top-color: #333;
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom Tooltip Styles */
.custom-tooltip {
    position: fixed;
    z-index: 9999;
    background-color: #f4f4f9;
    color: #333;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 300px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #f4f4f9 transparent transparent transparent;
}

.card-header {
    padding: 10px 20px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.metric-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.progress-slim {
    height: 6px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.overview-stat-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    height: 100%;
}

.overview-stat-box:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.overview-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overview-stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 8px;
}

.colored-table table {
    border: none !important;
}

.colored-table th {
    border: none !important;
    font-weight: 600;
    background-color: #d7f5fc !important;
    color: #03c3ec !important;
}

.colored-table tr {
    height: 30px;
}

.colored-table th:first-child, .colored-table td:first-child {
    border-radius: 30px 0 0 30px;
    height: 20px;
}

.colored-table th:last-child, .colored-table td:last-child {
    border-radius: 0 30px 30px 0;
}

.colored-table td {
    border: none;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.stat-skeleton {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-loaded {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-details .flex-shrink-0 {
    width: 40px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .border-start {
        border-left: none !important;
        border-top: 1px solid #e9ecef !important;
        padding-top: 1.5rem !important;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

.shadow-sm {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}