.text-gray-blue {
    color: #92b3c3 !important;
}

.text-orange {
    color: #ff9800 !important;
}

.doc-url {
    max-width: 180px !important;
    transition: all 0.3s ease-in-out;

    &:hover {
        color: var(--secondary-color);
    }
}

.custom-badge {
    &.deep-blue {
        color: #5b6eee;
        background-color: #e9edf8;
    }

    &.dark-green {
        color: #147967;
        background-color: #dfeae7;
    }
}

.userList-wraper {
    padding-top: 10px !important;
}

#toast-container > div {
    opacity: .9 !important;
}

.content-part {
    .media {
        height: 79px !important;
        border: 1px solid var(--border-color) !important;
    }

    .category-part {
        margin-top: 6px !important;
        margin-bottom: 10px !important;
    }
}

.btn_disabled {
    opacity: 0.6 !important;
}

.swal2-styled.swal2-confirm {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease-in-out !important;

    &:hover {
        color: var(--secondary-color) !important;
        background-color: transparent !important;
        border-color: var(--secondary-color) !important;
    }
}

.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
    background-image: none !important;
    transition: all 0.3s ease-in-out !important;
}

.swal2-styled.swal2-default-outline:focus, .swal2-styled.swal2-confirm:focus {
    box-shadow: none !important;
}

.alert {
    padding: 0 !important;

    ul {
        padding-left: 1rem !important;
    }
}

.custom-checkbox:checked {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.select2-selection__clear {
    color: #9e9e9d !important;
}

.notification-count, .menu-notification-count {
    position: absolute;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
    opacity: 0 !important;
    transition: all 0.3s ease-in-out !important;

    &.visible {
        opacity: 1 !important;
    }
}

.notification-btn-wraper {
    position: relative;

    .action-btn {
        background-color: #efefef !important;
        transition: all 0.3s ease-in-out !important;

        &:hover {
            background-color: var(--secondary-color) !important;
            color: var(--white) !important;
        }
    }

    .notification-count {
        top: -7px !important;
        right: -7px !important;
    }
}

.white-btn {
    background-color: transparent;
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color);

    &:hover {
        background-color: var(--secondary-color) !important;
        color: var(--white);
    }
}

.sidebar-menu-link {
    position: relative;

    .notification-count, .menu-notification-count {
        top: 25% !important;
        right: 8px !important;
    }
}

.chatbot-wraper {
    border: none !important;

    .chatbot-header .content-part .img {
        /*background-color: inherit !important;*/

        img {
            max-height: inherit !important;
            max-width: inherit !important;
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }
}

.chatbot-message-content {
    padding: 12px 14px !important;
    border-radius: 20px !important;
    box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.1) !important;

    .chatbot-logo {
        margin-bottom: 10px !important;

        .img {
            width: 20px !important;
            height: 20px !important;

            img {
                max-height: inherit !important;
                max-width: inherit !important;
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        }
    }

    .text {
        line-height: 1.4 !important;
    }

    .time {
        display: none;
        opacity: 0.9 !important;
        font-size: 10px !important;
        margin-top: 6px !important;
    }
}

.chatbot-widget-wraper {
    .chatbot-body {
        margin-bottom: 24px !important;

        .chatbot-message-wraper {
            max-width: 90% !important;

            .chat-msg-text {
                a {
                    color: var(--primary-color) !important;
                    font-weight: 600 !important;
                    text-decoration: underline !important;
                }

                p:not(:last-child) {
                    margin-bottom: 16px !important;
                }
            }

            &:has(.chatbot-contact-form) {
                width: 100% !important;
            }

            &.user {
                max-width: 75% !important;
            }
        }
    }

    .chatbot-footer-wraper .chatbot-footer {
        .input-wraper {
            padding: 12px !important;
        }

        .send-btn {
            transition: all 0.3s ease-in-out !important;
        }
    }
}

.custom-scroll-bar {
    &::-webkit-scrollbar-thumb {
        cursor: pointer !important;
        background-color: #ececec !important;
    }

    &::-webkit-scrollbar-thumb:hover {
        background-color: #bebebe !important;
    }
}

.scroll-to-bottom-btn-wrapper .scroll-to-bottom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}

.flex-center {
    display: flex !important;
}

.installation-code-container-wraper .code-container {
    padding: 0 !important;
}

