/* ==========================================================================
   УВЕДОМЛЕНИЯ В ШАПКЕ
   ========================================================================== */

.notifications-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.notifications-trigger {
    position: relative;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;
    border: none;

    border-radius: 12px;

    cursor: pointer;

    transition:
            background-color 0.2s ease,
            transform 0.2s ease;
}

.notifications-trigger:hover {
    background: #f8fafc;
}

.notifications-icon {
    width: 27px;
    height: 27px;
    opacity: 0.72;
}

.notifications-trigger:hover .notifications-icon {
    opacity: 1;
}

.notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;;
    color: #ffffff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}


/* ==========================================================================
   DROPDOWN
   ========================================================================== */

.notifications-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 360px;
    max-width: calc(100vw - 32px);

    background: #ffffff;

    border: 1px solid #eef2f6;
    border-radius: 14px;

    box-shadow:
            0 12px 30px rgba(15, 23, 42, 0.10);

    overflow: hidden;

    z-index: 1000;
}

.notifications-header {
    padding: 14px 16px;

    border-bottom: 1px solid #f1f5f9;

    font-size: 14px;
    font-weight: 600;

    color: #1e293b;
}

.notifications-list {
    max-height: 420px;

    overflow-y: auto;
}


/* ==========================================================================
   ITEM
   ========================================================================== */

.notification-item {
    position: relative;

    width: 100%;

    display: block;

    padding: 14px 16px;

    border: none;
    border-bottom: 1px solid #f1f5f9;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    transition:
            background-color 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.is-unread {
    background: #f8fbff;
}

.notification-item-content {
    padding-right: 16px;
}

.notification-item-title {
    margin-bottom: 4px;

    color: #1e293b;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.notification-item-message {
    color: #64748b;

    font-size: 12.5px;
    line-height: 1.45;
}

.notification-item-date {
    margin-top: 7px;

    color: #94a3b8;

    font-size: 11px;
}

.notification-unread-dot {
    position: absolute;

    top: 17px;
    right: 16px;

    width: 7px;
    height: 7px;

    background: var(--primary);

    border-radius: 50%;
}


/* ==========================================================================
   EMPTY
   ========================================================================== */

.notifications-empty {
    padding: 28px 16px;

    color: #94a3b8;

    font-size: 13px;

    text-align: center;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 640px) {

    .notifications-dropdown {
        position: fixed;

        top: 70px;
        left: 16px;
        right: 16px;

        width: auto;
        max-width: none;
    }
}