/* All Notifications Modal Styles */

#allNotificationsModal .modal-dialog {
    max-width: 800px;
}

#allNotificationsModal .modal-content {
    background: #1C2235;
    border: 1px solid rgba(69, 203, 105, 0.2);
    border-radius: 12px;
    max-height: 90vh;
}

/* Header */
#allNotificationsModal .modal-header {
    background: linear-gradient(135deg, #232734 0%, #1C2235 100%);
    border-bottom: 1px solid rgba(69, 203, 105, 0.2);
    padding: 1.5rem;
}

#allNotificationsModal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.notifications-modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(69, 203, 105, 0.1);
    border: 1px solid rgba(69, 203, 105, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-modal-icon i {
    font-size: 1.5rem;
    color: #45CB69;
}

/* Filter Tabs */
.notifications-modal-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #232734;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-tabs-modal {
    display: flex;
    gap: 0.5rem;
}

.filter-tab-modal {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab-modal:hover {
    background: rgba(69, 203, 105, 0.05);
    border-color: rgba(69, 203, 105, 0.3);
    color: #fff;
}

.filter-tab-modal.active {
    background: rgba(69, 203, 105, 0.15);
    border-color: #45CB69;
    color: #45CB69;
}

.filter-tab-modal .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Body */
#allNotificationsModal .modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: #1C2235;
}

/* Custom Scrollbar */
#allNotificationsModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#allNotificationsModal .modal-body::-webkit-scrollbar-track {
    background: #232734;
}

#allNotificationsModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(69, 203, 105, 0.3);
    border-radius: 4px;
}

#allNotificationsModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(69, 203, 105, 0.5);
}

/* Notification Items in Modal */
.notification-modal-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notification-modal-item:hover {
    background: rgba(69, 203, 105, 0.05);
}

.notification-modal-item:last-child {
    border-bottom: none;
}

.notification-modal-item.unread {
    background: rgba(69, 203, 105, 0.03);
}

.notification-modal-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #45CB69;
}

/* Icon */
.notification-modal-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(69, 203, 105, 0.1);
    border: 1px solid rgba(69, 203, 105, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-modal-icon-wrapper i {
    font-size: 1.125rem;
    color: #45CB69;
}

/* Content */
.notification-modal-content {
    flex: 1;
    min-width: 0;
}

.notification-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.notification-modal-item.read .notification-modal-title {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.notification-modal-message {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-modal-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.notification-modal-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.notification-modal-read-badge {
    font-size: 0.75rem;
    color: rgba(69, 203, 105, 0.8);
}

/* Unread Dot */
.notification-modal-unread-dot {
    width: 8px;
    height: 8px;
    background: #45CB69;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(69, 203, 105, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(69, 203, 105, 0);
    }
}

/* Actions */
.notification-modal-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.notification-modal-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}

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

/* Footer */
#allNotificationsModal .modal-footer {
    background: #232734;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
}

/* Loading & Empty States */
#notificationsModalLoading,
#notificationsModalEmpty {
    padding: 3rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    #allNotificationsModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    #allNotificationsModal .modal-content {
        max-height: 95vh;
    }
    
    #allNotificationsModal .modal-header {
        padding: 1rem;
    }
    
    #allNotificationsModal .modal-title {
        font-size: 1.25rem;
    }
    
    .notifications-modal-icon {
        width: 40px;
        height: 40px;
    }
    
    .notifications-modal-icon i {
        font-size: 1.25rem;
    }
    
    .notifications-modal-filters {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .filter-tabs-modal {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-tab-modal {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }
    
    #markAllReadModalBtn {
        width: 100%;
    }
    
    .notification-modal-item {
        padding: 1rem;
        flex-direction: column;
    }
    
    .notification-modal-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .notification-modal-icon-wrapper i {
        font-size: 1rem;
    }
    
    .notification-modal-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .notification-modal-actions .btn {
        flex: 1;
    }
    
    #allNotificationsModal .modal-body {
        max-height: 70vh;
    }
}

