/* Fully hide Radzen's default checkbox in custom group headers */
li.no-checkbox > .rz-chkbox {
    display: none !important;
}

.rz-multiselect-header.rz-helper-clearfix .rz-chkbox {
    display: none !important;
}

/*Temporary popup css start*/
.popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #323232;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Temporary popup css end*/


/* Copy animation css  start*/

.copy-action {
    transition: all 0.3s ease;
}

    .copy-action.copied {
        animation: copySuccess 0.3s ease;
    }

.checkmark-icon {
    animation: checkmarkFadeIn 0.3s ease;
}

@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes checkmarkFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Copy animation css end */

.alarm_opacity {
    opacity: 0.5;
    pointer-events: none; /* prevent click */
    cursor: not-allowed;
}

.alarm_opacity label,
.alarm_opacity input,
.alarm_opacity .custom-control-label::before,
.alarm_opacity .custom-control-label::after {
    cursor: not-allowed !important;
}

.page-item.active .page-link {
    background-color: #2aa7df;
    border-color: #2aa7df;
}

.page-item .page-link {
    color: #2aa7df;
}

    .page-item .page-link:focus {
        box-shadow: none;
    }

/* Unread conversation highlight - Fancy design */
.users-chat.unread-conversation {
    background: linear-gradient(135deg, #e3f5fc 0%, #f0f9fd 50%, #ffffff 100%) !important;
    border-left: 4px solid #2aa7df !important;
    box-shadow: 0 2px 8px rgba(42, 167, 223, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    position: relative;
    border-radius: 8px;
    margin-bottom: 4px;
}

.users-chat.unread-conversation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2aa7df 0%, transparent 100%);
    border-radius: 8px 8px 0 0;
}

.users-chat.unread-conversation:hover {
    background: linear-gradient(135deg, #d4edfc 0%, #e3f5fc 50%, #f5fbfe 100%) !important;
    box-shadow: 0 4px 12px rgba(42, 167, 223, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

/* Conversation slide-in animation when moving to top */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.conversation-slide-in {
    animation: slideInFromTop 0.4s ease-out;
}

/* Chat Modal - Fixed header with scrollable user list */
/*.import-modal .modal-body {
    max-height: calc(100vh - 200px);
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}*/

.import-modal .modal-top-data {
    flex-shrink: 0;
}

.import-modal .modal-top-data h3,
.import-modal .modal-top-data p,
.import-modal .modal-top-data .search-container {
    flex-shrink: 0;
}

/* Chat listing - Max 5 users with scrollbar */
.import-modal .chat-listing {
    max-height: 275px !important;
    height: 275px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1;
    padding-right: 8px;
}

.import-modal .chat-listing::-webkit-scrollbar {
    width: 4px;
}

.import-modal .chat-listing::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.import-modal .chat-listing::-webkit-scrollbar-thumb {
    background: #2aa7df;
    border-radius: 10px;
}

.import-modal .chat-listing::-webkit-scrollbar-thumb:hover {
    background: #1e8bb8;
}
/* preview full screen image in chat */
.image-preview-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.image-preview-full {
    max-width: 90vw !important;
    max-height: 90vh !important;
    min-width: 300px !important; 
    min-height: 300px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6) !important;
    cursor: zoom-out !important;
    display: block !important;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 100000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }


/* RTL Chat uploaded image fix */
[dir="rtl"] .chat-screen-showcase .chat-footer .chat-uploaded-items,
[dir="rtl"] .chat-popup-body-wrapper .chat-footer .chat-uploaded-items {
    left: auto;
    right: 10px;
}