/* Header Icon Items */
.header-icon-item {
    display: flex;
    align-items: center;
}

.header-icon-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    padding: 6px 8px !important;
    line-height: 1 !important;
    cursor: pointer;
}

.light-theme .header-icon-link {
    color: #7b8191 !important;
}

.dark-theme .header-icon-link {
    color: #a9abbd !important;
}

.light-theme .header-icon-link:hover {
    color: #1d212f !important;
}

.dark-theme .header-icon-link:hover {
    color: #fff !important;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-bell .nav-link {
    position: relative;
}

.notification-bell .notification-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background-color: var(--primary-bg-color);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-bell .notification-badge.d-none {
    display: none !important;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    border-radius: 5px;
    z-index: 1050;
    display: none;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

/* Light theme */
.light-theme .notification-dropdown {
    background-color: #fff;
    border: 1px solid #e8e8f7;
    box-shadow: 0px 16px 18px rgba(135, 135, 182, 0.1);
}

/* Dark theme */
.dark-theme .notification-dropdown {
    background-color: #181a1d;
    border: 1px solid rgba(138, 153, 191, 0.125);
    box-shadow: 0px 16px 18px rgba(28, 28, 39, 0.2);
}

/* Dropdown Header */
.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
}

.dark-theme .notification-dropdown-header {
    border-bottom: 1px solid rgba(138, 153, 191, 0.125);
    color: #fff;
}

.light-theme .notification-dropdown-header {
    border-bottom: 1px solid #e8e8f7;
    color: #1d212f;
}

.notification-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.notification-dropdown-header .mark-all-read,
.notification-dropdown-header .clear-all-notifications {
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-bg-color);
}

.notification-dropdown-header .mark-all-read:hover,
.notification-dropdown-header .clear-all-notifications:hover {
    text-decoration: underline;
}

/* Notification List */
.notification-dropdown-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-dropdown-list::-webkit-scrollbar {
    width: 5px;
}

.dark-theme .notification-dropdown-list::-webkit-scrollbar-track {
    background: #181a1d;
}

.dark-theme .notification-dropdown-list::-webkit-scrollbar-thumb {
    background: #3c3c60;
    border-radius: 3px;
}

.light-theme .notification-dropdown-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.light-theme .notification-dropdown-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    gap: 12px;
}

.dark-theme .notification-item {
    border-bottom: 1px solid rgba(138, 153, 191, 0.125);
    color: #fff;
}

.light-theme .notification-item {
    border-bottom: 1px solid #e8e8f7;
    color: #1d212f;
}

.dark-theme .notification-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.light-theme .notification-item:hover {
    background-color: #f0f0f8;
}

.notification-item.unread {
    position: relative;
}

.dark-theme .notification-item.unread {
    background-color: rgba(210, 0, 7, 0.06);
}

.light-theme .notification-item.unread {
    background-color: #f8f0f0;
}

.notification-item .notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dark-theme .notification-item .notification-icon {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-bg-color);
}

.light-theme .notification-item .notification-icon {
    background-color: rgba(210, 0, 7, 0.08);
    color: var(--primary-bg-color);
}

.dark-theme .notification-item:hover .notification-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

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

.notification-item .notification-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dark-theme .notification-item .notification-title {
    color: #fff;
}

.light-theme .notification-item .notification-title {
    color: #1d212f;
}

.notification-item .notification-body {
    font-size: 12px;
    margin-bottom: 4px;
}

.dark-theme .notification-item .notification-body {
    color: rgba(255, 255, 255, 0.6);
}

.light-theme .notification-item .notification-body {
    color: #7b8191;
}

.notification-item .notification-time {
    font-size: 11px;
}

.dark-theme .notification-item .notification-time {
    color: rgba(255, 255, 255, 0.4);
}

.light-theme .notification-item .notification-time {
    color: #a8afc7;
}

.notification-item .unread-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-bg-color);
    margin-top: 6px;
}

/* Empty State */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

.dark-theme .notification-empty {
    color: rgba(255, 255, 255, 0.4);
}

.light-theme .notification-empty {
    color: #a8afc7;
}

.notification-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Loading State */
.notification-loading {
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
}

.dark-theme .notification-loading {
    color: rgba(255, 255, 255, 0.4);
}

.light-theme .notification-loading {
    color: #a8afc7;
}

/* Infinite Scroll — Load More Spinner */
.notification-dropdown-list .load-more-spinner {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.dark-theme .load-more-spinner .spinner-border {
    color: rgba(255, 255, 255, 0.4);
}

.light-theme .load-more-spinner .spinner-border {
    color: #a8afc7;
}

/* HTML Content (reusable for future news page) */
.notification-html-content {
    line-height: 1.6;
    word-break: break-word;
}

.notification-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}

.notification-html-content p {
    margin-bottom: 0.75em;
}

.notification-html-content h1,
.notification-html-content h2,
.notification-html-content h3,
.notification-html-content h4,
.notification-html-content h5,
.notification-html-content h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.notification-html-content ul,
.notification-html-content ol {
    padding-left: 1.5em;
    margin-bottom: 0.75em;
}

.notification-html-content blockquote {
    border-left: 3px solid #3c3c60;
    padding-left: 12px;
    margin: 0.75em 0;
    color: #6a6a8e;
}

.notification-html-content pre {
    background: #1e2025;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0.75em 0;
}

.notification-html-content code {
    background: #1e2025;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

.notification-html-content a {
    color: #8485fb;
}

/* Light-theme additions for .notification-html-content */
.light-theme .notification-html-content blockquote {
    border-left-color: #d0d0e0;
    color: #7b8191;
}

.light-theme .notification-html-content pre {
    background: #f4f5f8;
}

.light-theme .notification-html-content code {
    background: #f4f5f8;
}

.light-theme .notification-html-content a {
    color: var(--primary-bg-color);
}

/* Responsive — Dropdown */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 300px;
        right: -60px;
    }
}
