/* =========================================================
   Diamond Player
   Notifications
========================================================= */

.notification-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1005;
}


/* =========================================================
   Notification Button
========================================================= */

.notification-button {
    position: relative;

    width: 44px;
    height: 42px;

    border: 0;
    border-radius: 11px;

    background: transparent;
    color: #ffffff;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;

    transition:
        background .35s cubic-bezier(.25,.8,.25,1),
        color .35s cubic-bezier(.25,.8,.25,1),
        transform .35s cubic-bezier(.25,.8,.25,1);
}

.notification-button:hover {
    background: #182338;
    color: #60a5fa;

    transform: translateY(-2px);
}


/* =========================================================
   Badge
========================================================= */

.notification-badge {
    position: absolute;

    top: 2px;
    right: 1px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: none;

    align-items: center;
    justify-content: center;

    background: #ef4444;
    color: #ffffff;

    border-radius: 50px;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    border: 2px solid #111827;
}


/* =========================================================
   Panel
========================================================= */

.notification-panel {
    position: absolute;

    top: calc(100% + 12px);
    left: 0;

    width: 390px;
    max-width: calc(100vw - 30px);

    background: #111827;

    border: 1px solid #263246;

    border-radius: 17px;

    box-shadow:
        0 18px 50px rgba(0,0,0,.45);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px)
        scale(.98);

    transform-origin: top left;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.notification-box.open .notification-panel {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   Header
========================================================= */

.notification-panel-header {
    min-height: 58px;

    padding: 10px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    border-bottom: 1px solid #263246;
}

.notification-panel-title {
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}

.notification-read-all {
    border: 0;

    background: transparent;

    color: #60a5fa;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    padding: 6px 4px;

    transition: color .2s ease;
}

.notification-read-all:hover {
    color: #93c5fd;
}


/* =========================================================
   List
========================================================= */

.notification-list {
    max-height: 430px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}


/* =========================================================
   Notification Item
========================================================= */

.notification-item {
    position: relative;

    padding: 14px 15px;

    border-bottom: 1px solid #1f2937;

    cursor: pointer;

    transition:
        background .2s ease;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #182338;
}

.notification-item.unread {
    background: rgba(37,99,235,.07);
}

.notification-item.unread:hover {
    background: rgba(37,99,235,.12);
}


/* =========================================================
   Content
========================================================= */

.notification-item-content {
    padding-left: 25px;
}

.notification-item-title {
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 5px;
}

.notification-item-message {
    color: #aeb8c8;

    font-size: 12px;
    line-height: 1.8;
}

.notification-item-time {
    margin-top: 7px;

    color: #64748b;

    font-size: 10px;
}


/* =========================================================
   Unread Dot
========================================================= */

.notification-unread-dot {
    position: absolute;

    top: 18px;
    left: 14px;

    width: 8px;
    height: 8px;

    background: #2563eb;

    border-radius: 50%;
}


/* =========================================================
   Delete
========================================================= */

.notification-delete {
    position: absolute;

    left: 12px;
    bottom: 12px;

    width: 24px;
    height: 24px;

    border: 0;

    background: transparent;

    color: #64748b;

    border-radius: 7px;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity .2s ease,
        color .2s ease,
        background .2s ease;
}

.notification-item:hover .notification-delete {
    opacity: 1;
}

.notification-delete:hover {
    color: #f87171;

    background: rgba(239,68,68,.1);
}


/* =========================================================
   Empty
========================================================= */

.notification-empty {
    padding: 45px 20px;

    text-align: center;

    color: #64748b;

    font-size: 13px;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {

    .notification-panel {
        position: fixed;

        top: 72px;
        left: 15px;
        right: 15px;

        width: auto;
        max-width: none;

        transform-origin: top center;
    }

    .notification-box.open .notification-panel {
        transform: translateY(0) scale(1);
    }

    .notification-list {
        max-height: 65vh;
    }
}


@media (max-width: 480px) {

    .notification-button {
        width: 42px;
        height: 42px;
    }

    .notification-panel {
        top: 68px;
        left: 10px;
        right: 10px;

        border-radius: 15px;
    }

    .notification-panel-header {
        min-height: 54px;
    }
}

.header .notification-button {
    box-shadow: none !important;
    outline: none !important;
}

.header .notification-button:focus,
.header .notification-button:focus-visible,
.header .notification-button:hover {
    box-shadow: none !important;
    outline: none !important;
}

/* =========================================================
   Notification Action - EXACT SAME SIZE
========================================================= */

.notification-item .notification-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;

    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    margin-top: 12px !important;
    padding: 0 !important;

    background: #2563eb !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 9px !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;

    line-height: 42px !important;
    text-align: center !important;
    text-decoration: none !important;

    cursor: pointer !important;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}

.notification-item .notification-action:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.notification-item .notification-action:active {
    transform: translateY(0) !important;
}