/* ==========================================================================
   NOTIFICATIONS SIDEBAR
   ========================================================================== */

/* Overlay */
#ht-notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 13, 38, 0.6);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#ht-notif-overlay.show {
    opacity: 1;
}

/* Sidebar Panel */
.ht-notif-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ht-notif-sidebar.open {
    transform: translateX(0);
}

/* Header */
.ht-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 24px 16px 24px;
}

.ht-notif-header-left {
    display: flex;
    flex-direction: column;
}

.ht-notif-header-sub {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.ht-notif-header h3 {
    margin: 0;
    overflow: hidden;
    color: var(--General-high-emphasis, #002B84);
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    /* 150% */
    letter-spacing: 0.15px;
}

.ht-notif-count-text {
    overflow: hidden;
    color: var(--General-medium-emphasis, #706D74);
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-family: "Libre Franklin", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    line-height: 14px;
    /* 140% */
    letter-spacing: 0.5px;
    margin-left: 0;
}

.ht-notif-mark-read-btn {
    background: none;
    border: none;
    color: #706D74;
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.5px;
    text-decoration-line: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.announcement-description {
    padding-bottom: 4px !important;
}

.ht-notif-mark-read-btn:hover {
    color: var(--General-high-emphasis, #001a54);
}

.notif-link {
    color: #706D74;
    text-decoration-line: underline;
    cursor: pointer;
}

.notif-link:hover {
    color: var(--General-high-emphasis, #001a54);
}


#ht-notif-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ht-notif-close:hover span {
    background-color: #ebf2ff;
    border-radius: 100%;
}

#ht-notif-close svg {
    width: 24px;
    height: 24px;
}


/* Body / List Container */
.ht-notif-body {
    flex: 1;
    overflow-y: auto;
    padding: 0px 24px 24px 24px;
}

/* Empty State */
.ht-notif-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    height: 100%;
    padding: 40px 20px;
}

.ht-notif-empty-state img {
    margin-bottom: 12px;
    max-width: 100%;
}

.ht-notif-empty-state p {
    color: var(--General-medium-emphasis, #706D74);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    /* 142.857% */
    letter-spacing: 0.1px;
    margin: 0;
}

/* Footer */
.ht-notif-footer {
    text-align: center;
    padding: 16px;
    color: var(--General-low-emphasis, #706D74);
    font-family: "Libre Franklin", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0.5px;
    background: #fff;
}

/* Date Group Header */
.ht-notif-date-group {
    display: block;
    margin-top: 24px;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--General-medium-emphasis, #706D74);
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-family: "Libre Franklin", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    /* 140% */
    letter-spacing: 0.5px;
}

.ht-notif-date-group:first-child {
    margin-top: 0;
}

/* Notification Item */
.ht-notif-item {
    padding: 16px;
    text-decoration: none !important;
    display: block;
    position: relative;
    transition: background-color 0.2s ease;
    background-color: #FBF9FF;
}

.ht-notif-item:hover {
    background-color: #F0F4FF;
}

.ht-notif-item.read {
    background-color: transparent;

}

/* Status Indicator */
.ht-notif-dot {
    width: 6px;
    height: 6px;
    aspect-ratio: 1/1;
    background-color: #DC362E;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.ht-notif-item.read .ht-notif-dot {
    background-color: transparent;
    display: none;
}

/* Meta Line */
.ht-notif-meta {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 16px;
    line-height: 12px;
    gap: 8px;
}

.ht-notif-cat-wrapper {
    display: flex;
    align-items: center;
}

/* Category */
.ht-notif-category {
    overflow: hidden;
    color: var(--General-secundary-high-emphasis, #6229FF);
    text-overflow: ellipsis;
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 11px;
    letter-spacing: 0.5px;
    margin: 0;
}

.ht-notif-date {
    color: var(--General-low-emphasis, #B3B2B6);
    font-family: "Libre Franklin", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 10px;
    letter-spacing: 0.5px;
}

/* Title */
.ht-notif-item-title {
    margin: 0;
    overflow: hidden;
    color: var(--General-medium-emphasis, #706D74);
    text-overflow: ellipsis;
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.ht-notif-item-title.with-subtext {
    margin-bottom: 8px;
}

.ht-notif-item-title.no-subtext {
    margin-bottom: 16px;
}

.ht-notif-subtext {
    color: #706D74;
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* Author */
.ht-notif-author {
    overflow: hidden;
    color: #B3B2B6;
    leading-trim: both;
    text-edge: cap;
    text-overflow: ellipsis;
    font-family: "Libre Franklin", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 10px;
    /* 133.333% */
    letter-spacing: 0.5px;
}

/* Badge in Navbar */
.ht-notif-badge-nav {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    width: 22px !important;
    height: 22px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 999px !important;
    background: var(--Color-Error-500, #DC362E) !important;
    color: var(--Color-White-White, #FAFCFF) !important;
    text-align: center !important;
    leading-trim: both !important;
    text-edge: cap !important;
    font-family: "Libre Franklin", sans-serif !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 14px !important;
    letter-spacing: 0.5px !important;
    padding: 0 !important;
    border: none !important;
}