.custom-switch {
    background-color: #a3aab1;

    &:checked {
        background-color: var(--secondary-color);
    }
}

.alert {
    padding: 1rem !important;

    ul {
        margin-bottom: 0 !important;
    }
}

.dropzone .dz-preview:hover .dz-details {
    color: var(--sc-light-gray) !important;
}

.custom-image-input-wrapper {
    border: 1px dashed var(--primary-color);
    border-radius: 6px;
    background-color: #586bf11a;
    padding: 16px;
    min-height: 130px;
    text-align: center;

    .uplod-image {
        height: 150px;
        width: 150px;
        border-radius: 6px;
        overflow: hidden;
        position: relative;

        .cancel-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            height: 20px !important;
            width: 20px !important;
            padding: 0 !important;
            border-radius: 50%;
            background-color: #dc3545d9;
            color: var(--white);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
            z-index: 99;
        }

        .uploaded-image-wraper {
            height: 100%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 6px;
            border: 1px dashed var(--primary-color);
            overflow: hidden;
        }

        img {
            height: 100%;
            width: 100%;
            object-fit: contain;
        }

        &:hover {
            .cancel-btn {
                opacity: 1;
                visibility: visible;
            }
        }
    }

    .csutom-image-input-btn {
        padding: 6px 8px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border-radius: 4px;
        border: 1px solid transparent;
        color: var(--secondary-color);
        background-color: var(--white);
        cursor: pointer;
        transition: all 0.3s ease-in-out;

        &:hover {
            background-color: var(--primary-color);
            color: var(--white);
        }

        button {
            all: unset;
        }
    }

    .attachment-preview .thumbnail .centered {
        all: unset;

        img {
            transform: none !important;
        }
    }

    .img-inner-wrap {
        margin: 0 !important;
    }

}

.media-upload-btn-wrapper .img-wrap .rmv-span {
    right: 19px !important;
    top: 37px !important;
    transition: all 0.3s ease-in-out !important;

    &:hover {
        background-color: #a63333 !important;
    }
}

.custom-select + .select2 {
    & .select2-selection--single {
        .select2-selection__rendered {
            color: #000 !important;
        }
    }
}

.notification-card:hover {
    background-color: var(--sc-light-gray);
    cursor: pointer !important;
}

.ticket-description-box {
    max-height: 850px;
    overflow-y: auto;
    padding: 0 14px;
}

.open-ticket-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;


    .company-logo {
        max-width: 120px;
        max-height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

    .company-name {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }

    .company-header p {
        font-size: 20px;
        font-weight: 600;
        color: var(--bs-body-color);
    }

    .credit-text a {
        font-weight: 600;
    }
}

.loading-indicator {
    transition: all 0.3s ease-in-out;
    opacity: 0.2;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.loading-indicator:before {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    width: 30px;
    height: 30px;
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid;
    border-right: 0;
    border-bottom: 0;
    border-radius: 50%;
    opacity: 1 !important;
    animation: spin 1.2s linear infinite;
}

.ticket-title {
    width: 200px;
}

.cmn-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);

    }

    100% {
        transform: rotate(360deg);
    }
}

.red-btn-outline {
    border-color: var(--sc-red);
    color: var(--sc-red);

    &:hover {
        color: var(--white);
        background-color: var(--sc-red);
    }
}

.cmn-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.cmn-btn.black-btn {
    align-self: stretch;
}

.bulk-action-search {
    padding-left: 17px;
}

.content {
    padding-left: 35px !important;
}

.logout-menu {
    .sidebar-menu-list {
        list-style: none;
        gap: 8px;
        padding: 0;
        padding-right: 8px;
        margin: 0;
        overflow-y: auto;
        overflow-x: clip;
    }

    .sidebar-menu-link {
        display: flex;
        gap: 8px;
        padding: 8px;
        border-radius: 6px;
        font-weight: 500;
        color: var(--secondary-color);
        transition: all 0.3s ease-in-out;

        &:hover,
        &.active {
            background-color: var(--white);
        }
    }

    .sidebar-menu-text {
        opacity: 1;
        visibility: visible;
        max-width: fit-content;
        transition: max-width 0.3s ease, opacity 0.2s linear 0.3s, visibility 0s linear 0.3s;
    }
}