/* Notification System Styles */

/* ===== HEADER DROPDOWN STYLES ===== */
.notification-btn {
    position: relative;
    color: var(--bs-body-color);
    transition: color 0.2s ease;
}

.notification-btn:hover {
    color: var(--bs-primary);
}




/* Notification count animation */
.notification-count:not(.visually-hidden) {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Dropdown menu styling */
#notificationDropdownMenu {
    min-width: 400px;
    max-width: 430px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid var(--bs-border-color);
}

.notification-dropdown-item {
    max-width: 380px;
    word-wrap: break-word;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--bs-body-color);
}

.notification-dropdown-item:hover {
    background-color: var(--bs-gray-100);
    color: var(--bs-body-color);
    text-decoration: none;
    transform: translateX(2px);
}

.notification-dropdown-unread {
    background-color: rgba(13, 110, 253, 0.05);
    border-left-color: #0d6efd;
    font-weight: 500;
}

.notification-dropdown-unread .fw-bold {
    font-weight: 600 !important;
}

/* Loading and empty states in dropdown */
.notification-loading,
.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--bs-text-muted);
}

/* ===== NOTIFICATIONS PAGE STYLES ===== */

/* Page header and controls */
.notifications-header {
    margin-bottom: 1.5rem;
}

.notifications-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

/* Filter tabs */
.notifications-filters .nav-tabs {
    border-bottom: 2px solid var(--bs-border-color);
    margin-bottom: 1.5rem;
    margin-left:280px;
    margin-right:330px;
}

.notifications-filters .nav-link {
    color: var(--bs-body-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
    border-bottom: 3px solid transparent;
}

.notifications-filters .nav-link:hover {
    background-color: var(--bs-gray-100);
    border-bottom-color: var(--bs-primary);
}

.notifications-filters .nav-link.active {
    background-color: transparent;
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

/* Mark all read button */
.mark-all-read-btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.mark-all-read-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;

}

/* Notification list items */
.notification-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--bs-body-bg);
    max-width: 1230px;
    /* margin-left: 280px; */
    margin-right: auto;
    width: 100%
}

.notification-item:hover {
    background-color: var(--bs-gray-50);
    transform: translateX(3px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.notification-unread {
    background-color: rgba(13, 110, 253, 0.03);
    border-left-color: #0d6efd;
    font-weight: 500;
}

.notification-unread:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.notification-unread .fw-bold,
.notification-unread h5 {
    font-weight: 600 !important;
    color: var(--bs-primary);
}

/* Notification content styling */
.notification-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.notification-item p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--bs-body-color);
}

.notification-item small {
    color: var(--bs-text-muted);
    font-size: 0.875rem;
}

/* Empty state */
.notifications-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--bs-text-muted);
}

.notifications-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notifications-empty p {
    font-size: 1.1rem;
    margin: 0;
}

/* Badge styling */
.notification-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}


.notification-message {
    display: block;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-more {
    font-size: 12px;
    color: #3A82F7;
}


/* .notification-highlight {
    border-left: 4px solid #3A82F7 !important;
    background-color: rgba(rgb(4, 87, 114)) !important;
    animation: highlightFade 1.2s ease-out;
}


@keyframes highlightFade {
    from { background-color: rgba(4, 87, 114); }
    to   { background-color: rgba(89, 115, 158, 0.829); }
} */






/* ===== DARK MODE ADJUSTMENTS ===== */
[data-bs-theme="dark"] .notification-btn:hover {
    color: var(--bs-primary);
}

[data-bs-theme="dark"] #notificationDropdownMenu {
    background-color: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .notification-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .notification-dropdown-unread {
    background-color: rgba(13, 110, 253, 0.15);
}

[data-bs-theme="dark"] .notifications-filters .nav-link {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .notifications-filters .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .notification-item {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .notification-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .notification-unread {
    background-color: rgba(13, 110, 253, 0.12);
}

[data-bs-theme="dark"] .notification-unread:hover {
    background-color: rgba(13, 110, 253, 0.18);
}

.dropdown-header{
    font-weight: bolder;
    color:white;
}

/* ===== UTILITY STYLES ===== */

/* Notification type icons */
.notification-type-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Loading states */
.notification-loading .spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    #notificationDropdownMenu {
        min-width: 320px;
        max-width: 95vw;
    }

    .notification-dropdown-item {
        max-width: none;
        padding: 1rem 0.75rem;
    }

   
  
    
    


    .notifications-header {
        flex-direction: column;
        gap: 1rem;
    }

    .notifications-header h1 {
        font-size: 1.75rem;
    }

    .notification-item {
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
    }

    .notifications-filters .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #notificationDropdownMenu {
        min-width: 300px;
    }

    .notification-dropdown-item {
        padding: 0.75rem 0.5rem;
    }

    .notification-item h5 {
        font-size: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .notification-btn,
    .dropdown-menu,
    .mark-all-read-btn {
    display: none !important;
    position: relative; /* already present 👍 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    }



    .notification-item {
        break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 0.5rem;
    }
}




/* FORCE CORRECT BADGE POSITIONING */
.notification-btn {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

/* PERFECT CIRCLE BADGE IN TOP RIGHT */
.notification-count {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 20px !important;
    height: 20px !important;
    background: #dc3545 !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 0.70rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 999 !important;
}




.notification-item.notification-highlight {
    animation: highlightFlash 1.5s ease-out forwards !important;
    border-left: 4px solid #3A82F7 !important;
}

@keyframes highlightFlash {
    0% {
        background-color: rgba(85, 145, 197, 0.95); 
    }
    100% {
        background-color: rgba(80, 150, 255, 0.25);  
    }
}



.notifications-header{
    margin-left: 280px;
}




.notification-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-message {
    display: inline-block;
    max-width: 240px;         
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-more {
    font-size: 12px;
    color: #3A82F7;
    white-space: nowrap;        
}

/* #markAllReadBtn{
    margin-right: 330px;
} */


#notificationsList{
    width:1210px;
    margin-left: 280px;
}












/* Added responsiveness */


.notifications-container {
    max-width: 80rem;        
    margin: 0 auto;           
    padding: 0 16px;          
}


.notifications-header,
.notifications-filters .nav-tabs,
#notificationsList{
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.notification-item {
    max-width: 100% !important;
}


