.notification-bell-wrapper {
    display: inline-block;
}

.notification-bell-wrapper .notification-dropdown {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 10px !important;
}

.notification-badge {
    position: absolute;
    top: 3px;
    right: 5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    min-width: 20px;
    height: 20px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
.notification-dropdown {
    width: 350px;
    max-height: 500px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #ffffff;
}

.notification-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notification-dropdown-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.notification-dropdown-header h6 {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.notification-dropdown-header .mark-all-read-btn {
    font-size: 12px;
    color: var(--blue-color);
    text-decoration: none;
    padding: 0;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.notification-dropdown-header .mark-all-read-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.notification-dropdown-body {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
    padding: 0;
}

.notification-dropdown-body::-webkit-scrollbar {
    width: 4px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 10px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.notification-item.unread {
    background-color: #eff6ff;
}

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

.notification-item .notification-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb20;
}

.notification-item .notification-icon-wrapper i {
    font-size: 18px;
}

.notification-item .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 2px;
    font-family: 'Poppins', sans-serif;
}

.notification-item .notification-message {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    word-break: break-word;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.notification-item .notification-time {
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
}

.notification-item .mark-read-btn {
    flex-shrink: 0;
    padding: 4px 6px;
    font-size: 16px;
    background: transparent;
    border: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.notification-item:hover .mark-read-btn {
    opacity: 1;
}

.notification-item .mark-read-btn:hover {
    color: var(--blue-color);
}

.notification-empty {
    padding: 50px 20px;
    text-align: center;
    color: #6b7280;
}

.notification-empty i {
    font-size: 44px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.notification-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    margin: 0;
}

.notification-dropdown-footer {
    padding: 8px 10px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.notification-dropdown-footer .btn {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   NOTIFICATIONS PAGE
   ============================================ */
.notifications-page {
    min-height: 70vh;
}

.notifications-page .container {
    padding-bottom: 20px;
}

.notification-list-item:last-child {
    margin-bottom: 30px !important;
}

.notifications-page .page-header {
    background: white;
    padding: 20px 28px 12px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.notifications-page .page-header h2 {
    color: #111827;
}

.notifications-page .page-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.notifications-page .notification-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.notifications-page .notification-actions .btn {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
}

/* Filter Tabs */
.filter-tabs {
    background: white;
    padding: 8px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.filter-tabs .nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 8px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
    border-radius: 0px;
}

.filter-tabs .nav-link.active {
    color: var(--blue-color);
    background-color: #eff6ff;
}

.filter-tabs .nav-link:hover {
    color: var(--blue-color);
    background-color: #f1f5f9;
}

.filter-tabs .nav-link .badge {
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    margin-left: 6px;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
}

.filter-tabs .nav-link.active .badge {
    background: var(--blue-color);
    color: white;
}

/* Notification List Items */
.notification-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    background: white;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

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

.notification-list-item.unread {
    background-color: #eff6ff;
    border-left: 4px solid var(--blue-color);
}

.notification-list-item.unread:hover {
    background-color: #dbeafe;
}

.notification-list-item .icon-wrapper {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb20;
}

.notification-list-item .icon-wrapper i {
    font-size: 20px;
}

.notification-list-item .content {
    flex: 1;
    min-width: 0;
}

.notification-list-item .content .title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    font-family: 'Poppins', sans-serif;
}

.notification-list-item .content .message {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.notification-list-item .content .time {
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Poppins', sans-serif;
}

.notification-list-item .actions {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.notification-list-item .actions .btn-icon {
    padding: 4px 8px;
    font-size: 16px;
    background: transparent;
    border: none;
    opacity: 0.4;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 6px;
}

.notification-list-item:hover .actions .btn-icon {
    opacity: 1;
}

.notification-list-item .actions .btn-icon:hover {
    color: var(--blue-color);
    background: #eff6ff;
}

.notification-list-item .actions .btn-icon.danger:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    background: white;
}

.empty-state i {
    font-size: 56px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state h5 {
    font-weight: 600;
    color: #374151;
    font-family: 'Poppins', sans-serif;
}

.empty-state p {
    font-family: 'Poppins', sans-serif;
}

/* Pagination */
.pagination-wrapper {
    padding: 24px 0;
    display: flex;
    justify-content: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-dropdown.show {
    animation: slideDown 0.25s ease forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .notifications-page {
        padding-bottom: 120px;
    }
    
    .notification-dropdown {
        width: 340px;
        right: -60px !important;
        max-height: 450px;
    }
    
    .notification-dropdown-body {
        max-height: 320px;
    }
    
    .notifications-page .page-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .notifications-page .page-header h2 {
        font-size: 20px;
    }
    
    .notifications-page .notification-actions {
        flex-wrap: wrap;
    }
    
    .notifications-page .notification-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .notification-list-item {
        padding: 14px 16px;
        flex-wrap: wrap;
    }
    
    .notification-list-item .actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #f3f4f6;
        margin-top: 8px;
    }
    
    .filter-tabs {
        padding: 6px 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .filter-tabs .nav-link {
        padding: 6px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .filter-tabs .nav-link .badge {
        font-size: 10px;
        padding: 1px 8px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .notification-dropdown {
        width: 360px;
    }
}

/* ============================================
   BROADCAST NOTIFICATION STYLES (JSON Method)
   ============================================ */

/* Broadcast icon styling */
.notification-item .notification-icon-wrapper .bi-bullhorn-fill {
    color: #6366f1 !important;
}

.notification-list-item .icon-wrapper .bi-bullhorn-fill {
    color: #6366f1 !important;
}

/* Pulse animation for broadcast notifications */
@keyframes broadcastPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.notification-item.unread .bi-bullhorn-fill {
    animation: broadcastPulse 2s ease-in-out infinite;
}

.notification-list-item.unread .bi-bullhorn-fill {
    animation: broadcastPulse 2s ease-in-out infinite;
}

/* Broadcast badge */
.broadcast-badge {
    background: #6366f1;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
}

.broadcast-badge i {
    font-size: 10px;
}

/* Broadcast notification left border highlight */
.notification-list-item[data-is-broadcast="true"] {
    border-left: 3px solid #6366f1;
}

.notification-list-item[data-is-broadcast="true"].unread {
    border-left: 4px solid #6366f1;
}

/* Broadcast notification title color */
.notification-item .notification-title:has(+ .broadcast-badge) {
    color: #6366f1;
}

.notification-list-item .title:has(+ .broadcast-badge) {
    color: #6366f1;
}

/* Position relative for badge positioning */
.notification-icon-wrapper {
    position: relative;
}

/* Small badge on icon */
.notification-icon-wrapper .badge {
    font-size: 8px;
    padding: 2px 4px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}