/* Header actions in notifications-header */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px 5px 0px;
    color: black;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-action-btn {
    border: none;
    cursor: pointer;
    color: black;
    font-weight: 600;
    font-size: 1rem;
    padding: 4px 8px;
    text-decoration: none;
}

    .header-action-btn:hover {
        color: var(--secondary-color);
    }

/* Animation for details panel */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-details-panel {
    animation: slideIn 0.3s ease-out;
}

/* Notifications Popup Container */
.notifications-popup {
    width: 375px;
    border: 1px solid #ededed;
    border-radius: 1em;
    overflow: hidden;
    background: white;
    position: absolute;
    right: 0;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.08);
    opacity: 0;
    height: 0;
    transition: opacity 0.2s, height 0.2s;
    overflow-y: scroll;
}

    .notifications-popup.active {
        opacity: 1;
        height: 500px;
        max-width: calc(100vw - 25px);
    }

/* Responsive adjustments */
@media (min-width: 768px) {
    .notifications-popup {
        left: -321px;
        right: -47px;
    }
}

@media (max-width: 768px) {
    .notifications-popup.active {
        left: 50%;
        transform: translate(-50%);
        position: fixed;
    }
}

/* Notifications Container */
.notifications-container {
    display: flex;
    flex-direction: column;
}

/* Notification Item Wrapper */
.notification-item-wrapper {
    position: relative;
}

/* Notification Item Row */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #ededed;
    box-sizing: border-box;
}

/* Main Content (Header and Body) */
.notification-col-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0 5px;
}

/* Row 1: Header (Icon, Title, and Date) */
.notification-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.notification-content-header {
    display: flex;
    align-items: baseline;
    color: var(--primary-color);
}

    .notification-content-header a, span.notification-header {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
        font-size: 1.1rem;
    }

.notification-item:hover .notification-content-header a,
.notification-item:hover .notification-content-header i {
    color: var(--secondary-color);
}

.notification-content-header i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1rem;
}

.notification-category {
    font-size: 1rem;
    margin-right: 8px;
}

.notification-date {
    font-size: 0.875rem;
    color: #9e9e9e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Row 2: Body (Message and Action) */
.notification-row-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    color: black;
    flex: 1;
    margin-right: 10px;
}

.notification-actions {
    display: flex;
    align-items: center;
}

.notification-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.indicator-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: orange;
    border-radius: 50%;
}

.eye-icon {
    display: none;
}

.notification-item:hover .notification-action.mark-read .eye-icon {
    display: inline-block;
}

.notification-item:hover .notification-action.mark-read .indicator-circle {
    display: none;
}

.notification-item:hover {
    background-color: #ededed;
}

/* Side Drawer */
.notification-side-drawer_title {
    color: black;
}

.side-drawer {
    background-color: var(--theme-popover-bg-col);
    border-radius: 0;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.08);
    height: 100vh;
    max-width: 550px;
    min-width: 450px;
    overflow: auto;
    padding: 24px;
    position: fixed;
    right: -30px;
    top: 0;
    transition: transform 0.3s ease-out;
    width: 40%;
    z-index: 10;
    margin: 0;
    max-height: inherit;
}

/* Close button in the side drawer */
.side-drawer-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}

    .side-drawer-close-btn:hover {
        color: var(--secondary-color);
    }

/* Mobile adjustments for side drawer */
@media (max-width: 450px) {
    .side-drawer {
        background-color: var(--theme-popover-bg-col);
        border-radius: 0;
        box-shadow: 3px 3px 5px rgba(0,0,0,0.08);
        height: 100vh;
        min-width: 100%;
        overflow: auto;
        padding: 24px;
        position: fixed;
        right: 0px;
        top: 0;
        transition: transform 0.3s ease-out;
        width: 40%;
        z-index: 10;
        margin: 0;
        max-height: inherit;
    }
}

/* Backdrop for side drawer */
.backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 5;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
}

.notification-details-panel .notification-item:hover {
    background-color: transparent;
}

    .notification-details-panel .notification-item:hover .notification-content-header a,
    .notification-details-panel .notification-item:hover .notification-content-header i {
        color: var(--primary-color);
    }
