components/notify-box/NotifyBox.module.scss
@use '/app/scss/mixins.scss' as *;

.wrapper {
    background-color: var(--notification-bg);
    width: 360px;
    max-height: 400px;
    border-radius: 12px;
    --header-height: 48px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

    @include respond-to('mobile') {
        width: 300px;
    }
}

.header {
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--notification-color);
    border-radius: 12px 12px 0 0;
}

.title {
    font-size: 2rem;
    font-weight: 600;
    font-family: Lona;
    color: #000;
}

.notify-list {
    height: calc(400px - var(--header-height));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    overscroll-behavior: none;

    &::-webkit-scrollbar {
        width: 2px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--text-low-color);
        border-radius: 3px;
    }
}

.notify-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 2px;
    cursor: pointer;
    &:hover {
        background-color: var(--notification-item-hover-color);
    }
}

.notify-item.unread {
    background-color: var(--notification-unread-color);
}

.avatar {
    margin-right: 12px;
}

.notify-content {
    flex: 1;
}

.message {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.time {
    font-size: 1.3rem;
    color: var(--text-low-color);
}

.setting-icon {
    cursor: pointer;
    color: #000;
}

// question notification

.question-box,
.text-notify {
    width: 100%;
    margin-bottom: 4px;

    .qb-content {
        margin-bottom: 8px;
        font-family: var(--font-family);
        font-size: 1.6rem;
    }

    .name {
        font-weight: 600;
    }

    .name:hover {
        text-decoration: underline;
    }

    .reply-box {
        display: flex;
        justify-content: flex-start;
    }

    .reply-btn {
        margin-right: 12px;
        padding: 4px 12px;
        border-radius: 4px;
        border: none;
        background-color: var(--red);
        color: #fff;
        font-size: 1.3rem;
        cursor: pointer;
    }

    .reply-btn:hover {
        opacity: 0.9;
    }

    .cancel-btn {
        background-color: var(--gray-color);
        color: var(--black);
    }
}

.text-notify .qb-content {
    margin-bottom: 4px;
}
