.top-header .notification-bell {
    position: relative;
    cursor: pointer;
}

.top-header .notification-bell::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: 400px;
    max-width: calc(100vw - 24px);
    height: 14px;
    z-index: 1019;
}

.top-header .notification-bell,
.top-header .notification-bell * {
    box-sizing: border-box;
}

.top-header .notification-bell .notification-icon {
    display: block;
    width: 1.5em;
    height: 1.5em;
}

.top-header .notification-bell > a {
    color: inherit;
    display: inline-flex;
    line-height: 1;
    position: relative;
    text-decoration: none;
}

.top-header .notification-bell .loading-message {
    color: #1d4ed8;
    font-weight: bold;
}

.top-header .notification-bell .empty-message {
    color: #ff0000;
    font-weight: bold;
}

.top-header .notification-bell .notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 16px;
    text-align: center;
}

.top-header .notification-bell .notification-arrow {
    content: "";
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
    display: none;
    z-index: 1021;
}

.top-header .notification-bell.notification-bell-landing .notification-arrow {
    top: calc(100% - 10px);
}

.top-header .notification-bell .notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    color: #1f2937;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    max-height: calc(100vh - 90px);
    min-width: 300px;
    max-width: 400px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1020;
}

.top-header .notification-bell.active .notification-arrow,
.top-header .notification-bell:hover .notification-arrow,
.top-header .notification-bell .notification-arrow:hover {
    display: block;
}

.top-header .notification-bell.active::after,
.top-header .notification-bell:hover::after {
    display: block;
}

.top-header .notification-bell.active .notification-dropdown,
.top-header .notification-bell:hover .notification-dropdown,
.top-header .notification-bell .notification-dropdown:hover {
    display: flex;
}

.top-header .notification-bell .notification-table-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.top-header .notification-bell .notification-table-container > div {
    min-width: 0;
}

.top-header .notification-bell .loading-message,
.top-header .notification-bell .empty-message {
    padding: 16px;
    text-align: center;
}

.top-header .notification-bell .notification-table-container table {
    width: 100%;
}

.top-header .notification-bell .notification-table-container th,
.top-header .notification-bell .notification-table-container td {
    padding: 8px;
    text-align: left;
    font-weight: 500;
}

.top-header .notification-bell .notification-view-all-container {
    border-top: 1px solid #ccc;
}

.top-header .notification-bell .notification-view-all-container .button {
    background-color: #1d4ed8;
    color: white;
    padding: .5rem 1rem;
    border: none;
    border-radius: .375rem;
    cursor: pointer;
    transition: background-color .3s;
}

.top-header .notification-bell .notification-view-all-container .button:hover {
    background-color: #2563eb;
}

.notification-dropdown-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid #e5e7eb;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
}

.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eef2f7;
}

.notification-item-link:hover {
    background: #f8fafc;
    text-decoration: none;
}

.notification-item-link.is-release {
    background: #f8fbff;
}

.notification-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notification-item-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.notification-item-title {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
}

.notification-item-link.is-release .notification-item-title {
    color: #1d4ed8;
}

.notification-item-caption {
    margin-bottom: 4px;
    color: #4b5563;
    font-size: 12px;
}

.notification-item-date {
    color: #6b7280;
    font-size: 12px;
}

.notification-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    flex: 0 0 auto;
    text-align: center;
}

.notification-footer-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.notification-footer-primary:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #f8fbff;
    text-decoration: none;
}

.notification-footer-secondary {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.notification-footer-secondary:hover {
    text-decoration: underline;
}

.notification-list-subject {
    text-align: left;
}

.notification-list-subject a {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-start;
    line-height: 1.35;
    text-align: left;
}

.notification-list-badge,
.notification-release-badge {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    padding: .125rem .5rem;
}

.notification-detail-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    line-height: 1.35;
}

.notification-detail-body {
    padding-top: 1rem;
}

.notification-detail-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
    padding: .875rem 1rem;
}

.notification-detail-meta-item {
    min-width: 0;
}

.notification-detail-meta-label {
    color: #687385;
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.notification-detail-meta-value {
    color: #2f3b4a;
    display: block;
    overflow-wrap: anywhere;
}

.notification-detail-section-title {
    color: #2f3b4a;
    font-weight: 600;
    margin-bottom: .5rem;
}

.notification-message-box,
.notification-release-message {
    margin-top: .5rem;
}

.notification-release-message {
    border: 1px solid #d9dee8;
    border-radius: 4px;
    overflow: hidden;
}

.notification-release-summary {
    background: #f8fafc;
    border-bottom: 1px solid #e6e9ef;
    padding: .875rem 1rem;
}

.notification-release-lead {
    color: #2f3b4a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

.notification-release-summary-row {
    align-items: baseline;
    display: grid;
    gap: .5rem;
    grid-template-columns: 150px minmax(0, 1fr);
    margin-top: .375rem;
}

.notification-release-summary-row span {
    color: #687385;
}

.notification-release-summary-row strong {
    color: #2f3b4a;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.notification-release-changes {
    padding: .875rem 1rem 1rem;
}

.notification-release-section-heading {
    color: #2f3b4a;
    font-weight: 600;
    margin-bottom: .625rem;
}

.notification-release-change-section {
    color: #4d5a6a;
    font-weight: 600;
    margin-top: .5rem;
}

.notification-release-change-item {
    border-left: 2px solid #e2e8f0;
    color: #2f3b4a;
    margin-top: .375rem;
    padding-left: .75rem;
}

@media (max-width: 991.98px) {
    .notification-detail-meta {
        grid-template-columns: 1fr;
    }

    .notification-release-summary-row {
        grid-template-columns: 1fr;
    }
}
