/* Add these styles to your CSS file */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    border-bottom: 1px solid #e0e0e0; 
    border-radius: 4px 4px 0 0;
}

.unread-badge {
    background-color: #ff4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.unread-badge.all-read {
    background-color: #4CAF50;
}

.mark-all-btn { 
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.mark-all-btn:hover {
    filter: brightness(0.8);
    transform: translateY(-1px);
}

.mark-all-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.mark-read-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.mark-read-btn:hover {
    background-color: #45a049;
}

.mark-read-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.notification-item.unread {
    background-color: #f8f9ff; 
}

.notification-item:hover {
    background-color: #f5f5f5;
}

.notification-content {
    flex: 1;
    margin-right: 10px;
}

.notification-message {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-remark {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

.load-more-btn {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #e0e0e0;
}

.load-more-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.empty-notifications {
    text-align: center;
    padding: 40px;
    color: #999;
}
.items.side a.item[data-open-tab="noti"] {
    display: flex;
    justify-content: space-between;
}
span.unreadMessages {
    width: 1rem;
    height: 1rem;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    color: white;
    background: red;
    border-radius: 100%;
    padding: .65rem;
}
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    max-width: 450px;
    right: 0;
    bottom: 0;
    margin: 0 auto;
}
.popup-floating-vip {
    position: fixed;
    top: 50%;
    bottom: 0;
    left: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
}
.notification-modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.notification-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.notification-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.notification-modal-close:hover {
    color: #333;
}

.notification-modal-body {
    padding: 20px;
}

.modal-message,
.modal-remark,
.modal-time {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
    gap: .5rem;
}

span.unreadMessages.no-unread {
    display: none;
}  
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
} 
.select-mode-btn,
.select-all-btn,
.delete-selected-btn,
.cancel-selection-btn {
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.select-mode-btn {
    background-color: #2196F3;
    color: white;
}

.select-mode-btn:hover {
    background-color: #0b7dda;
}

.select-all-btn {
    background-color: #4CAF50;
    color: white;
}

.select-all-btn:hover {
    background-color: #45a049;
}  
.cancel-selection-btn {
    background-color: #9e9e9e;
    color: white;
}

.cancel-selection-btn:hover {
    background-color: #757575;
}
img.bin_icon {
    width: auto;
    height: 1.75rem;
}
/* Notification Item with Checkbox */
.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.notification-checkbox {
    margin-right: 12px;
}

.notification-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer; 
}

.notification-content {
    flex: 1;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f5f5f5;
}




.modal-message strong,
.modal-remark strong,
.modal-time strong {
    color: #333;
    display: block;
}

/* Notification Items */
.notification-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f5f5f5;
}

/* Selected notification style */
.notification-item.selected {
    background-color: #e3f2fd;
    border-left: 3px solid #2196F3;
    position: relative;
}

.notification-item.selected:hover {
    background-color: #bbdef5;
}

.notification-item.selected .notification-message {
    color: #1976D2;
}

/* Custom checkbox styling with checkmark icon */
.notification-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.notification-select {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom checkbox background */
.notification-checkbox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}

/* Checked state with checkmark */
.notification-item.selected .notification-checkbox::before {
    background-color: #2196F3;
    border-color: #2196F3;
}

.notification-item.selected .notification-checkbox::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

/* Hover effect */
.notification-checkbox:hover::before {
    border-color: #2196F3;
}

/* Unselected state */
.notification-item:not(.selected) .notification-checkbox::before {
    background-color: #fff;
    border-color: #ddd;
}

.notification-item:not(.selected) .notification-checkbox::after {
    content: "";
}

/* Disabled checkbox style */
.notification-select:disabled + .notification-checkbox::before {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

/* Optional: Add a subtle animation when selected */
.notification-item.selected .notification-checkbox::after {
    animation: checkmark 0.2s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.unread-badge {
    display: none;
}


