.notification-wrapper {
    position: relative;
}

.notification-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--app-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--app-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-button:hover {
    background: #f8fafc;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-panel {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 30px);
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.notification-panel.open {
    display: block;
}

.notification-panel-header {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-panel-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.mark-all-button {
    border: 0;
    background: transparent;
    color: var(--app-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}

.mark-all-button:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 15px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #14213d;
    text-decoration: none;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8fafc;
    text-decoration: none;
}

.notification-item.unread {
    background: #eff6ff;
}

.notification-item-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.notification-item-message {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.notification-item-date {
    margin-top: 7px;
    color: #94a3b8;
    font-size: 11px;
}

.notification-empty {
    padding: 30px 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.notification-loading {
    padding: 25px 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 550px) {
    .notification-panel {
        position: fixed;
        top: 72px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
}
