/* Notification Styles */

/* Notification menu wrapper */
.notification-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

/* Notification bell button */
#notificationDropdown {
    color: #001849;
    transition: color 0.3s;
}

#notificationDropdown:hover {
    color: #FF5400;
}

/* Notification count badge */
#notification-count, .notification-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: #FF5400;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-weight: bold;
    z-index: 100;
}

/* Notification dropdown menu */
.notification-dropdown {
    padding: 0;
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Notification item */
.notification-item {
    transition: background-color 0.2s;
}

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

.notification-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.notification-item h6 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #001849;
}

.notification-item p {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

/* Notification icons */
.notification-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
}

.notification-icon i {
    font-size: 1rem;
}

/* Toast container */
.toast-container {
    z-index: 1060;
}

/* Detail page styling */
.notification-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Preferences page styling */
.preference-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.preference-section {
    margin-bottom: 30px;
}

.preference-title {
    color: #001849;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Remove all previously styled badges to avoid conflicts */
.notification-badge, .message-badge, .message-count, .notification-counter, .new-message-badge {
    display: none !important;
}

/* Messaging interface unread message badges - SINGLE SOURCE OF TRUTH */
.unread-badge {
    /* Base styling */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    width: auto !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 10px !important;
    background-color: #FF5400 !important; /* Brand orange */
    color: white !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    z-index: 100 !important;
    /* Positioned absolutely within the conversation item */
    position: absolute !important;
    right: 15px !important; 
    top: 10px !important; /* Fixed position from top, not centered */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    /* Prevent text overflow */
    max-width: 30px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Force a clean look */
    border: none !important;
    outline: none !important;
}

/* Ensure the container has correct positioning */
.conversation-item {
    position: relative !important;
    overflow: visible !important; /* Make sure badge can appear above content */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 300px !important;
    }
    
    .notification-item {
        padding: 10px !important;
    }
    
    .notification-icon {
        width: 24px;
        height: 24px;
    }
    
    .unread-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        right: 10px;
    }
}