.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: none; /* Remove the default outline */
    box-shadow: none; /* Remove any shadow */
    border-color: transparent; /* Remove the blue border */
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 2px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #6c757d;
    transition: background-color 0.3s, color 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #333 !important;
    border: 1px solid #979797;
    background-color: white;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #dcdcdc));
    background: -webkit-linear-gradient(top, white 0%, #fff 100%);
    background: -moz-linear-gradient(top, white 0%, #fff 100%);
    background: -ms-linear-gradient(top, white 0%, #fff 100%);
    background: -o-linear-gradient(top, white 0%, #fff 100%);
    background: linear-gradient(to bottom, white 0%, #fff 100%);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #000000 !important;
    border: 1px solid #111;
    background-color: #585858;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #fff));
    background: -webkit-linear-gradient(top, #fff 0%, #fff 100%);
    background: -moz-linear-gradient(top, #fff 0%, #fff 100%);
    background: -ms-linear-gradient(top, #fff 0%, #fff 100%);
    background: -o-linear-gradient(top, #fff 0%, #fff 100%);
    background: linear-gradient(to bottom, #fff 0%, #fff 100%);
}




.form-control.is-invalid, .was-validated .form-control:invalid {
    /* border-color: var(--bs-form-invalid-border-color); */
    /* padding-right: calc(1.5em + .75rem); */
    background-image: none !important;
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}



.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable, .dataTables_wrapper.no-footer div.dataTables_scrollBody>table {
     border-bottom: 0.5px solid #E0E0E0 !important;
}


div:where(.swal2-container) h2:where(.swal2-title) {
    font-size: 20px !important;
}

.tooltip {
    background-color: #1e1e2f !important; /* Dark background */
    color: #fff !important; /* Light text color */
    border-radius: 12px !important; /* Rounded corners */
    padding: 12px !important; /* Add padding */
    font-size: 14px !important; /* Adjust font size */
    max-width: 500px !important; /* Set max width to avoid overflow */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important; /* Soft shadow */
}

.tooltip .arrow::before {
    border-top-color: #1e1e2f !important; /* Arrow color matches tooltip background */
}

.custom-tooltip-icon {
    color: #007bff; /* Blue color */
    font-size: 1rem; /* Adjust size */
    margin-left: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.custom-tooltip-icon:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Customize the tooltip */
.tooltip {
    background-color: #212529; /* Darker background */
    color: #ffffff; /* White text */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Add padding */
    font-size: 0.875rem; /* Slightly smaller font size */
    max-width: 350px; /* Increase tooltip width */
    text-align: left; /* Left-align text for better readability */
    word-wrap: break-word; /* Wrap text properly */
}

/* Tooltip arrow to match the tooltip background */
.tooltip-arrow::before {
    border-right-color: #212529 !important; /* Adjust arrow color for right placement */
}

/* Optional: Add subtle shadow for better visibility */
.tooltip.show {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

table.dataTable thead th, table.dataTable thead td {
    padding: 10px 0px 5px 5px !important;
}

#messagesLogsTable thead th {
    pointer-events: none;
}

#messagesLogsTable thead .sorting,
#messagesLogsTable thead .sorting_asc,
#messagesLogsTable thead .sorting_desc {
    background: none !important;
}

.avatar-upload .avatar-preview {
    width: 120px;
    height: 120px;
    background-color: #f8f9fa;
    position: relative;
    padding: 10px;
    border: 2px solid #e9ecef;
}

.avatar-upload .avatar-edit input {
    display: none;
}

.avatar-upload .avatar-edit label {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    text-align: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.avatar-upload .avatar-edit label:hover {
    background-color: #0056b3;
}

#imagePreview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
}

.message-type-img {
    height: 50px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.message-type-img {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 12px;
    text-align: center;
    padding: 0;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.selected-message {
    border: 2px solid #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.card-body {
    padding: 10px;
}

.card-title {
    font-size: 14px;
    margin-top: 10px;
}

.card-text {
    font-size: 12px;
    color: #6c757d;
}

.phone-frame {
    width: 300px;
    height: 550px;
    background-color: #333;
    border-radius: 20px;
    padding: 15px;
    position: relative;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.phone-frame::before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: #666;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.phone-frame::after {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    background-color: #666;
    border-radius: 5px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.phone-screen {
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.phone-screen::-webkit-scrollbar {
    width: 5px;
}

.phone-screen::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}

.phone-screen::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.message-preview {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 10px;
    background-color: #dcf8c6;
    border-radius: 10px;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

#whatsappPreview {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    max-width: 400px;
}
#previewText {
    padding: 10px;
    background-color: #dcf8c6;
    border-radius: 8px;
    margin: 0;
}
#previewImage img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.text-muted {
    color: #808080 !important;
}
