@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
* {
    font-family: "montserrat", sans-serif;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.content {
    /* Main content styles */
    padding: 20px;
    z-index: 1; /* Make sure content is on top of the background */
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* White background with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Make sure loader is on top */
}

.loader::after {
    content: "";
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blur effect */
body.loading .content {
    filter: blur(5px); /* Adjust blur amount as needed */
}

.btn-custom {
    background-color: #5965db;
    color: white;
}
.btn-green {
    background-color: green;
    color: white;
}
.btn-green:hover {
    background-color: #8bf597;
    color: white;
}
.urgent {
    background-color: green;
    color: white;
}
.urgent:hover {
    background-color: #8bf597;
    color: white;
}

.btn-custom:hover {
    background-color: #323e4a;
    color: white;
}

.bg-custom {
    background-color: #323e4a;
    color: white;
}

.btn-bootbox:hover {
    background-color: #5965db;
    color: white;
}

.btn-bootbox {
    background-color: #5965db;
    color: white;
}

.bg-custom:hover {
    background-color: #4e5c6b;
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.979) !important;
}

.login-box {
    background-color: white;
    padding: 55px;
    border-radius: 8px;
    box-shadow: 0px 1px 29px -3px rgba(89, 101, 219, 0.5);
    /* width: 100%; */
    width: 400px;
}

.btn-custom:hover {
    background-color: #707bda;
    color: white;
}
.footer-text {
    margin-top: 20px;
    text-align: center;
    color: #6c757d;
}

.main-sidebar {
    background-color: #323e4a;
}
.nav-sidebar .nav-item > .nav-link {
    color: white;
}
/* .nav-sidebar .nav-item>.nav-link:hover{
    color: white !important;
    } */

[class*="sidebar-light"] .brand-link {
    color: white;
}

.nav-pills .active {
    background-color: #5965db;
    border-radius: 14px;
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    transition-delay: 0.1s;
}

.textarea-inbox {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #707bda;
}

.inbox-dates-div {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0 8px;
    width: 100%;
    margin: 0 5px;
    input {
        border: none;
    }
}

@media (max-width: 768px) {
    .custom-flex-wrap {
        flex-wrap: wrap;
        gap: 5px;
    }
}

.contact-item {
    border: 1px solid #eee;
    padding: 15px 0;
    margin: 7px 0;
    border-radius: 17px;
}
.contact-image {
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 50%;
}
.pagination {
    justify-content: end;
    margin-top: 20px;
}
.pagination .active .page-link {
    background-color: #323e4a !important;
    border: #323e4a !important;
    color: white !important;
    font-weight: 500;
    border-radius: 11px;
}

.pagination .page-item .page-link {
    border: none;
    margin: 5px 0;
    color: black;
    font-weight: 500;
}

.input-contact {
    border: none;
}

.input-contact:focus {
    border: none;
}

#contacts-list .contact-item .col h5 {
    font-weight: 600;
}

#contacts-list .nmbr-div {
    font-weight: 600;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered
    li {
    list-style: none;
    color: black;
}

@media (max-width: 1350px) {
    #template-img {
        display: block;
    }
    .chat-area-template {
        display: none !important;
    }
}

@media (min-width: 1350px) {
    #template-img {
        display: none;
    }
    .chat-area-template {
        display: block;
    }
}

/**
 *  Make Template section scrollable Starts
 */ 
#template-container{
    height: 100%;
    overflow-y: scroll;    
}

/**
 *  Make Template section scrollable Ends
 */ 

@media (max-width: 995px) {
    .navbar-toggle-operator {
        display: block;
    }
    .sidebar-brand {
        text-align: start !important;
    }
    .sidebar-brand h2 {
        display: none;
    }
    .sidebar-brand span {
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 10px;
    }
}
@media (min-width: 995px) {
    .navbar-toggle-operator {
        display: none;
    }
    .sidebar-brand h2 {
        display: block;
    }
    .sidebar-brand span {
        display: none;
    }
}

.custom-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    border-radius: 0.25rem;
    text-indent: 0;
    margin: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.pointer {
    cursor: pointer;
}

@media(max-width:768px){
    .margin-cus{
        margin: 0;
    }
    
    .padding-cus{
        padding: 0;
    }
}