/* Notifications Inbox Styling */
.notification-item {
    transition: all 0.3s ease;
}

.notification-item.selected {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.notification-item.unread {
    border-left: 3px solid #007bff;
    background-color: #f8f9fa;
}

.notification-item.read {
    background-color: #ffffff;
}

/* Notifications Dropdown Styling */
.notifications-dropdown {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.notifications-dropdown .dropdown-item.notification-item {
    border: none !important;
    margin-bottom: 1px;
}

.notifications-dropdown .dropdown-item.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-dropdown-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-dropdown-actions {
    opacity: 1;
}

.notification-dropdown-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Notification badges */
.notification-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}

.mobile-notification-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}

/* Checkbox Styling */
.notification-checkbox {
    min-width: 30px;
}

.notification-select {
    transform: scale(1.5);
    margin-top: 8px;
    width: 20px;
    height: 20px;
    display: block !important;
    visibility: visible !important;
    cursor: pointer;
}

/* Select All Checkbox Styling */
#selectAllCheckbox {
    transform: scale(1.3);
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Select All Container */
.select-all-container {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f8f9fa;
}

/* Button Styling */
.btn-delete-selected {
    transition: all 0.3s ease;
}

.btn-delete-selected:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Notification Actions */
.notification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-notification-btn {
    transition: all 0.2s ease;
}

.delete-notification-btn:hover {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notification-select {
        transform: scale(1.3);
        margin-top: 6px;
        width: 18px;
        height: 18px;
    }

    #selectAllCheckbox {
        transform: scale(1.2);
        width: 16px;
        height: 16px;
    }

    .select-all-container {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Animation for fade effects */
.notification-item.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

/* Success alert styling */
.alert-success {
    border-left: 4px solid #28a745;
}

/* Mobile Notification Modal Styling */
.notification-modal .modal-body {
    padding: 0;
}

.mobile-notifications-list .notification-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    margin-bottom: 0;
    padding: 1rem;
}

.mobile-notifications-list .notification-item:last-child {
    border-bottom: none;
}

.mobile-notifications-list .notification-item:hover {
    background-color: #f8f9fa;
}

.mobile-notifications-list .notification-content {
    cursor: pointer;
    flex: 1;
}

.mobile-notifications-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.mobile-notifications-loading {
    padding: 2rem 1rem;
    text-align: center;
}

/* Mobile floating notification button */
#mobile-notification-icon {
    position: fixed !important;
    top: 85px !important;
    right: 15px !important;
    z-index: 1040 !important;
}

#mobile-notification-icon .btn {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    top: 40px;
}

#mobile-notification-icon .btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.mobile-notification-badge {
    font-size: 0.65rem !important;
    min-width: 16px;
    height: 16px;
    line-height: 1;
    padding: 0.15rem 0.3rem;
}

/* Mobile notifications modal specific styling */
.mobile-notifications-list {
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-notifications-list .notification-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 0;
}

.mobile-notifications-list .notification-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.mobile-notifications-list .notification-item.unread {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
}

/* Mobile notification actions positioning */
@media (max-width: 768px) {
    .mobile-notifications-list .notification-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;

    }

    .mobile-notifications-list .notification-actions .btn {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
        min-width: 30px;
    }
}
