/* This is what surrounds the whole entire notification inbox for a user */
.notification-widget
{
    position : relative;
    color    : #f3f4f6;
}

/* Handle hidden elements within the inbox */
.notification-widget[hidden]
{
    display : none !important;
}

/* This contains everything within the inbox that .notification-widget contains, minue the inbox hide/show button */
.notification-inbox-panel
{
    background    : var(--TnTMovieClubBlack);
    border        : 1px solid var(--TntMovieClubPrimaryColorDark);
    border-radius : 12px;
    padding       : 20px;
}

/* This is the compacted Inbox dropdown where clicking it reveals the actual contets of the inbox    *
 * This is applied when .notification-inbox-panel is inside of .notification-widget[data-compact = "true"] */
.notification-widget[data-compact = "true"]
.notification-inbox-panel
{
    position   : absolute;
    right      : 0;
    top        : 100%;
    width      : min(440px, 90vw);
    max-height : 75vh;
    overflow-y : auto;
    z-index    : 1000;
}

/* Notification headings */
.notification-widget h2
{
    color  : var(--TntMovieClubPrimaryColorLight);
    margin : 0 0 10px;
}

.notification-widget h3
{
    color  : inherit;
    margin : 0 0 10px;
}

/* Information to display with notifications */
.unread-notification-count,
.notification-inbox-metadata
{
    font-size : .85rem;
    color     : #c3cad8;
}

/* Container that displays most of the buttons such as refres, clear, etc. */
.notification-inbox-toolbar
{
    display   : flex;
    gap       : 8px;
    flex-wrap : wrap;
}

/* Default style for buttons in the inbox */
.notification-widget button
{
    cursor        : pointer;
    border        : 1px solid var(--TntMovieClubPrimaryColorDark);
    border-radius : 6px;
    padding       : 8px 12px;
    background    : var(--TnTMovieClubBlack);
    color         : var(--TntMovieClubPrimaryColorLight);
    font-size     : .9rem;
}

.notification-widget button:hover
{
    background-color: var(--TntMovieClubPrimaryColorLight);
    color           : var(--TnTMovieClubBlack);
}

/* Buttons that are not currently available for whatever reason */
.notification-widget button:disabled
{
    opacity : .5;
    cursor  : default;
}

/* Keyboard focus indicators */
.notification-widget button:focus-visible,
.notification-widget a:focus-visible
{
    outline        : 2px solid #a5b4fc;
    outline-offset : 3px;
}

/* A notification card */
.notification-inbox-card
{
    padding       : 18px 12px;
    margin-top    : 12px;
    border        : 1px solid #3b4252;
    border-radius : 8px;
    overflow-wrap : anywhere;
}

/* Additional styling used by undread notification cards */
.unread-notification-card
{
    border-left : 8px solid var(--TntMovieClubPrimaryColorLight);
}

/* The body of the notification */
.notification-card-body
{
    white-space : pre-wrap;
}

/* Actions within a notification card */
.notification-inbox-card button,
.notification-inbox-card a
{
    margin  : 4px 8px 0 0;
    display : inline-block;
}

/* Any links inside of the inbox */
.notification-widget a
{
    color : var(--TntMovieClubPrimaryColorLight);
}

/* Load more button */
.notification-inbox-load-more
{
    margin-top : 16px;
}

@media(max-width : 600px)
{
    .notification-inbox-panel
    {
        padding : 12px;
    }
    
    .notification-inbox-toolbar button
    {
        flex : 1 1 auto;
    }
}
